diff --git a/application/Database/Migrations/20181031064211_create_groups.php b/application/Database/Migrations/20181031064211_create_groups.php index 3f4d5d2..cc5dae4 100644 --- a/application/Database/Migrations/20181031064211_create_groups.php +++ b/application/Database/Migrations/20181031064211_create_groups.php @@ -54,6 +54,8 @@ class Migration_create_groups extends Migration 'definition' => [ 'type' => 'TEXT', ], + 'created_at DATETIME NOT NULL DEFAULT CURRENT_TIMESTAMP', + 'updated_at DATETIME NOT NULL DEFAULT CURRENT_TIMESTAMP', ]); $this->forge->addKey('id', true); $this->forge->createTable($config->dbTableGroups, true); diff --git a/application/Database/Migrations/20181031064714_create_perms.php b/application/Database/Migrations/20181031064714_create_perms.php index 2f6c84e..321650f 100644 --- a/application/Database/Migrations/20181031064714_create_perms.php +++ b/application/Database/Migrations/20181031064714_create_perms.php @@ -54,6 +54,8 @@ class Migration_create_perms extends Migration 'definition' => [ 'type' => 'TEXT', ], + 'created_at DATETIME NOT NULL DEFAULT CURRENT_TIMESTAMP', + 'updated_at DATETIME NOT NULL DEFAULT CURRENT_TIMESTAMP', ]); $this->forge->addKey('id', true); $this->forge->createTable($config->dbTablePerms, true);