|
@@ -3,9 +3,9 @@
|
|
use yii\db\Migration;
|
|
use yii\db\Migration;
|
|
|
|
|
|
/**
|
|
/**
|
|
- * Class m240806_220757_tabla_color
|
|
|
|
|
|
+ * Class m240814_003026_Color_tabla_actualizada
|
|
*/
|
|
*/
|
|
-class m240806_220757_tabla_color extends Migration
|
|
|
|
|
|
+class m240814_003026_Color_tabla_actualizada extends Migration
|
|
{
|
|
{
|
|
/**
|
|
/**
|
|
* {@inheritdoc}
|
|
* {@inheritdoc}
|
|
@@ -16,7 +16,7 @@ class m240806_220757_tabla_color extends Migration
|
|
"id" => $this->string(36),
|
|
"id" => $this->string(36),
|
|
"clave" => $this->string(100)->notNull(),
|
|
"clave" => $this->string(100)->notNull(),
|
|
"color" => $this->string(100)->notNull(),
|
|
"color" => $this->string(100)->notNull(),
|
|
- "descripcion" => $this->string(100)->notNull(),
|
|
|
|
|
|
+ "descripcion" => $this->string(100),
|
|
"creado" => $this->timestamp()->append(" with time zone"),
|
|
"creado" => $this->timestamp()->append(" with time zone"),
|
|
"modificado" => $this->timestamp()->append(" with time zone"),
|
|
"modificado" => $this->timestamp()->append(" with time zone"),
|
|
"eliminado" => $this->timestamp()->append(" with time zone"),
|
|
"eliminado" => $this->timestamp()->append(" with time zone"),
|
|
@@ -33,6 +33,7 @@ class m240806_220757_tabla_color extends Migration
|
|
$this->dropTable("Color");
|
|
$this->dropTable("Color");
|
|
}
|
|
}
|
|
|
|
|
|
|
|
+
|
|
/*
|
|
/*
|
|
// Use up()/down() to run migration code without a transaction.
|
|
// Use up()/down() to run migration code without a transaction.
|
|
public function up()
|
|
public function up()
|
|
@@ -42,7 +43,7 @@ class m240806_220757_tabla_color extends Migration
|
|
|
|
|
|
public function down()
|
|
public function down()
|
|
{
|
|
{
|
|
- echo "m240806_220757_tabla_color cannot be reverted.\n";
|
|
|
|
|
|
+ echo "m240814_003026_Color_tabla_actualizada cannot be reverted.\n";
|
|
|
|
|
|
return false;
|
|
return false;
|
|
}
|
|
}
|