-
Notifications
You must be signed in to change notification settings - Fork 19
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Use Java8 as jdbc driver requires Java8 to support SCRAM. Major version bump to 2.0.0 Add missing resource file for test
- Loading branch information
Showing
4 changed files
with
56 additions
and
16 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
37 changes: 37 additions & 0 deletions
37
CommandLineClient/src/test/resources/postgres-migration-example2.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,37 @@ | ||
/*MIGRATION_DESCRIPTION | ||
MIGRATION_DESCRIPTION*/ | ||
|
||
DO $$ BEGIN | ||
IF EXISTS(SELECT * FROM pg_class c JOIN pg_namespace n ON n.oid = c.relnamespace WHERE n.nspname = '-DSL-' AND c.relname = 'database_setting') THEN | ||
IF EXISTS(SELECT * FROM "-DSL-".Database_Setting WHERE Key ILIKE 'mode' AND NOT Value ILIKE 'unsafe') THEN | ||
RAISE EXCEPTION 'Database upgrade is forbidden. Change database mode to allow upgrade'; | ||
END IF; | ||
END IF; | ||
END $$ LANGUAGE plpgsql; | ||
|
||
DO $$ BEGIN | ||
END $$ LANGUAGE plpgsql; | ||
|
||
SELECT "-DSL-".Persist_Concepts('"test/alias.dsl"=>"type ExternalID = String(64); | ||
", "test/quotes.dsl"=>"module spec | ||
{ | ||
aggregate Fact(date, account) { | ||
Date date; | ||
Long account { index; } | ||
specification ByAccounts ''it => ids.Contains(it.accountID)'' { | ||
Long[] ids; | ||
} | ||
persistence { specification delete enabled; } | ||
} | ||
", "test/escapes.dsl"=>"module escapes | ||
{ | ||
aggregate Cheque(number, bank) { | ||
String number; | ||
String bank { default ''it => \"Test me\"''; } | ||
Bool cancelled; // Only an \"Test me\" can be used | ||
} | ||
} | ||
"', '\x','2.1.0.14620','ABCD'); | ||
SELECT pg_notify('migration', 'new'); | ||
|