fix typo with isntance and timestamps
This commit is contained in:
@@ -1,7 +1,7 @@
|
||||
exports.up = async knex => {
|
||||
return knex.schema.createTable('accounts', table => {
|
||||
table.uuid('id').primary();
|
||||
table.timestamps();
|
||||
table.timestamps(true, true);
|
||||
table.string('name', 42).notNullable().unique();
|
||||
table.string('password').notNullable();
|
||||
table.string('token', 64).notNullable();
|
||||
|
||||
@@ -4,14 +4,14 @@ exports.up = async knex => {
|
||||
await knex.schema.createTable('games', table => {
|
||||
table.uuid('id').primary();
|
||||
table.index('id');
|
||||
table.timestamps();
|
||||
table.timestamps(true, true);
|
||||
table.binary('data').notNullable();
|
||||
});
|
||||
|
||||
await knex.schema.createTable('instances', async table => {
|
||||
table.uuid('id').primary();
|
||||
table.index('id');
|
||||
table.timestamps();
|
||||
table.timestamps(true, true);
|
||||
|
||||
table.binary('data').notNullable();
|
||||
table.boolean('open')
|
||||
|
||||
@@ -2,7 +2,7 @@ exports.up = async knex => {
|
||||
await knex.schema.createTable('zones', async (table) => {
|
||||
table.uuid('id').primary();
|
||||
table.index('id');
|
||||
table.timestamps();
|
||||
table.timestamps(true, true);
|
||||
|
||||
table.binary('data').notNullable();
|
||||
|
||||
|
||||
Reference in New Issue
Block a user