about to change teams -> player

This commit is contained in:
ntr
2019-04-29 15:31:12 +10:00
parent 618f366796
commit 15ae93e70f
8 changed files with 124 additions and 94 deletions
+5 -1
View File
@@ -6,6 +6,10 @@ exports.up = async knex => {
table.index('id');
table.timestamps(true, true);
table.binary('data').notNullable();
table.boolean('finished')
.defaultTo(false)
.notNullable()
.index();
});
await knex.schema.createTable('instances', async table => {
@@ -14,7 +18,7 @@ exports.up = async knex => {
table.timestamps(true, true);
table.binary('data').notNullable();
table.boolean('finished')
table.boolean('open')
.defaultTo(false)
.notNullable()
.index();