-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
sql replacement of the query part where empty group placeholder is pr…
…esent outdated installation check documentation (init command) example config file empty group dbchange sample
- Loading branch information
Jan Kapciar
committed
Oct 30, 2018
1 parent
3d48bdb
commit d3a9c5d
Showing
14 changed files
with
201 additions
and
61 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,71 @@ | ||
parameters: | ||
database: | ||
driver: oci8 | ||
host: localhost | ||
user: ABC_GLOBAL | ||
password: ABC123ABC | ||
servicename: ABC | ||
dbname: ABC | ||
port: 1521 | ||
dbchanger: | ||
# database connection data for dbchanger running instance, mandatory (individual database parameters by driver spec) | ||
|
||
# folder where dbchange files are located | ||
inputDirectory: 'misc\sampledata\' | ||
|
||
# folder into which dbchange content should be generated into | ||
outputDirectory: 'output' | ||
|
||
# folder for logs and exceptions | ||
logDirectory: 'log' | ||
|
||
# in case dbchange files have some prefix, e.g. when dbchange_01_group.sql = you need to define prefix dbchange_ | ||
filePrefix: '' | ||
|
||
# in this section environments are defined | ||
datamodel: | ||
|
||
# list of all defined groups, mandatory and must be filled | ||
groups: [central, region, home, operations, all] | ||
|
||
# which groups should be treated as manual ones (sql content in such fragments is not executed during installation and require manual interaction), optional | ||
manualGroups: [operations] | ||
|
||
# environment definitions, mandatory | ||
environments: | ||
|
||
# each environment must have 3-letter code, mandatory | ||
LOC: | ||
|
||
# environment name, mandatory | ||
name: Local Development | ||
|
||
# environment description, optional | ||
description: Local Development Environment | ||
|
||
# hostname where database is running, mandatory | ||
hostname: %database.host% | ||
|
||
# database name (instance name, service name), mandatory | ||
dbname: %database.dbname% | ||
|
||
# database port, mandatory | ||
port: 1521 | ||
|
||
# or OPTION 2 = define usernames and passwords (order of values is important, length of arrays must equal) | ||
# database user names (mandatory in case of option 2, omit in case of option 1) | ||
usernames: ['%database.dbname%', '%database.dbname%au', '%database.dbname%us'] | ||
# database user passwords (mandatory in case of option 2, omit in case of option 1) | ||
passwords: ['%database.password%', '%database.password%au', '%database.password%us'] | ||
|
||
# database groups with assigned users, see this example, mandatory | ||
groups: | ||
all: ['%database.dbname%', '%database.dbname%au', '%database.dbname%us'] | ||
central: ['%database.dbname%'] | ||
region: ['%database.dbname%au', '%database.dbname%us'] | ||
|
||
# placeholders used in dbchange fragment sql content, see this example, optional | ||
placeholders: | ||
'<central>': %database.dbname% | ||
'<user>': ABCUSER | ||
'<systemuser>': ABCSYS |
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 @@ | ||
GRANT SELECT, INSERT, UPDATE, DELETE ON TESTTABLE to <region> with grant option; |
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 @@ | ||
GRANT SELECT, INSERT, UPDATE, DELETE ON TESTTABLE to <empty> with grant option; |
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,5 @@ | ||
CREATE TABLE DUMMYTABLE | ||
( | ||
VALUE1 INT, | ||
VALUE2 VARCHAR2(20) | ||
); |
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,13 @@ | ||
CREATE OR REPLACE VIEW TESTEMPTYGLOBALVIEW AS | ||
SELECT | ||
v.VALUE11 as ONEVALUE1, v.VALUE12 as ONEVALUE2, v.VALUE21 as TWOVALUE1, v.VALUE22 as TWOVALUE2, v.REGION as REGION FROM ( | ||
/*START*/ SELECT | ||
tone.VALUE1 as VALUE11, tone.VALUE2 as VALUE12, ttwo.VALUE1 as VALUE21, ttwo.VALUE2 as VALUE22, '<empty>' as REGION | ||
FROM | ||
<empty>.DUMMYTABLE tone, <empty>.DUMMYTABLE ttwo | ||
WHERE | ||
tone.VALUE1 = 1 AND | ||
ttwo.VALUE1 = 2 | ||
/*END*/ | ||
/*GLUE_START UNION ALL GLUE_END*/ | ||
) v; |
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 @@ | ||
CENTRAL_TABLE |
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
Oops, something went wrong.