createTable('{{%top_slider}}',[ 'id'=>$this->primaryKey(), 'post_id'=>$this->integer(), 'published_from'=>$this->dateTime(), 'published_to'=>$this->dateTime(), 'is_active'=>$this->smallInteger()->defaultValue(1) ]); } /** * {@inheritdoc} */ public function safeDown() { echo "m221225_045621_slider cannot be reverted.\n"; return false; } /* // Use up()/down() to run migration code without a transaction. public function up() { } public function down() { echo "m221225_045621_slider cannot be reverted.\n"; return false; } */ }