|
@@ -0,0 +1,42 @@
|
|
|
+<?php
|
|
|
+
|
|
|
+use yii\db\Migration;
|
|
|
+
|
|
|
+/**
|
|
|
+ * Class m241111_213919_Quitar_notnull_empleado_descripcion
|
|
|
+ */
|
|
|
+class m241111_213919_Quitar_notnull_empleado_descripcion extends Migration
|
|
|
+{
|
|
|
+ /**
|
|
|
+ * {@inheritdoc}
|
|
|
+ */
|
|
|
+ public function safeUp()
|
|
|
+ {
|
|
|
+ $this->alterColumn('Empleado', 'descripcion', $this->string(400)->null());
|
|
|
+
|
|
|
+ }
|
|
|
+
|
|
|
+ /**
|
|
|
+ * {@inheritdoc}
|
|
|
+ */
|
|
|
+ public function safeDown()
|
|
|
+ {
|
|
|
+ $this->alterColumn('Empleado', 'descripcion', $this->string(400)->notNull());
|
|
|
+
|
|
|
+ }
|
|
|
+
|
|
|
+ /*
|
|
|
+ // Use up()/down() to run migration code without a transaction.
|
|
|
+ public function up()
|
|
|
+ {
|
|
|
+
|
|
|
+ }
|
|
|
+
|
|
|
+ public function down()
|
|
|
+ {
|
|
|
+ echo "m241111_213919_Quitar_notnull_empleado_descripcion cannot be reverted.\n";
|
|
|
+
|
|
|
+ return false;
|
|
|
+ }
|
|
|
+ */
|
|
|
+}
|