User creation now possible!
Signed-off-by: Louis Hollingworth <louis@hollingworth.nl>
This commit is contained in:
parent
215cf639bd
commit
f671a5ba2f
12 changed files with 2185 additions and 44 deletions
2
migrations/0001_add_user.down.sql
Normal file
2
migrations/0001_add_user.down.sql
Normal file
|
|
@ -0,0 +1,2 @@
|
|||
-- Add down migration script here
|
||||
DROP TABLE "users";
|
||||
9
migrations/0001_add_user.up.sql
Normal file
9
migrations/0001_add_user.up.sql
Normal file
|
|
@ -0,0 +1,9 @@
|
|||
-- Add up migration script here
|
||||
CREATE TABLE "users" (
|
||||
id INTEGER PRIMARY KEY,
|
||||
name TEXT NOT NULL,
|
||||
site TEXT NOT NULL,
|
||||
xmpp TEXT,
|
||||
epost TEXT,
|
||||
password TEXT NOT NULL
|
||||
);
|
||||
2
migrations/0002_add_token_to_user.down.sql
Normal file
2
migrations/0002_add_token_to_user.down.sql
Normal file
|
|
@ -0,0 +1,2 @@
|
|||
-- Add down migration script here
|
||||
ALTER TABLE users DROP COLUMN active_token;
|
||||
3
migrations/0002_add_token_to_user.up.sql
Normal file
3
migrations/0002_add_token_to_user.up.sql
Normal file
|
|
@ -0,0 +1,3 @@
|
|||
-- Add up migration script here
|
||||
ALTER TABLE users
|
||||
ADD COLUMN active_token TEXT;
|
||||
Loading…
Add table
Add a link
Reference in a new issue