|
|
@ -53,11 +53,7 @@ class Migration_create_groups extends Migration |
|
|
|
], |
|
|
|
], |
|
|
|
'created_at DATETIME NOT NULL DEFAULT CURRENT_TIMESTAMP', |
|
|
|
'created_at DATETIME NOT NULL DEFAULT CURRENT_TIMESTAMP', |
|
|
|
'updated_at DATETIME NOT NULL DEFAULT CURRENT_TIMESTAMP', |
|
|
|
'updated_at DATETIME NOT NULL DEFAULT CURRENT_TIMESTAMP', |
|
|
|
'deleted' => [ |
|
|
|
'deleted_at DATETIME NOT NULL', |
|
|
|
'type' => 'TINYINT', |
|
|
|
|
|
|
|
'constraint' => 1, |
|
|
|
|
|
|
|
'default' => 0, |
|
|
|
|
|
|
|
], |
|
|
|
|
|
|
|
]); |
|
|
|
]); |
|
|
|
$this->forge->addKey('id', true); |
|
|
|
$this->forge->addKey('id', true); |
|
|
|
$this->forge->createTable($config->dbTableGroups, true); |
|
|
|
$this->forge->createTable($config->dbTableGroups, true); |
|
|
|