Skip to content

Commit b9c8c0b

Browse files
martin-kubaHejdaJakub
authored andcommitted
fix(core): fix syntax error in CREATE TABLE auto_registration_groups
The postgresChangelog.txt contained a SQL statement with wrong syntax. (cherry picked from commit d821513)
1 parent 0f77470 commit b9c8c0b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

perun-core/src/main/resources/postgresChangelog.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
-- Comments are prefixed with -- and can be written only between version blocks, that means not in the lines with commands. They have to be at the start of the line.
88

99
3.2.14
10-
CREATE TABLE auto_registration_groups (group_id integer not null, application_form_item_id integer not null, constraint auto_reg_grps_group_fk foreign key (group_id) references groups(id) on delete cascade, constraint auto_reg_grps_app_forms_fk foreign key (application_form_item_id) references application_form_items(id) on delete cascade), constraint auto_reg_grps_grp_app_form_u unique (group_id, application_form_item_id);
10+
CREATE TABLE auto_registration_groups (group_id integer not null, application_form_item_id integer not null, constraint auto_reg_grps_group_fk foreign key (group_id) references groups(id) on delete cascade, constraint auto_reg_grps_app_forms_fk foreign key (application_form_item_id) references application_form_items(id) on delete cascade, constraint auto_reg_grps_grp_app_form_u unique (group_id, application_form_item_id));
1111
create index idx_auto_reg_grps_grp_app_form on auto_registration_groups (group_id,application_form_item_id);
1212
UPDATE configurations set value='3.2.14' WHERE property='DATABASE VERSION';
1313
grant all on auto_registration_groups to perun;

0 commit comments

Comments
 (0)