diff --git a/console/migrations/m180601_112037_alter_table_package.php b/console/migrations/m180601_112037_alter_table_package.php new file mode 100644 index 0000000..5cd4945 --- /dev/null +++ b/console/migrations/m180601_112037_alter_table_package.php @@ -0,0 +1,40 @@ +addColumn('package', 'image_id', $this->integer()); + } + + /** + * {@inheritdoc} + */ + public function safeDown() + { + $this->dropColumn('package', 'image_id'); + } + + /* + // Use up()/down() to run migration code without a transaction. + public function up() + { + + } + + public function down() + { + echo "m180601_112037_alter_table_package cannot be reverted.\n"; + + return false; + } + */ +} diff --git a/frontend/views/layouts/main.php b/frontend/views/layouts/main.php index f5f1930..d53383a 100755 --- a/frontend/views/layouts/main.php +++ b/frontend/views/layouts/main.php @@ -317,8 +317,8 @@