diff --git a/migrations/m180416_120424_add_path_mobile_column_to_widget_carousel_item.php b/migrations/m180416_120424_add_path_mobile_column_to_widget_carousel_item.php new file mode 100644 index 0000000..07a0ab0 --- /dev/null +++ b/migrations/m180416_120424_add_path_mobile_column_to_widget_carousel_item.php @@ -0,0 +1,40 @@ +addColumn('{{%widget_carousel_item}}', 'path_mobile', $this->text()); + } + + /** + * @inheritdoc + */ + public function safeDown() + { + $this->dropColumn( '{{%widget_carousel_item}}', 'path_mobile'); + } + + /* + // Use up()/down() to run migration code without a transaction. + public function up() + { + + } + + public function down() + { + echo "m180416_120424_add_path_mobile_column_to_widget_carousel_item cannot be reverted.\n"; + + return false; + } + */ +}