Browse Source

adds DB creation goal

master
Christian Müller 8 years ago committed by Christian Müller
parent
commit
11e477da31
  1. 3
      Makefile

3
Makefile

@ -3,3 +3,6 @@ run: @@ -3,3 +3,6 @@ run:
test:
jasmine-node .
db:
echo 'CREATE TABLE "notes" (`id` VARCHAR(6) UNIQUE PRIMARY KEY, `text` TEXT, `published` TIMESTAMP DEFAULT CURRENT_TIMESTAMP, `edited` TIMESTAMP DEFAULT NULL, `password` VARCHAR(16), `views` INTEGER DEFAULT 0);' | sqlite3 database.sqlite

Loading…
Cancel
Save