Browse Source

updated migrations for CI4 beta.4

v3-dev
REJack 6 years ago
parent
commit
8e7132535b
No known key found for this signature in database
GPG Key ID: 9F3976CC630CC888
  1. 6
      app/Database/Migrations/20181026110732_create_users_table.php
  2. 6
      app/Database/Migrations/20181031064211_create_groups.php
  3. 6
      app/Database/Migrations/20181031064714_create_perms.php

6
app/Database/Migrations/20181026110732_create_users_table.php

@ -79,11 +79,7 @@ class Migration_create_users_table extends Migration
'type' => 'DATETIME', 'type' => 'DATETIME',
'default' => null, 'default' => null,
], ],
'deleted' => [ 'deleted_at DATETIME NOT NULL',
'type' => 'TINYINT',
'constraint' => 1,
'default' => 0,
],
]); ]);
$this->forge->addKey('id', true); $this->forge->addKey('id', true);
$this->forge->createTable($config->dbTableUsers, true); $this->forge->createTable($config->dbTableUsers, true);

6
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', 'created_at DATETIME NOT NULL DEFAULT CURRENT_TIMESTAMP',
'updated_at DATETIME NOT NULL DEFAULT CURRENT_TIMESTAMP', 'updated_at DATETIME NOT NULL DEFAULT CURRENT_TIMESTAMP',
'deleted' => [ 'deleted_at DATETIME NOT NULL',
'type' => 'TINYINT',
'constraint' => 1,
'default' => 0,
],
]); ]);
$this->forge->addKey('id', true); $this->forge->addKey('id', true);
$this->forge->createTable($config->dbTableGroups, true); $this->forge->createTable($config->dbTableGroups, true);

6
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', 'created_at DATETIME NOT NULL DEFAULT CURRENT_TIMESTAMP',
'updated_at DATETIME NOT NULL DEFAULT CURRENT_TIMESTAMP', 'updated_at DATETIME NOT NULL DEFAULT CURRENT_TIMESTAMP',
'deleted' => [ 'deleted_at DATETIME NOT NULL',
'type' => 'TINYINT',
'constraint' => 1,
'default' => 0,
],
]); ]);
$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