Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge remote-tracking branch 'origin/DAT-8601' into dependabot/maven/…
…liquibase-dist/com.h2database-h2-2.0.202
- Loading branch information
Showing
36 changed files
with
694 additions
and
76 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
18 changes: 18 additions & 0 deletions
18
liquibase-core/src/main/resources/liquibase/examples/json/blank-changelog.json
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,18 @@ | ||
{ "databaseChangeLog": [ | ||
"changeset": { | ||
"id": "1", | ||
"author": "your.name", | ||
"changes": [ | ||
{ | ||
} | ||
] | ||
}, | ||
"changeset": { | ||
"id": "2", | ||
"author": "your.name", | ||
"changes": [ | ||
{ | ||
} | ||
] | ||
} | ||
]} |
120 changes: 120 additions & 0 deletions
120
liquibase-core/src/main/resources/liquibase/examples/json/example-changelog.json
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,120 @@ | ||
{ "databaseChangeLog": [ | ||
{ | ||
"changeSet": { | ||
"id": "1", | ||
"author": "your.name", | ||
"changes": [ | ||
{ | ||
"createTable": { | ||
"tableName": "person", | ||
"columns": [ | ||
{ | ||
"column": { | ||
"name": "id", | ||
"type": "int", | ||
"autoIncrement": true, | ||
"constraints": { | ||
"primarykey": true, | ||
"nullable": false | ||
} | ||
} | ||
}, | ||
{ | ||
"column": { | ||
"name": "name", | ||
"type": "varchar(50)" | ||
} | ||
}, | ||
{ | ||
"column": { | ||
"name": "addresss1", | ||
"type": "varchar(50)" | ||
} | ||
}, | ||
{ | ||
"column": { | ||
"name": "addresss2", | ||
"type": "varchar(50)" | ||
} | ||
}, | ||
{ | ||
"column": { | ||
"name": "city", | ||
"type": "varchar(30)" | ||
} | ||
} | ||
] | ||
} | ||
}] | ||
} | ||
}, | ||
{ | ||
"changeSet": { | ||
"id": "2", | ||
"author": "your.name", | ||
"changes": [ | ||
{ | ||
"createTable": { | ||
"tableName": "company", | ||
"columns": [ | ||
{ | ||
"column": { | ||
"name": "id", | ||
"type": "int", | ||
"autoIncrement": true, | ||
"constraints": { | ||
"primarykey": true, | ||
"nullable": false | ||
} | ||
} | ||
}, | ||
{ | ||
"column": { | ||
"name": "name", | ||
"type": "varchar(50)" | ||
} | ||
}, | ||
{ | ||
"column": { | ||
"name": "addresss1", | ||
"type": "varchar(50)" | ||
} | ||
}, | ||
{ | ||
"column": { | ||
"name": "addresss2", | ||
"type": "varchar(50)" | ||
} | ||
}, | ||
{ | ||
"column": { | ||
"name": "city", | ||
"type": "varchar(30)" | ||
} | ||
} | ||
] | ||
} | ||
}] | ||
} | ||
}, | ||
{ | ||
"changeSet": { | ||
"id": "3", | ||
"author": "your.name", | ||
"changes": [ | ||
{ | ||
"addColumn": { | ||
"tableName": "company", | ||
"columns": [ | ||
{ | ||
"column": { | ||
"name": "country", | ||
"type": "varchar(2)" | ||
} | ||
} | ||
] | ||
} | ||
}] | ||
} | ||
} | ||
]} |
30 changes: 30 additions & 0 deletions
30
liquibase-core/src/main/resources/liquibase/examples/json/example-changeset-json.txt
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,30 @@ | ||
"changeSet": { | ||
"id": "1", | ||
"author": "dev", | ||
"changes": [ | ||
{ | ||
"createTable": { | ||
"tableName": "person", | ||
"columns": [ | ||
{ | ||
"column": { | ||
"name": "id", | ||
"type": "int", | ||
"autoIncrement": true, | ||
"constraints": { | ||
"primaryKey": true, | ||
"nullable": false | ||
} | ||
} | ||
}, | ||
{ | ||
"column": { | ||
"name": "name", | ||
"type": "varchar(255)" | ||
} | ||
} | ||
] | ||
} | ||
} | ||
] | ||
} |
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
File renamed without changes.
File renamed without changes.
7 changes: 7 additions & 0 deletions
7
liquibase-core/src/main/resources/liquibase/examples/sql/example-changeset-sql.txt
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,7 @@ | ||
(example-changeset-sql.txt) | ||
|
||
--changeset dev:1 | ||
create table test1( | ||
id int primary key, | ||
name varchar(255) | ||
); |
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
File renamed without changes.
41 changes: 41 additions & 0 deletions
41
liquibase-core/src/main/resources/liquibase/examples/start-h2
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,41 @@ | ||
#!/usr/bin/env bash | ||
|
||
if [ -z "${LIQUIBASE_HOME}" ]; then | ||
#liquibase home is not set | ||
|
||
LIQUIBASE_PATH="$(which liquibase)" | ||
|
||
if [ -z "${LIQUIBASE_PATH}" ]; then | ||
echo "Must set LIQUIBASE_HOME environment variable, or have liquibase in your PATH" | ||
exit 1 | ||
fi | ||
|
||
LIQUIBASE_HOME=$(dirname "$(which liquibase)") | ||
fi | ||
|
||
if [ -z "${JAVA_HOME}" ]; then | ||
#JAVA_HOME not set, try to find a bundled version | ||
if [ -d "${LIQUIBASE_HOME}/jre" ]; then | ||
JAVA_HOME="$LIQUIBASE_HOME/jre" | ||
elif [ -d "${LIQUIBASE_HOME}/.install4j/jre.bundle/Contents/Home" ]; then | ||
JAVA_HOME="${LIQUIBASE_HOME}/.install4j/jre.bundle/Contents/Home" | ||
fi | ||
fi | ||
|
||
if [ -z "${JAVA_HOME}" ]; then | ||
JAVA_PATH="$(which java)" | ||
|
||
if [ -z "${JAVA_PATH}" ]; then | ||
echo "Cannot find java in your path. Install java or use the JAVA_HOME environment variable" | ||
|
||
exit 1 | ||
fi | ||
else | ||
#Use path in JAVA_HOME | ||
JAVA_PATH="${JAVA_HOME}/bin/java" | ||
fi | ||
|
||
|
||
# echo "${JAVA_PATH}" -cp "${LIQUIBASE_HOME}/lib/h2-1.4.200.jar:${LIQUIBASE_HOME}/liquibase.jar" liquibase.example.StartH2Main | ||
|
||
"${JAVA_PATH}" -cp "${LIQUIBASE_HOME}/lib/h2-1.4.200.jar:${LIQUIBASE_HOME}/liquibase.jar" liquibase.example.StartH2Main |
34 changes: 34 additions & 0 deletions
34
liquibase-core/src/main/resources/liquibase/examples/start-h2.bat
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,34 @@ | ||
@echo off | ||
if "%OS%" == "Windows_NT" setlocal | ||
|
||
setlocal enabledelayedexpansion | ||
|
||
rem %~dp0 is expanded pathname of the current script under NT | ||
rem %~p0 is the directory of the current script | ||
|
||
if exist %~p0\..\liquibase.jar SET LIQUIBASE_HOME="%~p0\.." | ||
|
||
if "%LIQUIBASE_HOME%"=="" ( | ||
FOR /F "tokens=* USEBACKQ" %%g IN (`where liquibase.bat`) do (SET "LIQUIBASE_HOME=%%~dpg") | ||
) | ||
|
||
if "%LIQUIBASE_HOME%"=="" ( | ||
echo "Must set LIQUIBASE_HOME environment variable, or have liquibase.bat in your PATH" | ||
exit /B 1 | ||
) | ||
|
||
if "%JAVA_HOME%"=="" ( | ||
|
||
rem check for jre dir in liquibase_home | ||
if NOT "%LIQUIBASE_HOME%"=="" if exist "%LIQUIBASE_HOME%\jre" ( | ||
set JAVA_HOME=%LIQUIBASE_HOME%\jre | ||
) | ||
) | ||
|
||
if "%JAVA_HOME%"=="" ( | ||
set JAVA_PATH=java | ||
) else ( | ||
set JAVA_PATH=%JAVA_HOME%\bin\java | ||
) | ||
|
||
"%JAVA_PATH%" -cp "%LIQUIBASE_HOME%\lib\h2-1.4.200.jar;%LIQUIBASE_HOME%\liquibase.jar" liquibase.example.StartH2Main |
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
File renamed without changes.
13 changes: 13 additions & 0 deletions
13
liquibase-core/src/main/resources/liquibase/examples/xml/example-changeset-xml.txt
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 @@ | ||
<changeSet id="1" author="your.name"> | ||
<createTable tableName="person"> | ||
<column name="id" type="int"> | ||
<constraints primaryKey="true"/> | ||
</column> | ||
<column name="name" type="varchar(50)"> | ||
<constraints nullable="false"/> | ||
</column> | ||
<column name="address1" type="varchar(50)"/> | ||
<column name="address2" type="varchar(50)"/> | ||
<column name="city" type="varchar(30)"/> | ||
</createTable> | ||
</changeSet> |
Oops, something went wrong.