diff --git a/console/migrations/m230523_201729_alter_column_in_project_task_table.php b/console/migrations/m230523_201729_alter_column_in_project_task_table.php new file mode 100644 index 0000000..725f149 --- /dev/null +++ b/console/migrations/m230523_201729_alter_column_in_project_task_table.php @@ -0,0 +1,40 @@ +alterColumn('project_task', 'description', $this->text()); + } + + /** + * {@inheritdoc} + */ + public function safeDown() + { + $this->alterColumn('project_task', 'description', $this->string(500)); + } + + /* + // Use up()/down() to run migration code without a transaction. + public function up() + { + + } + + public function down() + { + echo "m230523_201729_alter_column_in_project_task_table cannot be reverted.\n"; + + return false; + } + */ +}