Skip to content

Commit

Permalink
create meta user, roles rows on createTables method
Browse files Browse the repository at this point in the history
  • Loading branch information
christophertrudel committed Oct 30, 2014
1 parent e502606 commit 5da3e32
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions lib/databaseTasks.js
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,8 @@ var downSql = 'DROP TABLE IF EXISTS "{{prefix}}meta";'+
'DROP TABLE IF EXISTS "{{prefix}}users";'+
'DROP TABLE IF EXISTS "{{prefix}}permissions";';
var upSql = 'CREATE TABLE {{prefix}}meta (key TEXT NOT NULL PRIMARY KEY, value TEXT[][] NOT NULL);'+
'INSERT INTO {{prefix}}meta VALUES (\'users\', \'{}\');'+
'INSERT INTO {{prefix}}meta VALUES (\'roles\', \'{}\');'+
'CREATE TABLE {{prefix}}resources (key TEXT NOT NULL PRIMARY KEY, value TEXT[][] NOT NULL);'+
'CREATE TABLE {{prefix}}parents (key TEXT NOT NULL PRIMARY KEY, value TEXT[][] NOT NULL);'+
'CREATE TABLE {{prefix}}users (key TEXT NOT NULL PRIMARY KEY, value TEXT[][] NOT NULL);'+
Expand Down

0 comments on commit 5da3e32

Please sign in to comment.