Add projects

This commit is contained in:
2022-02-14 01:25:36 +01:00
parent 3e843d429a
commit cb0917d916
14 changed files with 262 additions and 23 deletions

View File

@@ -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;

View File

@@ -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.

View 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.

View File

@@ -31,4 +31,4 @@ sslmode = prefer
[data]
# Any fields in the data section are available in migration templates
# prefix = foo
prefix = serverctl