From b66a2adba63f936e14970f19455fa568155b536b Mon Sep 17 00:00:00 2001 From: REJack Date: Fri, 16 Nov 2018 11:49:35 +0100 Subject: [PATCH] updated create_groups & create_perms migration --- .../Database/Migrations/20181031064211_create_groups.php | 2 ++ application/Database/Migrations/20181031064714_create_perms.php | 2 ++ 2 files changed, 4 insertions(+) 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);