| Total Complexity | 2 |
| Total Lines | 14 |
| Duplicated Lines | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 5 | class m171016_201410_init_myabstract_closed extends Migration |
||
| 6 | { |
||
| 7 | public function safeUp() |
||
| 8 | { |
||
| 9 | $this->createTable('{{closing}}', [ |
||
| 10 | 'table_name'=>$this->string(128)->notNull()->comment('referred entity table name'), |
||
| 11 | 'last_closing_time'=>$this->dateTime(6)->notNull()->comment('Last closure time in that entity'), |
||
| 12 | ]); |
||
| 13 | $this->addPrimaryKey('pk_closing', '{{closing}}', 'table_name'); |
||
| 14 | } |
||
| 15 | |||
| 16 | public function safeDown() |
||
| 19 | } |
||
| 20 | |||
| 22 |