Пробные миграции
This commit is contained in:
7
server/db/migrations/readerStorage/001-create.js
Normal file
7
server/db/migrations/readerStorage/001-create.js
Normal file
@@ -0,0 +1,7 @@
|
||||
module.exports = `
|
||||
-- Up
|
||||
CREATE TABLE storage (id2 INTEGER PRIMARY KEY, name TEXT);
|
||||
|
||||
-- Down
|
||||
DROP TABLE storage;
|
||||
`;
|
||||
@@ -1,5 +1,6 @@
|
||||
module.exports = {
|
||||
table: 'migration1',
|
||||
data: [
|
||||
{id: 1, name: 'create', data: require('./001-create')}
|
||||
]
|
||||
}
|
||||
Reference in New Issue
Block a user