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);