practice rpc
This commit is contained in:
@@ -8,7 +8,10 @@ exports.up = async knex => {
|
||||
.inTable('accounts')
|
||||
.onDelete('CASCADE');
|
||||
table.binary('data').notNullable();
|
||||
table.index('id');
|
||||
|
||||
table.boolean('team')
|
||||
.notNullable()
|
||||
.defaultTo(false);
|
||||
});
|
||||
};
|
||||
|
||||
|
||||
@@ -17,10 +17,6 @@ exports.up = async knex => {
|
||||
table.timestamps(true, true);
|
||||
|
||||
table.binary('data').notNullable();
|
||||
table.boolean('open')
|
||||
.defaultTo(false)
|
||||
.notNullable()
|
||||
.index();
|
||||
|
||||
table.boolean('finished')
|
||||
.defaultTo(false)
|
||||
|
||||
Reference in New Issue
Block a user