createTable('{{%template_location}}', [ 'template_location_id' => $this->primaryKey(), 'template_location_name' => $this->string(255)->notNull(), 'template_location_title' => $this->string(255), 'width' => $this->integer(4)->notNull(), 'height' => $this->integer(4)->notNull(), 'sort' => $this->integer(6)->notNull(), 'is_slider' => $this->smallInteger(1), 'is_banner' => $this->smallInteger(1), ]); } public function down() { $this->dropTable('{{%template_location}}'); } }