Add projects
This commit is contained in:
@@ -1,9 +1,10 @@
|
||||
create table users(
|
||||
id serial primary key,
|
||||
email varchar(320) not null,
|
||||
password_hash varchar(256) not null
|
||||
create table sctl_user
|
||||
(
|
||||
id int GENERATED BY DEFAULT AS IDENTITY primary key,
|
||||
email varchar(320) not null,
|
||||
password_hash varchar(256) not null
|
||||
);
|
||||
|
||||
---- create above / drop below ----
|
||||
|
||||
drop table users;
|
||||
drop table sctl_user;
|
||||
|
@@ -1,10 +1,10 @@
|
||||
-- Write your migrate up statements here
|
||||
create unique index users_unique_index
|
||||
on users(email);
|
||||
create unique index user_email_unique_index
|
||||
on sctl_user(email);
|
||||
|
||||
---- create above / drop below ----
|
||||
|
||||
drop index users_unique_index;
|
||||
drop index user_email_unique_index;
|
||||
|
||||
-- Write your migrate down statements here. If this migration is irreversible
|
||||
-- Then delete the separator line above.
|
||||
|
14
migrations/003_add_projects.sql
Normal file
14
migrations/003_add_projects.sql
Normal file
@@ -0,0 +1,14 @@
|
||||
-- Write your migrate up statements here
|
||||
|
||||
create table sctl_project
|
||||
(
|
||||
id int GENERATED BY DEFAULT AS IDENTITY primary key,
|
||||
data jsonb NOT NULL
|
||||
);
|
||||
|
||||
---- create above / drop below ----
|
||||
|
||||
drop table sctl_project;
|
||||
|
||||
-- Write your migrate down statements here. If this migration is irreversible
|
||||
-- Then delete the separator line above.
|
@@ -31,4 +31,4 @@ sslmode = prefer
|
||||
|
||||
[data]
|
||||
# Any fields in the data section are available in migration templates
|
||||
# prefix = foo
|
||||
prefix = serverctl
|
||||
|
Reference in New Issue
Block a user