shop bois
This commit is contained in:
@@ -9,7 +9,7 @@ exports.up = async knex => {
|
||||
table.string('token', 64).notNullable();
|
||||
table.timestamp('token_expiry').notNullable();
|
||||
|
||||
table.bigInteger('credits')
|
||||
table.bigInteger('balance')
|
||||
.defaultTo(0)
|
||||
.notNullable();
|
||||
|
||||
@@ -23,7 +23,7 @@ exports.up = async knex => {
|
||||
|
||||
await knex.schema.raw(`
|
||||
ALTER TABLE accounts
|
||||
ADD CHECK (credits > 0);
|
||||
ADD CHECK (balance > 0);
|
||||
`);
|
||||
};
|
||||
|
||||
|
||||
Reference in New Issue
Block a user