Added: app.js basic express http listener. Added: migrate-tool, to automatically apply migrations, including a base migration to create a database table to track migrations.
9 lines
No EOL
235 B
JavaScript
9 lines
No EOL
235 B
JavaScript
module.exports = {
|
|
up: async (target) => {
|
|
target.prepare("CREATE TABLE brainz_migrations (name TEXT NOT NULL);").run();
|
|
},
|
|
|
|
down: async (target) => {
|
|
target.prepare("DROP TABLE brainz_migrations;");
|
|
}
|
|
} |