Browse Source

updated create_groups & create_perms migration

v3-dev
REJack 7 years ago
parent
commit
b66a2adba6
  1. 2
      application/Database/Migrations/20181031064211_create_groups.php
  2. 2
      application/Database/Migrations/20181031064714_create_perms.php

2
application/Database/Migrations/20181031064211_create_groups.php

@ -54,6 +54,8 @@ class Migration_create_groups extends Migration
'definition' => [ 'definition' => [
'type' => 'TEXT', '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->addKey('id', true);
$this->forge->createTable($config->dbTableGroups, true); $this->forge->createTable($config->dbTableGroups, true);

2
application/Database/Migrations/20181031064714_create_perms.php

@ -54,6 +54,8 @@ class Migration_create_perms extends Migration
'definition' => [ 'definition' => [
'type' => 'TEXT', '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->addKey('id', true);
$this->forge->createTable($config->dbTablePerms, true); $this->forge->createTable($config->dbTablePerms, true);

Loading…
Cancel
Save