Skip to content

Commit

Permalink
chore(Database): add column for push subscriptions to Database
Browse files Browse the repository at this point in the history
- alter users table with new column 'push_sub'

[Delivers #159742121]
  • Loading branch information
olusoladavid committed Aug 13, 2018
1 parent 08dacf6 commit 90b825b
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion server/db/createTables.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,8 @@ const usersTableQuery = `CREATE TABLE IF NOT EXISTS users
password VARCHAR (255) NOT NULL,
created_on TIMESTAMP DEFAULT now() NOT NULL,
updated_on TIMESTAMP DEFAULT now() NOT NULL,
reminderIsSet BOOLEAN DEFAULT false NOT NULL
reminderIsSet BOOLEAN DEFAULT false NOT NULL,
push_sub JSON
);`;

const entriesTableQuery = `CREATE TABLE IF NOT EXISTS entries (
Expand Down

0 comments on commit 90b825b

Please sign in to comment.