-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
🐛 (208): Fix insertion issues with test-data
- increment by 1 instead of 50 - every endpoint is authenticated
- Loading branch information
Manuel Klaus
committed
Dec 23, 2024
1 parent
5340ddd
commit c509160
Showing
8 changed files
with
70 additions
and
63 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
4 changes: 4 additions & 0 deletions
4
backend/app.hopps.org/src/main/resources/db/migration/V1.0.1__alter_sequences.sql
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
alter sequence Bommel_SEQ INCREMENT BY 1; | ||
alter sequence Member_SEQ INCREMENT BY 1; | ||
alter sequence Organization_SEQ INCREMENT BY 1; | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,11 +1,13 @@ | ||
insert into Organization (type, id, slug, name, website, plz, city, street, number) | ||
values | ||
(0, 2, 'gruenes-herz-ev', 'Grünes Herz e.V.', 'https://gruenes-herz.de/', '27324', 'Schweringen', 'Am Lennestein', '110'), | ||
(0, 3, 'kaeltekrieger', 'Eishockeyclub Kältekrieger e.V.', 'https://kaeltekrieger.de/', '89129', 'Langenau', 'August-Brust-Straße', '78'), | ||
(0, 4, 'buehnefrei-ev', 'Theatervereine Bühnefrei e.V.', 'https://bühnefrei.de/', '33397', 'Rietberg', 'Dechant-Karthaus-Straße', '172'); | ||
values (0, 2, 'gruenes-herz-ev', 'Grünes Herz e.V.', 'https://gruenes-herz.de/', '27324', 'Schweringen', | ||
'Am Lennestein', '110'), | ||
(0, 3, 'kaeltekrieger', 'Eishockeyclub Kältekrieger e.V.', 'https://kaeltekrieger.de/', '89129', 'Langenau', | ||
'August-Brust-Straße', '78'), | ||
(0, 4, 'buehnefrei-ev', 'Theatervereine Bühnefrei e.V.', 'https://bühnefrei.de/', '33397', 'Rietberg', | ||
'Dechant-Karthaus-Straße', '172'); | ||
|
||
insert into member | ||
(id, email, firstName, lastName) | ||
(id, email, firstName, lastName) | ||
values | ||
-- gruenes-herz-ev | ||
(2, '[email protected]', 'Emanuel', 'Urban'), | ||
|
@@ -102,3 +104,7 @@ where id = 3; | |
update Organization | ||
set rootBommel_id = 23 | ||
where id = 4; | ||
|
||
select setval('Bommel_SEQ', 30, true); | ||
select setval('Organization_SEQ', 4, true); | ||
select setval('Member_SEQ', 20, true); |