global mm and startup

This commit is contained in:
ntr
2019-03-18 16:36:26 +11:00
parent 8b825db044
commit 5fe394370d
8 changed files with 163 additions and 25 deletions
+13
View File
@@ -50,6 +50,19 @@ exports.up = async knex => {
});
await knex.schema.createTable('matchmaking', async table => {
table.uuid('id').primary();
table.index('id');
table.timestamps(true, true);
table.uuid('game').notNullable()
table.foreign('game')
.references('id')
.inTable('games')
.onDelete('NO ACTION');
});
// not really sure if this is a good idea
await knex('instances').insert({
id: NULL_UUID,