Skip to content

Commit

Permalink
- update sql scripts and migrations
Browse files Browse the repository at this point in the history
  • Loading branch information
afabiani committed Jan 16, 2024
1 parent a3be069 commit 40a1727
Show file tree
Hide file tree
Showing 5 changed files with 8 additions and 0 deletions.
1 change: 1 addition & 0 deletions doc/sql/002_create_schema_oracle.sql
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,7 @@
metadata varchar2(4000 char),
name varchar2(255 char) not null,
category_id number(19,0) not null,
advertised bool not null,
primary key (id),
unique (name)
);
Expand Down
1 change: 1 addition & 0 deletions doc/sql/002_create_schema_postgres.sql
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,7 @@ psql -U geostore_test -d geostore -f 002_create_schema_postgres.sql
metadata varchar(30000),
name varchar(255) not null,
category_id int8 not null,
advertised bool not null,
primary key (id),
unique (name)
);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,3 +14,5 @@ create index idx_user_group_attr_text on gs_user_group_attribute (string);
create index idx_attr_user_group on gs_user_group_attribute (userGroup_id);

alter table gs_user_group_attribute add constraint fk_ugattrib_user_group foreign key (userGroup_id) references gs_usergroup;

alter table gs_resource add column advertised bool not null;
Original file line number Diff line number Diff line change
Expand Up @@ -15,3 +15,5 @@ create index idx_user_group_attr_text on gs_user_group_attribute (string);
create index idx_attr_user_group on gs_user_group_attribute (userGroup_id);

alter table gs_user_group_attribute add constraint fk_ugattrib_user_group foreign key (userGroup_id) references gs_usergroup;

alter table gs_resource add column advertised bool not null;
Original file line number Diff line number Diff line change
Expand Up @@ -15,3 +15,5 @@ create index idx_user_group_attr_text on gs_user_group_attribute (string);
create index idx_attr_user_group on gs_user_group_attribute (userGroup_id);

alter table gs_user_group_attribute add constraint fk_ugattrib_user_group foreign key (userGroup_id) references gs_usergroup;

alter table gs_resource add column advertised bool not null;

0 comments on commit 40a1727

Please sign in to comment.