Skip to content

Commit

Permalink
Issue #10: Database Setup
Browse files Browse the repository at this point in the history
- Create user database migration
  • Loading branch information
codebru committed Jul 23, 2019
1 parent f1ccf3a commit c7b2fc2
Show file tree
Hide file tree
Showing 4 changed files with 17 additions and 0 deletions.
8 changes: 8 additions & 0 deletions Database/deploy/user.sql
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
CREATE TABLE users (
id SERIAL PRIMARY KEY,
email varchar(64) not null,
passwordhash varchar(64) not null,
bio varchar(1000),
imagelink varchar(512),
admin boolean default FALSE
);
1 change: 1 addition & 0 deletions Database/revert/user.sql
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
DROP TABLE users;
1 change: 1 addition & 0 deletions Database/sqitch.plan
Original file line number Diff line number Diff line change
Expand Up @@ -2,3 +2,4 @@
%project=node-boilerplate
%uri=https://github.com/codebru/node-boilerplate

user 2019-07-23T13:10:32Z Philip,,, <philip@buntbook> # Create user table.
7 changes: 7 additions & 0 deletions Database/verify/user.sql
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
-- Verify node-boilerplate:user on pg

BEGIN;

-- XXX Add verifications here.

ROLLBACK;

0 comments on commit c7b2fc2

Please sign in to comment.