diff --git a/migrations/m180502_132704_alter_table_article_add_column_show_published_at.php b/migrations/m180502_132704_alter_table_article_add_column_show_published_at.php new file mode 100644 index 0000000..a85ac9e --- /dev/null +++ b/migrations/m180502_132704_alter_table_article_add_column_show_published_at.php @@ -0,0 +1,25 @@ +addColumn("{{%article}}",'show_published_at',$this->boolean()->null()->after('published_at')); + } + + /** + * {@inheritdoc} + */ + public function safeDown() + { + $this->dropColumn("{{%article}}",'show_published_at'); + } +}