-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix issues with H2 and reserved keywords
- Loading branch information
Showing
8 changed files
with
25 additions
and
20 deletions.
There are no files selected for viewing
2 changes: 1 addition & 1 deletion
2
klass-api/src/main/resources/application-h2-inmemory.properties
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,2 +1,2 @@ | ||
# custom properties used when "h2-inmemory" Profile is used | ||
spring.datasource.url=jdbc:h2:mem:testdb;DB_CLOSE_ON_EXIT=FALSE;MODE=MySQL | ||
spring.datasource.url=jdbc:h2:mem:testdb;DB_CLOSE_ON_EXIT=FALSE;MODE=MySQL;NON_KEYWORDS=user |
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
2 changes: 2 additions & 0 deletions
2
klass-shared/src/main/resources/application-h2-inmemory.properties
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,2 @@ | ||
# custom properties used when "h2-inmemory" Profile is used | ||
spring.datasource.url=jdbc:h2:mem:testdb;DB_CLOSE_ON_EXIT=FALSE;MODE=MySQL;NON_KEYWORDS=user |
4 changes: 2 additions & 2 deletions
4
klass-shared/src/main/resources/db/migration/V17__adding_phonenumber_and_email_to_users.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 |
---|---|---|
@@ -1,2 +1,2 @@ | ||
ALTER TABLE "user" ADD email VARCHAR(255) NULL; | ||
ALTER TABLE "user" ADD phone VARCHAR(255) NULL; | ||
ALTER TABLE "USER" ADD email VARCHAR(255) NULL; | ||
ALTER TABLE "USER" ADD phone VARCHAR(255) NULL; |
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: 2 additions & 2 deletions
4
klass-shared/src/main/resources/db/migration/V4__drop_deleted_columns.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 |
---|---|---|
@@ -1,10 +1,10 @@ | ||
-- Only classes(tables) implementing SoftDeletable shall have deleted column | ||
|
||
ALTER TABLE classification_family DROP COLUMN deleted; | ||
ALTER TABLE classification_item DROP COLUMN deleted; | ||
ALTER TABLE correspondence_map DROP COLUMN deleted; | ||
ALTER TABLE level DROP COLUMN deleted; | ||
ALTER TABLE statistical_unit DROP COLUMN deleted; | ||
ALTER TABLE subscriber DROP COLUMN deleted; | ||
ALTER TABLE subscription DROP COLUMN deleted; | ||
ALTER TABLE "user" DROP COLUMN deleted; | ||
ALTER TABLE "USER" DROP COLUMN deleted; |