From 8e7132535b11ad6b8ab4143762ef7f341cfdcbdc Mon Sep 17 00:00:00 2001 From: REJack Date: Thu, 22 Aug 2019 08:29:29 +0200 Subject: [PATCH] updated migrations for CI4 beta.4 --- .../Migrations/20181026110732_create_users_table.php | 6 +----- app/Database/Migrations/20181031064211_create_groups.php | 6 +----- app/Database/Migrations/20181031064714_create_perms.php | 6 +----- 3 files changed, 3 insertions(+), 15 deletions(-) diff --git a/app/Database/Migrations/20181026110732_create_users_table.php b/app/Database/Migrations/20181026110732_create_users_table.php index 2cd9126..902a6d0 100644 --- a/app/Database/Migrations/20181026110732_create_users_table.php +++ b/app/Database/Migrations/20181026110732_create_users_table.php @@ -79,11 +79,7 @@ class Migration_create_users_table extends Migration 'type' => 'DATETIME', 'default' => null, ], - 'deleted' => [ - 'type' => 'TINYINT', - 'constraint' => 1, - 'default' => 0, - ], + 'deleted_at DATETIME NOT NULL', ]); $this->forge->addKey('id', true); $this->forge->createTable($config->dbTableUsers, true); diff --git a/app/Database/Migrations/20181031064211_create_groups.php b/app/Database/Migrations/20181031064211_create_groups.php index 5786ad7..0562d40 100644 --- a/app/Database/Migrations/20181031064211_create_groups.php +++ b/app/Database/Migrations/20181031064211_create_groups.php @@ -53,11 +53,7 @@ class Migration_create_groups extends Migration ], 'created_at DATETIME NOT NULL DEFAULT CURRENT_TIMESTAMP', 'updated_at DATETIME NOT NULL DEFAULT CURRENT_TIMESTAMP', - 'deleted' => [ - 'type' => 'TINYINT', - 'constraint' => 1, - 'default' => 0, - ], + 'deleted_at DATETIME NOT NULL', ]); $this->forge->addKey('id', true); $this->forge->createTable($config->dbTableGroups, true); diff --git a/app/Database/Migrations/20181031064714_create_perms.php b/app/Database/Migrations/20181031064714_create_perms.php index 0298561..2643439 100644 --- a/app/Database/Migrations/20181031064714_create_perms.php +++ b/app/Database/Migrations/20181031064714_create_perms.php @@ -53,11 +53,7 @@ class Migration_create_perms extends Migration ], 'created_at DATETIME NOT NULL DEFAULT CURRENT_TIMESTAMP', 'updated_at DATETIME NOT NULL DEFAULT CURRENT_TIMESTAMP', - 'deleted' => [ - 'type' => 'TINYINT', - 'constraint' => 1, - 'default' => 0, - ], + 'deleted_at DATETIME NOT NULL', ]); $this->forge->addKey('id', true); $this->forge->createTable($config->dbTablePerms, true);