shapes migration
This commit is contained in:
+2
-10
@@ -1,11 +1,9 @@
|
||||
// Update with your config settings.
|
||||
|
||||
const local = {
|
||||
module.exports = {
|
||||
client: 'postgresql',
|
||||
connection: {
|
||||
database: 'mnml',
|
||||
user: 'mnml',
|
||||
password: process.env.MNML_PG_PASSWORD,
|
||||
password: 'gggggggggg',
|
||||
},
|
||||
pool: {
|
||||
min: 2,
|
||||
@@ -15,9 +13,3 @@ const local = {
|
||||
tableName: 'knex_migrations'
|
||||
}
|
||||
};
|
||||
|
||||
|
||||
module.exports = {
|
||||
development: local,
|
||||
production: local,
|
||||
};
|
||||
|
||||
@@ -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 () => {};
|
||||
+1
-1
@@ -17,6 +17,6 @@
|
||||
"pg": "^7.4.3",
|
||||
"request": "^2.88.0",
|
||||
"sdftosvg": "0.0.4",
|
||||
"uuid": "^3.3.2"
|
||||
"uuid": "^3.3.3"
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user