brainz-aggregator/migrations/0001-migrations-table.js
Andrew Pietila 8f178392f9 Initial Commit
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.
2024-01-21 18:52:24 -06:00

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;");
}
}