|
- <?php
-
- use yii\db\Migration;
- use yii\db\Schema;
-
-
- class m230119_083942_point_sale_add_status extends Migration
- {
-
-
- public function safeUp()
- {
- $this->addColumn('point_sale', 'status', Schema::TYPE_SMALLINT . ' NOT NULL DEFAULT 1');
- }
-
-
-
- public function safeDown()
- {
- $this->dropColumn('point_sale', 'status');
- }
- }
|