Skip to content

Commit

Permalink
fix(core): fix typo in SQL statement updating database to version 3.2.15
Browse files Browse the repository at this point in the history
The SQL statement incorrectly used column id instead of user_id.

(cherry picked from commit 5e0ee31)
  • Loading branch information
martin-kuba authored and xflord committed Jul 13, 2023
1 parent e7acca0 commit 2ed300d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion perun-core/src/main/resources/postgresChangelog.txt
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
-- 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.

3.2.15
INSERT INTO authz (user_id, role_id) VALUES ((select id from user_ext_sources where login_ext='perun' and ext_sources_id=(select id from ext_sources where name='INTERNAL' and type='cz.metacentrum.perun.core.impl.ExtSourceInternal')),(select id from roles where name='perunadmin')) ON CONFLICT DO NOTHING;
INSERT INTO authz (user_id, role_id) VALUES ((select user_id from user_ext_sources where login_ext='perun' and ext_sources_id=(select id from ext_sources where name='INTERNAL' and type='cz.metacentrum.perun.core.impl.ExtSourceInternal')),(select id from roles where name='perunadmin')) ON CONFLICT DO NOTHING;
UPDATE configurations set value='3.2.15' WHERE property='DATABASE VERSION';

3.2.14
Expand Down

0 comments on commit 2ed300d

Please sign in to comment.