|
- <?php
-
- use yii\db\Migration;
-
-
- class m231113_073008_add_column_feature_position extends Migration
- {
-
-
- public function safeUp()
- {
- $this->addColumn('feature', 'position', $this->integer()->notNull()->defaultValue(0));
- }
-
-
-
- public function safeDown()
- {
- $this->dropColumn('feature', 'position');
- }
- }
|