UNCLASSIFIED
Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Open sidebar
TRON
A
Arcade-Archive
tron-common-api
tron-common-api
Commits
e47216ba
Commit
e47216ba
authored
Aug 24, 2021
by
Christopher Zell
Browse files
squashed migration files
parent
382a7202
Changes
54
Hide whitespace changes
Inline
Side-by-side
Showing
20 changed files
with
0 additions
and
662 deletions
+0
-662
src/main/resources/db/changelog/diff-changelog-1.00.016.xml
src/main/resources/db/changelog/diff-changelog-1.00.016.xml
+0
-39
src/main/resources/db/changelog/diff-changelog-1.00.017.xml
src/main/resources/db/changelog/diff-changelog-1.00.017.xml
+0
-9
src/main/resources/db/changelog/diff-changelog-1.00.018.xml
src/main/resources/db/changelog/diff-changelog-1.00.018.xml
+0
-45
src/main/resources/db/changelog/diff-changelog-1.00.019.xml
src/main/resources/db/changelog/diff-changelog-1.00.019.xml
+0
-8
src/main/resources/db/changelog/diff-changelog-1.00.020.xml
src/main/resources/db/changelog/diff-changelog-1.00.020.xml
+0
-10
src/main/resources/db/changelog/diff-changelog-1.00.021.xml
src/main/resources/db/changelog/diff-changelog-1.00.021.xml
+0
-50
src/main/resources/db/changelog/diff-changelog-1.00.022.xml
src/main/resources/db/changelog/diff-changelog-1.00.022.xml
+0
-30
src/main/resources/db/changelog/diff-changelog-1.00.023.xml
src/main/resources/db/changelog/diff-changelog-1.00.023.xml
+0
-59
src/main/resources/db/changelog/diff-changelog-1.00.024.xml
src/main/resources/db/changelog/diff-changelog-1.00.024.xml
+0
-11
src/main/resources/db/changelog/diff-changelog-1.00.025.xml
src/main/resources/db/changelog/diff-changelog-1.00.025.xml
+0
-6
src/main/resources/db/changelog/diff-changelog-1.00.026.xml
src/main/resources/db/changelog/diff-changelog-1.00.026.xml
+0
-25
src/main/resources/db/changelog/diff-changelog-1.00.027.xml
src/main/resources/db/changelog/diff-changelog-1.00.027.xml
+0
-19
src/main/resources/db/changelog/diff-changelog-1.00.028.xml
src/main/resources/db/changelog/diff-changelog-1.00.028.xml
+0
-33
src/main/resources/db/changelog/diff-changelog-1.00.029.xml
src/main/resources/db/changelog/diff-changelog-1.00.029.xml
+0
-6
src/main/resources/db/changelog/diff-changelog-1.00.030.xml
src/main/resources/db/changelog/diff-changelog-1.00.030.xml
+0
-15
src/main/resources/db/changelog/diff-changelog-1.00.031.xml
src/main/resources/db/changelog/diff-changelog-1.00.031.xml
+0
-30
src/main/resources/db/changelog/diff-changelog-1.00.032.xml
src/main/resources/db/changelog/diff-changelog-1.00.032.xml
+0
-217
src/main/resources/db/changelog/diff-changelog-1.00.033.xml
src/main/resources/db/changelog/diff-changelog-1.00.033.xml
+0
-24
src/main/resources/db/changelog/diff-changelog-1.00.034.xml
src/main/resources/db/changelog/diff-changelog-1.00.034.xml
+0
-10
src/main/resources/db/changelog/diff-changelog-1.00.035.xml
src/main/resources/db/changelog/diff-changelog-1.00.035.xml
+0
-16
No files found.
src/main/resources/db/changelog/diff-changelog-1.00.016.xml
deleted
100644 → 0
View file @
382a7202
<?xml version="1.1" encoding="UTF-8" standalone="no"?>
<databaseChangeLog
xmlns=
"http://www.liquibase.org/xml/ns/dbchangelog"
xmlns:ext=
"http://www.liquibase.org/xml/ns/dbchangelog-ext"
xmlns:pro=
"http://www.liquibase.org/xml/ns/pro"
xmlns:xsi=
"http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation=
"http://www.liquibase.org/xml/ns/dbchangelog-ext http://www.liquibase.org/xml/ns/dbchangelog/dbchangelog-ext.xsd http://www.liquibase.org/xml/ns/pro http://www.liquibase.org/xml/ns/pro/liquibase-pro-4.1.xsd http://www.liquibase.org/xml/ns/dbchangelog http://www.liquibase.org/xml/ns/dbchangelog/dbchangelog-4.1.xsd"
>
<changeSet
context=
"dev"
author=
"dmilligan"
id=
"jwt-admin-user"
>
<preConditions
onFail=
"MARK_RAN"
>
<sqlCheck
expectedResult=
"0"
>
SELECT COUNT(*) FROM dashboard_user WHERE email='bb@gmail.com';
</sqlCheck>
</preConditions>
<insert
tableName=
"dashboard_user"
>
<column
name=
"id"
value=
"034c63a3-d8a9-4f71-92c4-db1c8dc07809"
/>
<column
name=
"email"
value=
"bb@gmail.com"
/>
<column
name=
"email_as_lower"
value=
"bb@gmail.com"
/>
</insert>
<insert
tableName=
"dashboard_user_privileges"
>
<column
name=
"dashboard_user_id"
value=
"034c63a3-d8a9-4f71-92c4-db1c8dc07809"
/>
<column
name=
"privileges_id"
valueComputed=
"(SELECT id FROM privilege WHERE name='DASHBOARD_ADMIN')"
/>
</insert>
<insert
tableName=
"dashboard_user_privileges"
>
<column
name=
"dashboard_user_id"
value=
"034c63a3-d8a9-4f71-92c4-db1c8dc07809"
/>
<column
name=
"privileges_id"
valueComputed=
"(SELECT id FROM privilege WHERE name='DASHBOARD_USER')"
/>
</insert>
</changeSet>
<changeSet
context=
"dev"
author=
"dmilligan"
id=
"jwt-user-user"
>
<preConditions
onFail=
"MARK_RAN"
>
<sqlCheck
expectedResult=
"0"
>
SELECT COUNT(*) FROM dashboard_user WHERE email='jj@gmail.com';
</sqlCheck>
</preConditions>
<insert
tableName=
"dashboard_user"
>
<column
name=
"id"
value=
"fb58be31-ab38-4e28-b288-920269115bc7"
/>
<column
name=
"email"
value=
"jj@gmail.com"
/>
<column
name=
"email_as_lower"
value=
"jj@gmail.com"
/>
</insert>
<insert
tableName=
"dashboard_user_privileges"
>
<column
name=
"dashboard_user_id"
value=
"fb58be31-ab38-4e28-b288-920269115bc7"
/>
<column
name=
"privileges_id"
valueComputed=
"(SELECT id FROM privilege WHERE name='DASHBOARD_USER')"
/>
</insert>
</changeSet>
</databaseChangeLog>
src/main/resources/db/changelog/diff-changelog-1.00.017.xml
deleted
100644 → 0
View file @
382a7202
<?xml version="1.1" encoding="UTF-8" standalone="no"?>
<databaseChangeLog
xmlns=
"http://www.liquibase.org/xml/ns/dbchangelog"
xmlns:ext=
"http://www.liquibase.org/xml/ns/dbchangelog-ext"
xmlns:pro=
"http://www.liquibase.org/xml/ns/pro"
xmlns:xsi=
"http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation=
"http://www.liquibase.org/xml/ns/dbchangelog-ext http://www.liquibase.org/xml/ns/dbchangelog/dbchangelog-ext.xsd http://www.liquibase.org/xml/ns/pro http://www.liquibase.org/xml/ns/pro/liquibase-pro-4.1.xsd http://www.liquibase.org/xml/ns/dbchangelog http://www.liquibase.org/xml/ns/dbchangelog/dbchangelog-4.1.xsd"
>
<changeSet
author=
"christopherzell (generated)"
id=
"1615504404959-1"
>
<modifyDataType
tableName=
"scratch_storage"
columnName=
"value"
newDataType=
"varchar(2097152)"
/>
</changeSet>
<changeSet
author=
"christopherzell (generated)"
id=
"1615504404959-2"
>
<modifyDataType
tableName=
"pub_sub_ledger"
columnName=
"data"
newDataType=
"varchar(2097152)"
/>
</changeSet>
</databaseChangeLog>
src/main/resources/db/changelog/diff-changelog-1.00.018.xml
deleted
100644 → 0
View file @
382a7202
<?xml version="1.1" encoding="UTF-8" standalone="no"?>
<databaseChangeLog
xmlns=
"http://www.liquibase.org/xml/ns/dbchangelog"
xmlns:ext=
"http://www.liquibase.org/xml/ns/dbchangelog-ext"
xmlns:pro=
"http://www.liquibase.org/xml/ns/pro"
xmlns:xsi=
"http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation=
"http://www.liquibase.org/xml/ns/dbchangelog-ext http://www.liquibase.org/xml/ns/dbchangelog/dbchangelog-ext.xsd http://www.liquibase.org/xml/ns/pro http://www.liquibase.org/xml/ns/pro/liquibase-pro-4.1.xsd http://www.liquibase.org/xml/ns/dbchangelog http://www.liquibase.org/xml/ns/dbchangelog/dbchangelog-4.1.xsd"
>
<changeSet
author=
"ckumabs03 (generated)"
id=
"1615001280958-7"
>
<createTable
tableName=
"app_source"
>
<column
name=
"id"
type=
"UUID"
>
<constraints
nullable=
"false"
primaryKey=
"true"
primaryKeyName=
"app_sourcePK"
/>
</column>
<column
name=
"name"
type=
"VARCHAR(255)"
/>
</createTable>
</changeSet>
<changeSet
author=
"ckumabs03 (generated)"
id=
"1615001280958-8"
>
<createTable
tableName=
"app_source_privs"
>
<column
name=
"id"
type=
"UUID"
>
<constraints
nullable=
"false"
primaryKey=
"true"
primaryKeyName=
"app_source_privsPK"
/>
</column>
<column
name=
"app_client_user_id"
type=
"UUID"
/>
<column
name=
"app_source_id"
type=
"UUID"
/>
</createTable>
</changeSet>
<changeSet
author=
"ckumabs03 (generated)"
id=
"1615001280958-9"
>
<createTable
tableName=
"app_source_privs_privileges"
>
<column
name=
"app_source_priv_id"
type=
"UUID"
>
<constraints
nullable=
"false"
primaryKey=
"true"
/>
</column>
<column
name=
"privileges_id"
type=
"BIGINT"
>
<constraints
nullable=
"false"
primaryKey=
"true"
/>
</column>
</createTable>
</changeSet>
<changeSet
author=
"ckumabs03 (generated)"
id=
"1615001280958-10"
>
<addUniqueConstraint
columnNames=
"name"
constraintName=
"UKq926ar1q8uc8370a0naauexdl"
tableName=
"app_source"
/>
</changeSet>
<changeSet
author=
"ckumabs03 (generated)"
id=
"1615001280958-11"
>
<addForeignKeyConstraint
baseColumnNames=
"app_source_priv_id"
baseTableName=
"app_source_privs_privileges"
constraintName=
"FK6tv6kfhbgse77s74304usb5iu"
deferrable=
"false"
initiallyDeferred=
"false"
referencedColumnNames=
"id"
referencedTableName=
"app_source_privs"
validate=
"true"
/>
</changeSet>
<changeSet
author=
"ckumabs03 (generated)"
id=
"1615001280958-12"
>
<addForeignKeyConstraint
baseColumnNames=
"app_client_user_id"
baseTableName=
"app_source_privs"
constraintName=
"FK9oyltycoohbjudwlk2ngtq0ko"
deferrable=
"false"
initiallyDeferred=
"false"
referencedColumnNames=
"id"
referencedTableName=
"app_client_user"
validate=
"true"
/>
</changeSet>
<changeSet
author=
"ckumabs03 (generated)"
id=
"1615001280958-13"
>
<addForeignKeyConstraint
baseColumnNames=
"app_source_id"
baseTableName=
"app_source_privs"
constraintName=
"FK9t1bsnvq5gq9f55w0fuau1wyn"
deferrable=
"false"
initiallyDeferred=
"false"
referencedColumnNames=
"id"
referencedTableName=
"app_source"
validate=
"true"
/>
</changeSet>
<changeSet
author=
"ckumabs03 (generated)"
id=
"1615001280958-14"
>
<addForeignKeyConstraint
baseColumnNames=
"privileges_id"
baseTableName=
"app_source_privs_privileges"
constraintName=
"FKmsci8vgp047g2sdunnj3ep9jh"
deferrable=
"false"
initiallyDeferred=
"false"
referencedColumnNames=
"id"
referencedTableName=
"privilege"
validate=
"true"
/>
</changeSet>
</databaseChangeLog>
src/main/resources/db/changelog/diff-changelog-1.00.019.xml
deleted
100644 → 0
View file @
382a7202
<?xml version="1.1" encoding="UTF-8" standalone="no"?>
<databaseChangeLog
xmlns=
"http://www.liquibase.org/xml/ns/dbchangelog"
xmlns:ext=
"http://www.liquibase.org/xml/ns/dbchangelog-ext"
xmlns:pro=
"http://www.liquibase.org/xml/ns/pro"
xmlns:xsi=
"http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation=
"http://www.liquibase.org/xml/ns/dbchangelog-ext http://www.liquibase.org/xml/ns/dbchangelog/dbchangelog-ext.xsd http://www.liquibase.org/xml/ns/pro http://www.liquibase.org/xml/ns/pro/liquibase-pro-4.1.xsd http://www.liquibase.org/xml/ns/dbchangelog http://www.liquibase.org/xml/ns/dbchangelog/dbchangelog-4.1.xsd"
>
<changeSet
author=
"dmilligan"
id=
"add-subscriber-secret-column"
>
<addColumn
tableName=
"subscriber"
>
<column
name=
"secret"
type=
"varchar(255)"
/>
</addColumn>
</changeSet>
</databaseChangeLog>
src/main/resources/db/changelog/diff-changelog-1.00.020.xml
deleted
100644 → 0
View file @
382a7202
<?xml version="1.1" encoding="UTF-8" standalone="no"?>
<databaseChangeLog
xmlns=
"http://www.liquibase.org/xml/ns/dbchangelog"
xmlns:ext=
"http://www.liquibase.org/xml/ns/dbchangelog-ext"
xmlns:pro=
"http://www.liquibase.org/xml/ns/pro"
xmlns:xsi=
"http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation=
"http://www.liquibase.org/xml/ns/dbchangelog-ext http://www.liquibase.org/xml/ns/dbchangelog/dbchangelog-ext.xsd http://www.liquibase.org/xml/ns/pro http://www.liquibase.org/xml/ns/pro/liquibase-pro-4.1.xsd http://www.liquibase.org/xml/ns/dbchangelog http://www.liquibase.org/xml/ns/dbchangelog/dbchangelog-4.1.xsd"
>
<changeSet
author=
"christopherzell (generated)"
id=
"1616600681437-8"
>
<addColumn
tableName=
"scratch_storage_app_registry"
>
<column
name=
"app_has_implicit_read"
type=
"boolean"
defaultValue=
"false"
>
<constraints
nullable=
"false"
/>
</column>
</addColumn>
</changeSet>
</databaseChangeLog>
src/main/resources/db/changelog/diff-changelog-1.00.021.xml
deleted
100644 → 0
View file @
382a7202
<?xml version="1.1" encoding="UTF-8" standalone="no"?>
<databaseChangeLog
xmlns=
"http://www.liquibase.org/xml/ns/dbchangelog"
xmlns:ext=
"http://www.liquibase.org/xml/ns/dbchangelog-ext"
xmlns:pro=
"http://www.liquibase.org/xml/ns/pro"
xmlns:xsi=
"http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation=
"http://www.liquibase.org/xml/ns/dbchangelog-ext http://www.liquibase.org/xml/ns/dbchangelog/dbchangelog-ext.xsd http://www.liquibase.org/xml/ns/pro http://www.liquibase.org/xml/ns/pro/liquibase-pro-4.1.xsd http://www.liquibase.org/xml/ns/dbchangelog http://www.liquibase.org/xml/ns/dbchangelog/dbchangelog-4.1.xsd"
>
<changeSet
author=
"ckumabe"
id=
"100021-11"
>
<preConditions
onFail=
"MARK_RAN"
>
<not>
<columnExists
tableName=
"app_source"
columnName=
"open_api_spec_filename"
/>
</not>
</preConditions>
<addColumn
tableName=
"app_source"
>
<column
name=
"open_api_spec_filename"
type=
"varchar(255)"
/>
</addColumn>
</changeSet>
<changeSet
author=
"ckumabe"
id=
"100021-12"
>
<preConditions
onFail=
"MARK_RAN"
>
<not>
<columnExists
tableName=
"app_source"
columnName=
"app_source_path"
/>
</not>
</preConditions>
<addColumn
tableName=
"app_source"
>
<column
name=
"app_source_path"
type=
"varchar(255)"
/>
</addColumn>
</changeSet>
<changeSet
id=
"43424234"
author=
"czell"
>
<preConditions
onFail=
"MARK_RAN"
>
<dbms
type=
"postgresql"
/>
<sqlCheck
expectedResult=
"1"
>
SELECT COUNT(*)
FROM pg_constraint
WHERE conname='UK100019-12'
</sqlCheck>
</preConditions>
<dropUniqueConstraint
constraintName=
"UK100019-12"
tableName=
"app_source"
uniqueColumns=
"app_source_path"
/>
</changeSet>
<changeSet
author=
"ckumabs03"
id=
"100021-13"
>
<addUniqueConstraint
columnNames=
"app_source_path"
constraintName=
"UK100019-12"
tableName=
"app_source"
/>
</changeSet>
</databaseChangeLog>
src/main/resources/db/changelog/diff-changelog-1.00.022.xml
deleted
100644 → 0
View file @
382a7202
<?xml version="1.1" encoding="UTF-8" standalone="no"?>
<databaseChangeLog
xmlns=
"http://www.liquibase.org/xml/ns/dbchangelog"
xmlns:ext=
"http://www.liquibase.org/xml/ns/dbchangelog-ext"
xmlns:pro=
"http://www.liquibase.org/xml/ns/pro"
xmlns:xsi=
"http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation=
"http://www.liquibase.org/xml/ns/dbchangelog-ext http://www.liquibase.org/xml/ns/dbchangelog/dbchangelog-ext.xsd http://www.liquibase.org/xml/ns/pro http://www.liquibase.org/xml/ns/pro/liquibase-pro-4.1.xsd http://www.liquibase.org/xml/ns/dbchangelog http://www.liquibase.org/xml/ns/dbchangelog/dbchangelog-4.1.xsd"
>
<changeSet
author=
"christopherzell (generated)"
id=
"1617126669054-9"
>
<createTable
tableName=
"app_source_app_source_admins"
>
<column
name=
"app_source_id"
type=
"UUID"
>
<constraints
nullable=
"false"
primaryKey=
"true"
/>
</column>
<column
name=
"app_source_admins_id"
type=
"UUID"
>
<constraints
nullable=
"false"
primaryKey=
"true"
/>
</column>
</createTable>
</changeSet>
<changeSet
author=
"christopherzell (generated)"
id=
"1617126669054-10"
>
<addForeignKeyConstraint
baseColumnNames=
"app_source_admins_id"
baseTableName=
"app_source_app_source_admins"
constraintName=
"FKgqseexiavt85xv00sho8jiulm"
deferrable=
"false"
initiallyDeferred=
"false"
referencedColumnNames=
"id"
referencedTableName=
"dashboard_user"
validate=
"true"
/>
</changeSet>
<changeSet
author=
"christopherzell (generated)"
id=
"1617126669054-11"
>
<addForeignKeyConstraint
baseColumnNames=
"app_source_id"
baseTableName=
"app_source_app_source_admins"
constraintName=
"FKi0oe2wab010nwxji9m1c8oot3"
deferrable=
"false"
initiallyDeferred=
"false"
referencedColumnNames=
"id"
referencedTableName=
"app_source"
validate=
"true"
/>
</changeSet>
<changeSet
author=
"christopherzell"
id=
"1617126669054-12"
>
<preConditions
onFail=
"MARK_RAN"
>
<sqlCheck
expectedResult=
"0"
>
SELECT COUNT(*) FROM privilege WHERE name='APP_SOURCE_ADMIN';
</sqlCheck>
</preConditions>
<insert
tableName=
"privilege"
>
<column
name=
"name"
value=
"APP_SOURCE_ADMIN"
/>
</insert>
</changeSet>
</databaseChangeLog>
src/main/resources/db/changelog/diff-changelog-1.00.023.xml
deleted
100644 → 0
View file @
382a7202
<?xml version="1.1" encoding="UTF-8" standalone="no"?>
<databaseChangeLog
xmlns=
"http://www.liquibase.org/xml/ns/dbchangelog"
xmlns:ext=
"http://www.liquibase.org/xml/ns/dbchangelog-ext"
xmlns:pro=
"http://www.liquibase.org/xml/ns/pro"
xmlns:xsi=
"http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation=
"http://www.liquibase.org/xml/ns/dbchangelog-ext http://www.liquibase.org/xml/ns/dbchangelog/dbchangelog-ext.xsd http://www.liquibase.org/xml/ns/pro http://www.liquibase.org/xml/ns/pro/liquibase-pro-4.1.xsd http://www.liquibase.org/xml/ns/dbchangelog http://www.liquibase.org/xml/ns/dbchangelog/dbchangelog-4.1.xsd"
>
<changeSet
author=
"billdewitt (generated)"
id=
"1617208284558-8"
>
<createTable
tableName=
"app_endpoint"
>
<column
name=
"id"
type=
"UUID"
>
<constraints
nullable=
"false"
primaryKey=
"true"
primaryKeyName=
"app_endpointPK"
/>
</column>
<column
name=
"method"
type=
"INTEGER"
/>
<column
name=
"path"
type=
"VARCHAR(255)"
/>
<column
name=
"app_source_id"
type=
"UUID"
>
<constraints
nullable=
"false"
/>
</column>
</createTable>
</changeSet>
<changeSet
author=
"billdewitt (generated)"
id=
"1617208284558-9"
>
<createTable
tableName=
"app_endpoint_privs"
>
<column
name=
"id"
type=
"UUID"
>
<constraints
nullable=
"false"
primaryKey=
"true"
primaryKeyName=
"app_endpoint_privsPK"
/>
</column>
<column
name=
"app_client_user_id"
type=
"UUID"
/>
<column
name=
"app_endpoint_id"
type=
"UUID"
>
<constraints
nullable=
"false"
/>
</column>
<column
name=
"app_source_id"
type=
"UUID"
>
<constraints
nullable=
"false"
/>
</column>
</createTable>
</changeSet>
<changeSet
author=
"billdewitt (generated)"
id=
"1617208284558-10"
>
<addForeignKeyConstraint
baseColumnNames=
"app_source_id"
baseTableName=
"app_endpoint_privs"
constraintName=
"FK193s6kbm3r1lq9m1xtqb8x5pe"
deferrable=
"false"
initiallyDeferred=
"false"
referencedColumnNames=
"id"
referencedTableName=
"app_source"
validate=
"true"
/>
</changeSet>
<changeSet
author=
"billdewitt (generated)"
id=
"1617208284558-11"
>
<addForeignKeyConstraint
baseColumnNames=
"app_client_user_id"
baseTableName=
"app_endpoint_privs"
constraintName=
"FKdmj6bf0tncgkdkg893ngfnarh"
deferrable=
"false"
initiallyDeferred=
"false"
referencedColumnNames=
"id"
referencedTableName=
"app_client_user"
validate=
"true"
/>
</changeSet>
<changeSet
author=
"billdewitt (generated)"
id=
"1617208284558-12"
>
<addForeignKeyConstraint
baseColumnNames=
"app_source_id"
baseTableName=
"app_endpoint"
constraintName=
"FKf5kkv6go8cubq0peuhuth3feu"
deferrable=
"false"
initiallyDeferred=
"false"
referencedColumnNames=
"id"
referencedTableName=
"app_source"
validate=
"true"
/>
</changeSet>
<changeSet
author=
"billdewitt (generated)"
id=
"1617208284558-13"
>
<addForeignKeyConstraint
baseColumnNames=
"app_endpoint_id"
baseTableName=
"app_endpoint_privs"
constraintName=
"FKfjigk14m5mu88h6avbor3rwtr"
deferrable=
"false"
initiallyDeferred=
"false"
referencedColumnNames=
"id"
referencedTableName=
"app_endpoint"
validate=
"true"
/>
</changeSet>
<changeSet
author=
"billdewitt (generated)"
id=
"1617208284558-14"
>
<dropForeignKeyConstraint
baseTableName=
"app_source_privs_privileges"
constraintName=
"FK6tv6kfhbgse77s74304usb5iu"
/>
</changeSet>
<changeSet
author=
"billdewitt (generated)"
id=
"1617208284558-15"
>
<dropForeignKeyConstraint
baseTableName=
"app_source_privs"
constraintName=
"FK9oyltycoohbjudwlk2ngtq0ko"
/>
</changeSet>
<changeSet
author=
"billdewitt (generated)"
id=
"1617208284558-16"
>
<dropForeignKeyConstraint
baseTableName=
"app_source_privs"
constraintName=
"FK9t1bsnvq5gq9f55w0fuau1wyn"
/>
</changeSet>
<changeSet
author=
"billdewitt (generated)"
id=
"1617208284558-17"
>
<dropForeignKeyConstraint
baseTableName=
"app_source_privs_privileges"
constraintName=
"FKmsci8vgp047g2sdunnj3ep9jh"
/>
</changeSet>
<changeSet
author=
"billdewitt (generated)"
id=
"1617208284558-18"
>
<dropTable
tableName=
"app_source_privs"
/>
</changeSet>
<changeSet
author=
"billdewitt (generated)"
id=
"1617208284558-19"
>
<dropTable
tableName=
"app_source_privs_privileges"
/>
</changeSet>
</databaseChangeLog>
src/main/resources/db/changelog/diff-changelog-1.00.024.xml
deleted
100644 → 0
View file @
382a7202
<?xml version="1.1" encoding="UTF-8" standalone="no"?>
<databaseChangeLog
xmlns=
"http://www.liquibase.org/xml/ns/dbchangelog"
xmlns:ext=
"http://www.liquibase.org/xml/ns/dbchangelog-ext"
xmlns:pro=
"http://www.liquibase.org/xml/ns/pro"
xmlns:xsi=
"http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation=
"http://www.liquibase.org/xml/ns/dbchangelog-ext http://www.liquibase.org/xml/ns/dbchangelog/dbchangelog-ext.xsd http://www.liquibase.org/xml/ns/pro http://www.liquibase.org/xml/ns/pro/liquibase-pro-4.1.xsd http://www.liquibase.org/xml/ns/dbchangelog http://www.liquibase.org/xml/ns/dbchangelog/dbchangelog-4.1.xsd"
>
<changeSet
author=
"dmilligan (generated)"
id=
"1616628365848-9"
>
<addColumn
tableName=
"person"
>
<column
name=
"primary_organization_id"
type=
"uuid"
/>
</addColumn>
</changeSet>
<changeSet
author=
"dmilligan (generated)"
id=
"1616628365848-10"
>
<addForeignKeyConstraint
baseColumnNames=
"primary_organization_id"
baseTableName=
"person"
constraintName=
"FKesouswawv46ntkh072krwg4ai"
deferrable=
"false"
initiallyDeferred=
"false"
referencedColumnNames=
"id"
referencedTableName=
"organization"
validate=
"true"
/>
</changeSet>
</databaseChangeLog>
src/main/resources/db/changelog/diff-changelog-1.00.025.xml
deleted
100644 → 0
View file @
382a7202
<?xml version="1.1" encoding="UTF-8" standalone="no"?>
<databaseChangeLog
xmlns=
"http://www.liquibase.org/xml/ns/dbchangelog"
xmlns:ext=
"http://www.liquibase.org/xml/ns/dbchangelog-ext"
xmlns:pro=
"http://www.liquibase.org/xml/ns/pro"
xmlns:xsi=
"http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation=
"http://www.liquibase.org/xml/ns/dbchangelog-ext http://www.liquibase.org/xml/ns/dbchangelog/dbchangelog-ext.xsd http://www.liquibase.org/xml/ns/pro http://www.liquibase.org/xml/ns/pro/liquibase-pro-4.1.xsd http://www.liquibase.org/xml/ns/dbchangelog http://www.liquibase.org/xml/ns/dbchangelog/dbchangelog-4.1.xsd"
>
<changeSet
author=
"christopherzell (generated)"
id=
"1617755096080-8"
>
<addUniqueConstraint
columnNames=
"path, method, app_source_id"
constraintName=
"UK4bmgp7fulke2la8tlqigs2ovx"
tableName=
"app_endpoint"
/>
</changeSet>
</databaseChangeLog>
src/main/resources/db/changelog/diff-changelog-1.00.026.xml
deleted
100644 → 0
View file @
382a7202
<?xml version="1.1" encoding="UTF-8" standalone="no"?>
<databaseChangeLog
xmlns=
"http://www.liquibase.org/xml/ns/dbchangelog"
xmlns:ext=
"http://www.liquibase.org/xml/ns/dbchangelog-ext"
xmlns:pro=
"http://www.liquibase.org/xml/ns/pro"
xmlns:xsi=
"http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation=
"http://www.liquibase.org/xml/ns/dbchangelog-ext http://www.liquibase.org/xml/ns/dbchangelog/dbchangelog-ext.xsd http://www.liquibase.org/xml/ns/pro http://www.liquibase.org/xml/ns/pro/liquibase-pro-4.1.xsd http://www.liquibase.org/xml/ns/dbchangelog http://www.liquibase.org/xml/ns/dbchangelog/dbchangelog-4.1.xsd"
>
<changeSet
author=
"billdewitt (generated)"
id=
"1617980646260-1"
>
<createTable
tableName=
"meter_value"
>
<column
name=
"id"
type=
"UUID"
>
<constraints
nullable=
"false"
primaryKey=
"true"
primaryKeyName=
"meter_valuePK"
/>
</column>
<column
name=
"metric_name"
type=
"VARCHAR(255)"
/>
<column
name=
"timestamp"
type=
"TIMESTAMP WITHOUT TIME ZONE"
/>
<column
name=
"value"
type=
"FLOAT8"
/>
<column
name=
"app_client_user_id"
type=
"UUID"
/>
<column
name=
"app_endpoint_id"
type=
"UUID"
/>
<column
name=
"app_source_id"
type=
"UUID"
/>
</createTable>
</changeSet>
<changeSet
author=
"billdewitt (generated)"
id=
"1617980646260-2"
>
<addForeignKeyConstraint
baseColumnNames=
"app_endpoint_id"
baseTableName=
"meter_value"
constraintName=
"FK308l71nf4fi4xvhi77ncmbjq3"
deferrable=
"false"
initiallyDeferred=
"false"
referencedColumnNames=
"id"
referencedTableName=
"app_endpoint"
validate=
"true"
/>
</changeSet>
<changeSet
author=
"billdewitt (generated)"
id=
"1617980646260-3"
>
<addForeignKeyConstraint
baseColumnNames=
"app_source_id"
baseTableName=
"meter_value"
constraintName=
"FKfn3dy5rv5j8m2hcvqu2ice4x9"
deferrable=
"false"
initiallyDeferred=
"false"
referencedColumnNames=
"id"
referencedTableName=
"app_source"
validate=
"true"
/>
</changeSet>
<changeSet
author=
"billdewitt (generated)"
id=
"1617980646260-4"
>
<addForeignKeyConstraint
baseColumnNames=
"app_client_user_id"
baseTableName=
"meter_value"
constraintName=
"FKhc3ltbqh86edi63jm39o0felq"
deferrable=
"false"
initiallyDeferred=
"false"
referencedColumnNames=
"id"
referencedTableName=
"app_client_user"
validate=
"true"
/>
</changeSet>
</databaseChangeLog>
src/main/resources/db/changelog/diff-changelog-1.00.027.xml
deleted
100644 → 0
View file @
382a7202
<?xml version="1.1" encoding="UTF-8" standalone="no"?>
<databaseChangeLog
xmlns=
"http://www.liquibase.org/xml/ns/dbchangelog"
xmlns:ext=
"http://www.liquibase.org/xml/ns/dbchangelog-ext"
xmlns:pro=
"http://www.liquibase.org/xml/ns/pro"
xmlns:xsi=
"http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation=
"http://www.liquibase.org/xml/ns/dbchangelog-ext http://www.liquibase.org/xml/ns/dbchangelog/dbchangelog-ext.xsd http://www.liquibase.org/xml/ns/pro http://www.liquibase.org/xml/ns/pro/liquibase-pro-4.1.xsd http://www.liquibase.org/xml/ns/dbchangelog http://www.liquibase.org/xml/ns/dbchangelog/dbchangelog-4.1.xsd"
>
<changeSet
author=
"christopherzell"
id=
"1617980646261-1"
>
<preConditions
onFail=
"MARK_RAN"
>
<sqlCheck
expectedResult=
"0"
>
SELECT COUNT(*) FROM rank WHERE name='Unknown';
</sqlCheck>
</preConditions>
<!-- entry to cover for an unknown rank -->
<insert
tableName=
"rank"
>
<column
name=
"id"
value=
"af9e2a49-15da-4df8-9108-a8d5da983998"
/>
<column
name=
"name"
value=
"Unknown"
/>
<column
name=
"abbreviation"
value=
"Unk"
/>
<column
name=
"pay_grade"
value=
"Unk"
/>
<column
name=
"branch_type"
value=
"OTHER"
/>
</insert>
</changeSet>
</databaseChangeLog>
src/main/resources/db/changelog/diff-changelog-1.00.028.xml
deleted
100644 → 0
View file @
382a7202
<?xml version="1.1" encoding="UTF-8" standalone="no"?>
<databaseChangeLog
xmlns=
"http://www.liquibase.org/xml/ns/dbchangelog"
xmlns:ext=
"http://www.liquibase.org/xml/ns/dbchangelog-ext"
xmlns:pro=
"http://www.liquibase.org/xml/ns/pro"
xmlns:xsi=
"http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation=
"http://www.liquibase.org/xml/ns/dbchangelog-ext http://www.liquibase.org/xml/ns/dbchangelog/dbchangelog-ext.xsd http://www.liquibase.org/xml/ns/pro http://www.liquibase.org/xml/ns/pro/liquibase-pro-4.1.xsd http://www.liquibase.org/xml/ns/dbchangelog http://www.liquibase.org/xml/ns/dbchangelog/dbchangelog-4.1.xsd"
>
<changeSet
author=
"billdewitt (generated)"
id=
"1619035188514-1"
>
<preConditions
onFail=
"MARK_RAN"
>
<foreignKeyConstraintExists
foreignKeyName=
"FK308l71nf4fi4xvhi77ncmbjq3"
/>
</preConditions>
<dropForeignKeyConstraint
baseTableName=
"meter_value"
constraintName=
"FK308l71nf4fi4xvhi77ncmbjq3"
/>
<addForeignKeyConstraint
baseTableName=
"meter_value"
baseColumnNames=
"app_endpoint_id"
constraintName=
"FK308l71nf4fi4xvhi77ncmbjq3"
referencedTableName=
"app_endpoint"
referencedColumnNames=
"id"
onDelete=
"CASCADE"
/>
</changeSet>
<changeSet
author=
"billdewitt (generated)"
id=
"1619035188514-2"
>
<preConditions
onFail=
"MARK_RAN"
>
<foreignKeyConstraintExists
foreignKeyName=
"FKfn3dy5rv5j8m2hcvqu2ice4x9"
/>
</preConditions>
<dropForeignKeyConstraint
baseTableName=
"meter_value"
constraintName=
"FKfn3dy5rv5j8m2hcvqu2ice4x9"
/>
<addForeignKeyConstraint
baseTableName=
"meter_value"
baseColumnNames=
"app_source_id"
constraintName=
"FKfn3dy5rv5j8m2hcvqu2ice4x9"
referencedTableName=
"app_source"
referencedColumnNames=
"id"
onDelete=
"CASCADE"
/>
</changeSet>
<changeSet
author=
"billdewitt (generated)"
id=
"1619035188514-3"
>
<preConditions
onFail=
"MARK_RAN"
>
<foreignKeyConstraintExists
foreignKeyName=
"FKhc3ltbqh86edi63jm39o0felq"
/>
</preConditions>
<dropForeignKeyConstraint
baseTableName=
"meter_value"
constraintName=
"FKhc3ltbqh86edi63jm39o0felq"
/>
<addForeignKeyConstraint
baseTableName=
"meter_value"
baseColumnNames=
"app_client_user_id"
constraintName=
"FKhc3ltbqh86edi63jm39o0felq"
referencedTableName=
"app_client_user"
referencedColumnNames=
"id"
onDelete=
"CASCADE"
/>
</changeSet>
</databaseChangeLog>
src/main/resources/db/changelog/diff-changelog-1.00.029.xml
deleted
100644 → 0
View file @
382a7202
<?xml version="1.1" encoding="UTF-8" standalone="no"?>
<databaseChangeLog
xmlns=
"http://www.liquibase.org/xml/ns/dbchangelog"
xmlns:ext=
"http://www.liquibase.org/xml/ns/dbchangelog-ext"
xmlns:pro=
"http://www.liquibase.org/xml/ns/pro"
xmlns:xsi=
"http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation=
"http://www.liquibase.org/xml/ns/dbchangelog-ext http://www.liquibase.org/xml/ns/dbchangelog/dbchangelog-ext.xsd http://www.liquibase.org/xml/ns/pro http://www.liquibase.org/xml/ns/pro/liquibase-pro-4.1.xsd http://www.liquibase.org/xml/ns/dbchangelog http://www.liquibase.org/xml/ns/dbchangelog/dbchangelog-4.1.xsd"
>
<changeSet
author=
"christopherzell (generated)"
id=
"1619531940489-8"
>
<addUniqueConstraint
columnNames=
"dodid"
constraintName=
"UKdmd3uvvpjgtxrl73rr27epyyl"
tableName=
"person"
/>
</changeSet>
</databaseChangeLog>
src/main/resources/db/changelog/diff-changelog-1.00.030.xml
deleted
100644 → 0
View file @
382a7202
<?xml version="1.1" encoding="UTF-8" standalone="no"?>
<databaseChangeLog
xmlns=
"http://www.liquibase.org/xml/ns/dbchangelog"
xmlns:ext=
"http://www.liquibase.org/xml/ns/dbchangelog-ext"
xmlns:pro=
"http://www.liquibase.org/xml/ns/pro"
xmlns:xsi=
"http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation=
"http://www.liquibase.org/xml/ns/dbchangelog-ext http://www.liquibase.org/xml/ns/dbchangelog/dbchangelog-ext.xsd http://www.liquibase.org/xml/ns/pro http://www.liquibase.org/xml/ns/pro/liquibase-pro-4.1.xsd http://www.liquibase.org/xml/ns/dbchangelog http://www.liquibase.org/xml/ns/dbchangelog/dbchangelog-4.1.xsd"
>
<changeSet
author=
"billdewitt (generated)"
id=
"1619543067434-1"
>
<preConditions
onFail=
"MARK_RAN"
>
<not>
<columnExists
tableName=
"app_endpoint"
columnName=
"deleted"
/>
</not>
</preConditions>
<addColumn
tableName=
"app_endpoint"
>
<column
name=
"deleted"
type=
"boolean"
defaultValueBoolean=
"false"
>
<constraints
nullable=
"false"
/>
</column>
</addColumn>
</changeSet>
</databaseChangeLog>
src/main/resources/db/changelog/diff-changelog-1.00.031.xml
deleted
100644 → 0
View file @
382a7202
<?xml version="1.1" encoding="UTF-8" standalone="no"?>
<databaseChangeLog
xmlns=
"http://www.liquibase.org/xml/ns/dbchangelog"
xmlns:ext=
"http://www.liquibase.org/xml/ns/dbchangelog-ext"
xmlns:pro=
"http://www.liquibase.org/xml/ns/pro"
xmlns:xsi=
"http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation=
"http://www.liquibase.org/xml/ns/dbchangelog-ext http://www.liquibase.org/xml/ns/dbchangelog/dbchangelog-ext.xsd http://www.liquibase.org/xml/ns/pro http://www.liquibase.org/xml/ns/pro/liquibase-pro-4.1.xsd http://www.liquibase.org/xml/ns/dbchangelog http://www.liquibase.org/xml/ns/dbchangelog/dbchangelog-4.1.xsd"
>
<changeSet
author=
"christopherzell (generated)"
id=
"1619565282434-8"
>
<createTable
tableName=
"app_client_user_app_client_developers"
>
<column
name=
"app_client_user_id"
type=
"UUID"
>
<constraints
nullable=
"false"
primaryKey=
"true"
/>
</column>
<column
name=
"app_client_developers_id"
type=
"UUID"
>
<constraints
nullable=
"false"
primaryKey=
"true"
/>
</column>
</createTable>
</changeSet>
<changeSet
author=
"christopherzell (generated)"
id=
"1619565282434-9"
>
<addForeignKeyConstraint
baseColumnNames=
"app_client_user_id"
baseTableName=
"app_client_user_app_client_developers"
constraintName=
"FKaa9gt3m0gwo6h1k0rtat4xa7c"
deferrable=
"false"
initiallyDeferred=
"false"
referencedColumnNames=
"id"
referencedTableName=
"app_client_user"
validate=
"true"
/>
</changeSet>
<changeSet
author=
"christopherzell (generated)"
id=
"1619565282434-10"
>
<addForeignKeyConstraint
baseColumnNames=
"app_client_developers_id"
baseTableName=
"app_client_user_app_client_developers"
constraintName=
"FKpb6e8th9ox3xbeu4oyg4iq66j"
deferrable=
"false"
initiallyDeferred=
"false"
referencedColumnNames=
"id"
referencedTableName=
"dashboard_user"
validate=
"true"
/>
</changeSet>
<changeSet
author=
"christopherzell"
id=
"619565282434-11"
>
<preConditions
onFail=
"MARK_RAN"
>
<sqlCheck
expectedResult=
"0"
>
SELECT COUNT(*) FROM privilege WHERE name='APP_CLIENT_DEVELOPER';
</sqlCheck>
</preConditions>
<insert
tableName=
"privilege"
>
<column
name=
"name"
value=
"APP_CLIENT_DEVELOPER"
/>
</insert>
</changeSet>
</databaseChangeLog>
src/main/resources/db/changelog/diff-changelog-1.00.032.xml
deleted
100644 → 0
View file @
382a7202
<?xml version="1.1" encoding="UTF-8" standalone="no"?>
<databaseChangeLog
xmlns=
"http://www.liquibase.org/xml/ns/dbchangelog"
xmlns:ext=
"http://www.liquibase.org/xml/ns/dbchangelog-ext"
xmlns:pro=
"http://www.liquibase.org/xml/ns/pro"
xmlns:xsi=
"http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation=
"http://www.liquibase.org/xml/ns/dbchangelog-ext http://www.liquibase.org/xml/ns/dbchangelog/dbchangelog-ext.xsd http://www.liquibase.org/xml/ns/pro http://www.liquibase.org/xml/ns/pro/liquibase-pro-4.1.xsd http://www.liquibase.org/xml/ns/dbchangelog http://www.liquibase.org/xml/ns/dbchangelog/dbchangelog-4.1.xsd"
>
<changeSet
author=
"billdewitt (generated)"
id=
"1620070815472-0"
>
<preConditions
onFail=
"MARK_RAN"
>
<tableExists
tableName=
"app_endpoint_privs"
/>
</preConditions>
<sql>
DELETE FROM app_endpoint_privs WHERE app_client_user_id = app_source_id;
</sql>
</changeSet>
<changeSet
author=
"billdewitt (generated)"
id=
"1620070815472-1"
>
<preConditions
onFail=
"MARK_RAN"
>
<not>
<tableExists
tableName=
"app"
/>
</not>
<tableExists
tableName=
"app_source"
/>
</preConditions>
<renameTable
newTableName=
"app"
oldTableName=
"app_source"
/>
</changeSet>
<changeSet
author=
"billdewitt (generated)"
id=
"1620070815472-2"
>
<preConditions
onFail=
"MARK_RAN"
>
<tableExists
tableName=
"app"
/>
<not>
<columnExists
tableName=
"app"
columnName=
"available_as_app_source"
/>
</not>
<not>
<columnExists
tableName=
"app"
columnName=
"available_as_app_client"
/>
</not>
<not>
<columnExists
tableName=
"app"
columnName=
"name_as_lower"
/>
</not>
</preConditions>
<addColumn
tableName=
"app"
>
<column
name=
"available_as_app_source"
type=
"boolean"
defaultValueBoolean=
"false"
>
<constraints
nullable=
"false"
/>
</column>
</addColumn>
<addColumn
tableName=
"app"
>
<column
name=
"available_as_app_client"
type=
"boolean"
defaultValueBoolean=
"false"
>
<constraints
nullable=
"false"
/>
</column>
</addColumn>
<addColumn
tableName=
"app"
>
<column
name=
"name_as_lower"
type=
"VARCHAR(255)"
>
<constraints
unique=
"true"
uniqueConstraintName=
"appClientUser_nameAsLower_ukey"
/>
</column>
</addColumn>
</changeSet>
<changeSet
author=
"billdewitt (generated)"
id=
"1620070815472-3"
>
<preConditions
onFail=
"MARK_RAN"
>
<not>
<tableExists
tableName=
"app_app_client_developers"
/>
</not>
<tableExists
tableName=
"app_client_user_app_client_developers"
/>
</preConditions>
<renameTable
newTableName=
"app_app_client_developers"
oldTableName=
"app_client_user_app_client_developers"
/>
</changeSet>
<changeSet
author=
"billdewitt (generated)"
id=
"1620070815472-4"
>
<preConditions
onFail=
"MARK_RAN"
>
<not>
<tableExists
tableName=
"app_app_source_admins"
/>
</not>
<tableExists
tableName=
"app_source_app_source_admins"
/>
</preConditions>
<renameTable
newTableName=
"app_app_source_admins"
oldTableName=
"app_source_app_source_admins"
/>
</changeSet>
<changeSet
author=
"billdewitt (generated)"
id=
"1620070815472-5"
>
<preConditions
onFail=
"MARK_RAN"
>
<not>
<tableExists
tableName=
"app_privileges"
/>
</not>
<tableExists
tableName=
"app_client_user_privileges"
/>
</preConditions>
<renameTable
newTableName=
"app_privileges"
oldTableName=
"app_client_user_privileges"
/>
</changeSet>
<changeSet
author=
"billdewitt (generated)"
id=
"1620070815472-6"
>
<preConditions
onFail=
"MARK_RAN"
>
<tableExists
tableName=
"app"
/>
<columnExists
tableName=
"app"
columnName=
"available_as_app_source"
/>
<columnExists
tableName=
"app"
columnName=
"app_source_path"
/>
<columnExists
tableName=
"app"
columnName=
"name_as_lower"
/>
<columnExists
tableName=
"app"
columnName=
"name"
/>
</preConditions>
<sql>
UPDATE app SET available_as_app_source = true, name_as_lower = LOWER(name);
</sql>
</changeSet>
<changeSet
author=
"billdewitt (generated)"
id=
"1620070815472-7"
>
<preConditions
onFail=
"MARK_RAN"
>
<tableExists
tableName=
"app"
/>
</preConditions>
<sql>
INSERT INTO app (id, name, name_as_lower) SELECT id, name, name_as_lower FROM app_client_user WHERE name_as_lower NOT IN (SELECT name_as_lower FROM app);
</sql>
</changeSet>
<changeSet
author=
"billdewitt (generated)"
id=
"1620070815472-8"
>
<preConditions
onFail=
"MARK_RAN"
>
<tableExists
tableName=
"app"
/>
<tableExists
tableName=
"app_client_user"
/>
<columnExists
tableName=
"app"
columnName=
"available_as_app_client"
/>
<columnExists
tableName=
"app"
columnName=
"name_as_lower"
/>
<columnExists
tableName=
"app_client_user"
columnName=
"name_as_lower"
/>
</preConditions>
<sql>
UPDATE app SET available_as_app_client = true WHERE name_as_lower IN (SELECT name_as_lower from app_client_user);
</sql>
</changeSet>
<changeSet
author=
"billdewitt (generated)"
id=
"1620070815472-9"
>
<preConditions
onFail=
"MARK_RAN"
>
<tableExists
tableName=
"app_app_client_developers"
/>
<foreignKeyConstraintExists
foreignKeyName=
"FKaa9gt3m0gwo6h1k0rtat4xa7c"
/>
</preConditions>
<dropForeignKeyConstraint
baseTableName=
"app_app_client_developers"
constraintName=
"FKaa9gt3m0gwo6h1k0rtat4xa7c"
/>
</changeSet>
<changeSet
author=
"billdewitt (generated)"
id=
"1620070815472-10"
>
<preConditions
onFail=
"MARK_RAN"
>
<tableExists
tableName=
"app_privileges"
/>
<foreignKeyConstraintExists
foreignKeyName=
"FKb0359mfinfxq2ia5f7y416oo9"
/>
</preConditions>
<dropForeignKeyConstraint
baseTableName=
"app_privileges"
constraintName=
"FKb0359mfinfxq2ia5f7y416oo9"
/>
</changeSet>
<changeSet
author=
"billdewitt (generated)"
id=
"1620070815472-11"
>
<preConditions
onFail=
"MARK_RAN"
>
<tableExists
tableName=
"app_endpoint_privs"
/>
<foreignKeyConstraintExists
foreignKeyName=
"FKdmj6bf0tncgkdkg893ngfnarh"
/>
</preConditions>
<dropForeignKeyConstraint
baseTableName=
"app_endpoint_privs"
constraintName=
"FKdmj6bf0tncgkdkg893ngfnarh"
/>
</changeSet>
<changeSet
author=
"billdewitt (generated)"
id=
"1620070815472-12"
>
<preConditions
onFail=
"MARK_RAN"
>
<tableExists
tableName=
"meter_value"
/>
<foreignKeyConstraintExists
foreignKeyName=
"FKhc3ltbqh86edi63jm39o0felq"
/>
</preConditions>
<dropForeignKeyConstraint
baseTableName=
"meter_value"
constraintName=
"FKhc3ltbqh86edi63jm39o0felq"
/>
</changeSet>
<changeSet
author=
"billdewitt (generated)"
id=
"1620070815472-13"
>
<preConditions
onFail=
"MARK_RAN"
>
<dbms
type=
"postgresql"
/>
<sqlCheck
expectedResult=
"1"
>
SELECT COUNT(*)
FROM pg_constraint
WHERE conname='appClientUser_nameAsLower_key'
</sqlCheck>
</preConditions>
<dropUniqueConstraint
constraintName=
"appClientUser_nameAsLower_key"
tableName=
"app_client_user"
/>
</changeSet>
<changeSet
author=
"billdewitt (generated)"
id=
"1620070815472-14"
>
<preConditions
onFail=
"MARK_RAN"
>
<tableExists
tableName=
"app"
/>
<tableExists
tableName=
"app_app_client_developers"
/>
<tableExists
tableName=
"app_client_user"
/>
</preConditions>
<sql>
UPDATE app_app_client_developers app_client_dev SET app_client_user_id = (SELECT app.id FROM app app JOIN app_client_user client_user ON app.name_as_lower = client_user.name_as_lower WHERE client_user.id = app_client_dev.app_client_user_id);
</sql>
</changeSet>
<changeSet
author=
"billdewitt (generated)"
id=
"1620070815472-15"
>
<preConditions
onFail=
"MARK_RAN"
>
<tableExists
tableName=
"app"
/>
<tableExists
tableName=
"app_privileges"
/>
<tableExists
tableName=
"app_client_user"
/>
</preConditions>
<sql>
UPDATE app_privileges app_priv SET app_client_user_id = (SELECT app.id FROM app app JOIN app_client_user client_user ON app.name_as_lower = client_user.name_as_lower WHERE client_user.id = app_priv.app_client_user_id);
</sql>
</changeSet>
<changeSet
author=
"billdewitt (generated)"
id=
"1620070815472-16"
>
<preConditions
onFail=
"MARK_RAN"
>
<tableExists
tableName=
"app"
/>
<tableExists
tableName=
"app_endpoint_privs"
/>
<tableExists
tableName=
"app_client_user"
/>
</preConditions>
<sql>
UPDATE app_endpoint_privs app_priv SET app_client_user_id = (SELECT app.id FROM app app JOIN app_client_user client_user ON app.name_as_lower = client_user.name_as_lower WHERE client_user.id = app_priv.app_client_user_id);
</sql>
</changeSet>
<changeSet
author=
"billdewitt (generated)"
id=
"1620070815472-17"
>
<preConditions
onFail=
"MARK_RAN"
>
<tableExists
tableName=
"app"
/>
<tableExists
tableName=
"meter_value"
/>
<tableExists
tableName=
"app_client_user"
/>
</preConditions>
<sql>
UPDATE meter_value meter_val SET app_client_user_id = (SELECT app.id FROM app app JOIN app_client_user client_user ON app.name_as_lower = client_user.name_as_lower WHERE client_user.id = meter_val.app_client_user_id);
</sql>
</changeSet>
<changeSet
author=
"billdewitt (generated)"
id=
"1620070815472-18"
>
<preConditions
onFail=
"MARK_RAN"
>
<tableExists
tableName=
"app_app_client_developers"
/>
<columnExists
tableName=
"app_app_client_developers"
columnName=
"app_client_user_id"
/>
<not>
<foreignKeyConstraintExists
foreignKeyName=
"FKqnq1e50kt4jj8ev1bisgn0hxk"
/>
</not>
</preConditions>
<addForeignKeyConstraint
baseColumnNames=
"app_client_user_id"
baseTableName=
"app_app_client_developers"
constraintName=
"FKqnq1e50kt4jj8ev1bisgn0hxk"
deferrable=
"false"
initiallyDeferred=
"false"
referencedColumnNames=
"id"
referencedTableName=
"app"
validate=
"true"
/>
</changeSet>
<changeSet
author=
"billdewitt (generated)"
id=
"1620070815472-19"
>
<preConditions
onFail=
"MARK_RAN"
>
<tableExists
tableName=
"meter_value"
/>
<columnExists
tableName=
"meter_value"
columnName=
"app_client_user_id"
/>
<not>
<foreignKeyConstraintExists
foreignKeyName=
"FKin5kkqryi4eukyqfgrs0d7xyl"
/>
</not>
</preConditions>
<addForeignKeyConstraint
baseColumnNames=
"app_client_user_id"
baseTableName=
"meter_value"
constraintName=
"FKin5kkqryi4eukyqfgrs0d7xyl"
deferrable=
"false"
initiallyDeferred=
"false"
referencedColumnNames=
"id"
referencedTableName=
"app"
validate=
"true"
/>
</changeSet>
<changeSet
author=
"billdewitt (generated)"
id=
"1620070815472-20"
>
<preConditions
onFail=
"MARK_RAN"
>
<tableExists
tableName=
"app_privileges"
/>
<columnExists
tableName=
"app_privileges"
columnName=
"app_client_user_id"
/>
<not>
<foreignKeyConstraintExists
foreignKeyName=
"FKkrauiqo64rr6kh1edi19q59a3"
/>
</not>
</preConditions>
<addForeignKeyConstraint
baseColumnNames=
"app_client_user_id"
baseTableName=
"app_privileges"
constraintName=
"FKkrauiqo64rr6kh1edi19q59a3"
deferrable=
"false"
initiallyDeferred=
"false"
referencedColumnNames=
"id"
referencedTableName=
"app"
validate=
"true"
/>
</changeSet>
<changeSet
author=
"billdewitt (generated)"
id=
"1620070815472-21"
>
<preConditions
onFail=
"MARK_RAN"
>
<tableExists
tableName=
"app_endpoint_privs"
/>
<columnExists
tableName=
"app_endpoint_privs"
columnName=
"app_client_user_id"
/>
<not>
<foreignKeyConstraintExists
foreignKeyName=
"FKo6abtx1xmu9c8kc6ya1opq39b"
/>
</not>
</preConditions>
<addForeignKeyConstraint
baseColumnNames=
"app_client_user_id"
baseTableName=
"app_endpoint_privs"
constraintName=
"FKo6abtx1xmu9c8kc6ya1opq39b"
deferrable=
"false"
initiallyDeferred=
"false"
referencedColumnNames=
"id"
referencedTableName=
"app"
validate=
"true"
/>
</changeSet>
<changeSet
author=
"billdewitt (generated)"
id=
"1620070815472-22"
>
<preConditions
onFail=
"MARK_RAN"
>
<tableExists
tableName=
"app_client_user"
/>
</preConditions>
<dropTable
tableName=
"app_client_user"
/>
</changeSet>
</databaseChangeLog>
src/main/resources/db/changelog/diff-changelog-1.00.033.xml
deleted
100644 → 0
View file @
382a7202
<?xml version="1.1" encoding="UTF-8" standalone="no"?>
<databaseChangeLog
xmlns=
"http://www.liquibase.org/xml/ns/dbchangelog"
xmlns:ext=
"http://www.liquibase.org/xml/ns/dbchangelog-ext"
xmlns:pro=
"http://www.liquibase.org/xml/ns/pro"
xmlns:xsi=
"http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation=
"http://www.liquibase.org/xml/ns/dbchangelog-ext http://www.liquibase.org/xml/ns/dbchangelog/dbchangelog-ext.xsd http://www.liquibase.org/xml/ns/pro http://www.liquibase.org/xml/ns/pro/liquibase-pro-4.1.xsd http://www.liquibase.org/xml/ns/dbchangelog http://www.liquibase.org/xml/ns/dbchangelog/dbchangelog-4.1.xsd"
>
<changeSet
author=
"christopherzell (generated)"
id=
"1620838162461-11"
>
<createTable
tableName=
"http_logs"
>
<column
name=
"id"
type=
"UUID"
>
<constraints
nullable=
"false"
primaryKey=
"true"
primaryKeyName=
"http_logsPK"
/>
</column>
<column
name=
"query_string"
type=
"text"
/>
<column
name=
"remote_ip"
type=
"VARCHAR(255)"
/>
<column
name=
"request_host"
type=
"VARCHAR(255)"
/>
<column
name=
"request_method"
type=
"VARCHAR(255)"
/>
<column
name=
"request_timestamp"
type=
"TIMESTAMP WITHOUT TIME ZONE"
/>
<column
name=
"requested_url"
type=
"text"
/>
<column
name=
"status_code"
type=
"INTEGER"
defaultValue=
"0"
>
<constraints
nullable=
"false"
/>
</column>
<column
name=
"time_taken_ms"
type=
"BIGINT"
/>
<column
name=
"user_agent"
type=
"VARCHAR(255)"
/>
<column
name=
"user_name"
type=
"VARCHAR(255)"
/>
<column
name=
"request_body"
type=
"text"
/>
<column
name=
"response_body"
type=
"text"
/>
</createTable>
</changeSet>
</databaseChangeLog>
src/main/resources/db/changelog/diff-changelog-1.00.034.xml
deleted
100644 → 0
View file @
382a7202
<?xml version="1.1" encoding="UTF-8" standalone="no"?>
<databaseChangeLog
xmlns=
"http://www.liquibase.org/xml/ns/dbchangelog"
xmlns:ext=
"http://www.liquibase.org/xml/ns/dbchangelog-ext"
xmlns:pro=
"http://www.liquibase.org/xml/ns/pro"
xmlns:xsi=
"http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation=
"http://www.liquibase.org/xml/ns/dbchangelog-ext http://www.liquibase.org/xml/ns/dbchangelog/dbchangelog-ext.xsd http://www.liquibase.org/xml/ns/pro http://www.liquibase.org/xml/ns/pro/liquibase-pro-4.1.xsd http://www.liquibase.org/xml/ns/dbchangelog http://www.liquibase.org/xml/ns/dbchangelog/dbchangelog-4.1.xsd"
>
<changeSet
author=
"christopherzell (manual)"
id=
"1622035239-1"
>
<addColumn
tableName=
"scratch_storage_app_registry"
>
<column
name=
"acl_mode"
type=
"boolean"
defaultValueBoolean=
"false"
>
<constraints
nullable=
"false"
/>
</column>
</addColumn>
</changeSet>
</databaseChangeLog>
src/main/resources/db/changelog/diff-changelog-1.00.035.xml
deleted
100644 → 0
View file @
382a7202
<?xml version="1.1" encoding="UTF-8" standalone="no"?>
<databaseChangeLog
xmlns=
"http://www.liquibase.org/xml/ns/dbchangelog"
xmlns:ext=
"http://www.liquibase.org/xml/ns/dbchangelog-ext"
xmlns:pro=
"http://www.liquibase.org/xml/ns/pro"
xmlns:xsi=
"http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation=
"http://www.liquibase.org/xml/ns/dbchangelog-ext http://www.liquibase.org/xml/ns/dbchangelog/dbchangelog-ext.xsd http://www.liquibase.org/xml/ns/pro http://www.liquibase.org/xml/ns/pro/liquibase-pro-4.1.xsd http://www.liquibase.org/xml/ns/dbchangelog http://www.liquibase.org/xml/ns/dbchangelog/dbchangelog-4.1.xsd"
>
<changeSet
author=
"christopherzell (generated)"
id=
"1622732838115-12"
>
<addColumn
tableName=
"subscriber"
>
<column
name=
"app_client_user_id"
type=
"uuid"
/>
</addColumn>
</changeSet>
<changeSet
author=
"christopherzell (generated)"
id=
"1622732838115-13"
>
<addColumn
tableName=
"app"
>
<column
name=
"cluster_url"
type=
"varchar(255)"
/>
</addColumn>
</changeSet>
<changeSet
author=
"christopherzell (generated)"
id=
"1622732838115-14"
>
<addForeignKeyConstraint
baseColumnNames=
"app_client_user_id"
baseTableName=
"subscriber"
constraintName=
"FKcqt1ujg9pj6clywmr515el1n5"
deferrable=
"false"
initiallyDeferred=
"false"
referencedColumnNames=
"id"
referencedTableName=
"app"
validate=
"true"
/>
</changeSet>
</databaseChangeLog>
Prev
1
2
3
Next
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment