shapes migration

This commit is contained in:
ntr
2019-09-14 19:46:14 +10:00
parent fcd7a66880
commit 443d39725f
7 changed files with 35 additions and 22 deletions
@@ -0,0 +1,11 @@
const uuidv4 = require('uuid/v4');
// give everybody the shapes mtx
exports.up = async knex => {
await knex.raw(`
INSERT INTO mtx (id, account, variant)
SELECT uuid_generate_v4() as id, id as account, 'Shapes'
FROM accounts;
`);
};
exports.down = async () => {};