Jemba-миграции

This commit is contained in:
Book Pauk
2021-12-01 17:50:48 +07:00
parent b3b30b9bd9
commit b5db2079d2
3 changed files with 106 additions and 5 deletions

View File

@@ -0,0 +1,14 @@
module.exports = {
up: [
//CREATE TABLE storage (id TEXT PRIMARY KEY, rev INTEGER, time INTEGER, data TEXT);
['create', {
table: 'storage',
hash: {field: 'id', type: 'string', depth: 100}
}],
],
down: [
['drop', {
table: 'storage'
}],
]
};

View File

@@ -0,0 +1,6 @@
module.exports = {
table: 'migration1',
data: [
{id: 1, name: 'create', data: require('./001-create')}
]
}