Added installation instructions and example files
This commit is contained in:
@ -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);
|
||||
|
Reference in New Issue
Block a user