Added installation instructions and example files

This commit is contained in:
2023-04-02 15:26:19 +02:00
parent 354fb5f9e5
commit 2d5df49aa9
8 changed files with 320 additions and 21 deletions

View File

@ -28,8 +28,8 @@ interface Migration {
db.on('open', () => {
console.log('Opened database');
db.run('CREATE TABLE IF NOT EXISTS "migrations" ("id" integer,"name" TEXT, PRIMARY KEY (id))');
db.serialize();
db.run('CREATE TABLE IF NOT EXISTS "migrations" ("id" integer,"name" TEXT, PRIMARY KEY (id))');
db.all('SELECT id FROM migrations', (err, rows) => {
if (err !== null) {
console.error('Could not fetch existing migrations', err);