Add applications
This commit is contained in:
18
services/db/migrations/006_add_application.sql
Normal file
18
services/db/migrations/006_add_application.sql
Normal file
@@ -0,0 +1,18 @@
|
||||
-- Write your migrate up statements here
|
||||
|
||||
create table sctl_application
|
||||
(
|
||||
id int GENERATED BY DEFAULT AS IDENTITY primary key,
|
||||
name varchar(30) not null,
|
||||
project_id int not null,
|
||||
constraint fk_project
|
||||
foreign key (project_id)
|
||||
REFERENCES sctl_project (id) ON DELETE CASCADE
|
||||
);
|
||||
|
||||
---- create above / drop below ----
|
||||
|
||||
drop table sctl_application;
|
||||
|
||||
-- Write your migrate down statements here. If this migration is irreversible
|
||||
-- Then delete the separator line above.
|
Reference in New Issue
Block a user