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
You need to sign in or sign up before continuing.
Commit
e47216ba
authored
Aug 24, 2021
by
Christopher Zell
Browse files
squashed migration files
parent
382a7202
Changes
54
Show whitespace changes
Inline
Side-by-side
Showing
20 changed files
with
2 additions
and
812 deletions
+2
-812
prod.sh
prod.sh
+1
-1
src/main/resources/application-development.properties
src/main/resources/application-development.properties
+0
-12
src/main/resources/application-production.properties
src/main/resources/application-production.properties
+1
-1
src/main/resources/application-test.properties
src/main/resources/application-test.properties
+0
-10
src/main/resources/application.properties
src/main/resources/application.properties
+0
-6
src/main/resources/db/changelog/diff-changelog-1.00.001.xml
src/main/resources/db/changelog/diff-changelog-1.00.001.xml
+0
-124
src/main/resources/db/changelog/diff-changelog-1.00.002.xml
src/main/resources/db/changelog/diff-changelog-1.00.002.xml
+0
-49
src/main/resources/db/changelog/diff-changelog-1.00.003.xml
src/main/resources/db/changelog/diff-changelog-1.00.003.xml
+0
-11
src/main/resources/db/changelog/diff-changelog-1.00.004.xml
src/main/resources/db/changelog/diff-changelog-1.00.004.xml
+0
-7
src/main/resources/db/changelog/diff-changelog-1.00.005.xml
src/main/resources/db/changelog/diff-changelog-1.00.005.xml
+0
-15
src/main/resources/db/changelog/diff-changelog-1.00.006.xml
src/main/resources/db/changelog/diff-changelog-1.00.006.xml
+0
-23
src/main/resources/db/changelog/diff-changelog-1.00.007.xml
src/main/resources/db/changelog/diff-changelog-1.00.007.xml
+0
-52
src/main/resources/db/changelog/diff-changelog-1.00.008.xml
src/main/resources/db/changelog/diff-changelog-1.00.008.xml
+0
-42
src/main/resources/db/changelog/diff-changelog-1.00.009.xml
src/main/resources/db/changelog/diff-changelog-1.00.009.xml
+0
-90
src/main/resources/db/changelog/diff-changelog-1.00.010.xml
src/main/resources/db/changelog/diff-changelog-1.00.010.xml
+0
-142
src/main/resources/db/changelog/diff-changelog-1.00.011.xml
src/main/resources/db/changelog/diff-changelog-1.00.011.xml
+0
-35
src/main/resources/db/changelog/diff-changelog-1.00.012.xml
src/main/resources/db/changelog/diff-changelog-1.00.012.xml
+0
-45
src/main/resources/db/changelog/diff-changelog-1.00.013.xml
src/main/resources/db/changelog/diff-changelog-1.00.013.xml
+0
-100
src/main/resources/db/changelog/diff-changelog-1.00.014.xml
src/main/resources/db/changelog/diff-changelog-1.00.014.xml
+0
-13
src/main/resources/db/changelog/diff-changelog-1.00.015.xml
src/main/resources/db/changelog/diff-changelog-1.00.015.xml
+0
-34
No files found.
prod.sh
View file @
e47216ba
...
...
@@ -9,7 +9,7 @@ export SPRING_PROFILES_ACTIVE=production;
export
SECURITY_ENABLED
=
true
;
export
PGHOST
=
'localhost'
;
export
PGPORT
=
'5432'
;
export
PG_DATABASE
=
common
;
export
PG_DATABASE
=
common
_slim
;
export
APP_DB_ADMIN_PASSWORD
=
''
;
export
PG_USER
=
${
USER
}
;
export
APP_DB_RW_PASSWORD
=
''
;
...
...
src/main/resources/application-development.properties
View file @
e47216ba
...
...
@@ -12,24 +12,12 @@ debug=true
logging.level.liquibase
=
INFO
# Puckboard URL for local testing
puckboard-url
=
http://localhost:8099/puckboard-api/v1
# Used to toggle Spring Security configuration on and off
security.enabled
=
false
# allowed origins
origins
=
http://localhost:3000,http://localhost:8080
#app source definition file
appsource.definition-file
=
#disable saving metrics to database
metrics.save.enabled
=
false
#disable metric filter
metrics.gateway.count
=
false
#enable viewing metrics - allows list of metrics
management.endpoint.metrics.enabled
=
true
management.endpoints.web.exposure.include
=
health,logfile,metrics,httptrace
...
...
src/main/resources/application-production.properties
View file @
e47216ba
spring.liquibase.user
=
${PG_USER}
spring.liquibase.password
=
${APP_DB_ADMIN_PASSWORD}
spring.liquibase.contexts
=
production
spring.datasource.url
=
jdbc:postgresql://${PGHOST}:${PGPORT}/${PG_DATABASE}?sslmode=require&ssl=true
\ No newline at end of file
spring.datasource.url
=
jdbc:postgresql://${PGHOST}:${PGPORT}/${PG_DATABASE}
\ No newline at end of file
src/main/resources/application-test.properties
View file @
e47216ba
appsource.definition-file
=
/appsourceapis/appSourceConfig.test.json
#disable saving metrics to database
metrics.save.enabled
=
false
#disable metric filter
metrics.gateway.count
=
false
#disable caching
caching.enabled
=
false
src/main/resources/application.properties
View file @
e47216ba
...
...
@@ -77,9 +77,3 @@ springdoc.api-docs.groups.enabled=true
# Name token used to identify common api app
common-api-app-name
=
istio-system
# Entity Field Authorization
efa-enabled
=
true
# Health ping rate for app sources (milliseconds)
app-source-ping-rate-millis
=
60000
\ No newline at end of file
src/main/resources/db/changelog/diff-changelog-1.00.001.xml
deleted
100644 → 0
View file @
382a7202
<?xml version="1.1" encoding="UTF-8" standalone="no"?>
<databaseChangeLog
logicalFilePath=
"db/./changelog/diff-changelog-1.0.1.xml"
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=
"1608688106743-1"
>
<createTable
tableName=
"airman"
>
<column
name=
"address"
type=
"VARCHAR(255)"
/>
<column
name=
"admin"
type=
"BOOLEAN"
>
<constraints
nullable=
"false"
/>
</column>
<column
name=
"afsc"
type=
"VARCHAR(255)"
/>
<column
name=
"approved"
type=
"BOOLEAN"
>
<constraints
nullable=
"false"
/>
</column>
<column
name=
"deros"
type=
"VARCHAR(255)"
/>
<column
name=
"dodid"
type=
"VARCHAR(255)"
/>
<column
name=
"dor"
type=
"TIMESTAMP"
/>
<column
name=
"duty_phone"
type=
"VARCHAR(255)"
/>
<column
name=
"duty_title"
type=
"VARCHAR(255)"
/>
<column
name=
"ets_date"
type=
"TIMESTAMP"
/>
<column
name=
"flt_chief"
type=
"VARCHAR(255)"
/>
<column
name=
"go81"
type=
"VARCHAR(255)"
/>
<column
name=
"gp"
type=
"VARCHAR(255)"
/>
<column
name=
"imds"
type=
"VARCHAR(255)"
/>
<column
name=
"man_number"
type=
"VARCHAR(255)"
/>
<column
name=
"phone"
type=
"VARCHAR(255)"
/>
<column
name=
"pt_date"
type=
"TIMESTAMP"
/>
<column
name=
"squadron"
type=
"VARCHAR(255)"
/>
<column
name=
"unit"
type=
"VARCHAR(255)"
/>
<column
name=
"wc"
type=
"VARCHAR(255)"
/>
<column
name=
"wing"
type=
"VARCHAR(255)"
/>
<column
name=
"id"
type=
"UUID"
>
<constraints
nullable=
"false"
primaryKey=
"true"
primaryKeyName=
"airmanPK"
/>
</column>
</createTable>
</changeSet>
<changeSet
author=
"christopherzell (generated)"
id=
"1608688106743-2"
>
<createTable
tableName=
"organization"
>
<column
name=
"id"
type=
"UUID"
>
<constraints
nullable=
"false"
primaryKey=
"true"
primaryKeyName=
"organizationPK"
/>
</column>
<column
name=
"name"
type=
"VARCHAR(255)"
/>
<column
name=
"leader_id"
type=
"UUID"
/>
<column
name=
"parent_organization_id"
type=
"UUID"
/>
</createTable>
</changeSet>
<changeSet
author=
"christopherzell (generated)"
id=
"1608688106743-3"
>
<createTable
tableName=
"organization_members"
>
<column
name=
"organization_id"
type=
"UUID"
>
<constraints
nullable=
"false"
primaryKey=
"true"
/>
</column>
<column
name=
"members_id"
type=
"UUID"
>
<constraints
nullable=
"false"
primaryKey=
"true"
/>
</column>
</createTable>
</changeSet>
<changeSet
author=
"christopherzell (generated)"
id=
"1608688106743-4"
>
<createTable
tableName=
"organization_subordinate_organizations"
>
<column
name=
"organization_id"
type=
"UUID"
>
<constraints
nullable=
"false"
primaryKey=
"true"
/>
</column>
<column
name=
"subordinate_organizations_id"
type=
"UUID"
>
<constraints
nullable=
"false"
primaryKey=
"true"
/>
</column>
</createTable>
</changeSet>
<changeSet
author=
"christopherzell (generated)"
id=
"1608688106743-5"
>
<createTable
tableName=
"person"
>
<column
name=
"id"
type=
"UUID"
>
<constraints
nullable=
"false"
primaryKey=
"true"
primaryKeyName=
"personPK"
/>
</column>
<column
name=
"email"
type=
"VARCHAR(255)"
/>
<column
name=
"first_name"
type=
"VARCHAR(255)"
/>
<column
name=
"last_name"
type=
"VARCHAR(255)"
/>
<column
name=
"middle_name"
type=
"VARCHAR(255)"
/>
<column
name=
"title"
type=
"VARCHAR(255)"
/>
</createTable>
</changeSet>
<changeSet
author=
"christopherzell (generated)"
id=
"1608688106743-6"
>
<createTable
tableName=
"squadron"
>
<column
name=
"base_name"
type=
"VARCHAR(255)"
/>
<column
name=
"major_command"
type=
"VARCHAR(255)"
/>
<column
name=
"id"
type=
"UUID"
>
<constraints
nullable=
"false"
primaryKey=
"true"
primaryKeyName=
"squadronPK"
/>
</column>
<column
name=
"chief_id"
type=
"UUID"
/>
<column
name=
"operations_director_id"
type=
"UUID"
/>
</createTable>
</changeSet>
<changeSet
author=
"christopherzell (generated)"
id=
"1608688106743-7"
>
<addUniqueConstraint
columnNames=
"members_id"
constraintName=
"UK_3qoxo6mk3ake4mept5t1krtm3"
tableName=
"organization_members"
/>
</changeSet>
<changeSet
author=
"christopherzell (generated)"
id=
"1608688106743-8"
>
<addUniqueConstraint
columnNames=
"subordinate_organizations_id"
constraintName=
"UK_4e93l3qvpbprrhgllufmx67v1"
tableName=
"organization_subordinate_organizations"
/>
</changeSet>
<changeSet
author=
"christopherzell (generated)"
id=
"1608688106743-9"
>
<addForeignKeyConstraint
baseColumnNames=
"parent_organization_id"
baseTableName=
"organization"
constraintName=
"FK58g5hrlhy91008gw2qpjj92td"
deferrable=
"false"
initiallyDeferred=
"false"
referencedColumnNames=
"id"
referencedTableName=
"organization"
validate=
"true"
/>
</changeSet>
<changeSet
author=
"christopherzell (generated)"
id=
"1608688106743-10"
>
<addForeignKeyConstraint
baseColumnNames=
"organization_id"
baseTableName=
"organization_subordinate_organizations"
constraintName=
"FK8o5wkofu6krxlm4gvfntb7979"
deferrable=
"false"
initiallyDeferred=
"false"
referencedColumnNames=
"id"
referencedTableName=
"organization"
validate=
"true"
/>
</changeSet>
<changeSet
author=
"christopherzell (generated)"
id=
"1608688106743-11"
>
<addForeignKeyConstraint
baseColumnNames=
"operations_director_id"
baseTableName=
"squadron"
constraintName=
"FK9ksdeb2fvjenuctyuioqmgk1b"
deferrable=
"false"
initiallyDeferred=
"false"
referencedColumnNames=
"id"
referencedTableName=
"person"
validate=
"true"
/>
</changeSet>
<changeSet
author=
"christopherzell (generated)"
id=
"1608688106743-12"
>
<addForeignKeyConstraint
baseColumnNames=
"id"
baseTableName=
"squadron"
constraintName=
"FKbyq4ibwr60q6w7o92jvuyl6vu"
deferrable=
"false"
initiallyDeferred=
"false"
referencedColumnNames=
"id"
referencedTableName=
"organization"
validate=
"true"
/>
</changeSet>
<changeSet
author=
"christopherzell (generated)"
id=
"1608688106743-13"
>
<addForeignKeyConstraint
baseColumnNames=
"chief_id"
baseTableName=
"squadron"
constraintName=
"FKeflfam68aiuy7c2cif2s6nw6"
deferrable=
"false"
initiallyDeferred=
"false"
referencedColumnNames=
"id"
referencedTableName=
"person"
validate=
"true"
/>
</changeSet>
<changeSet
author=
"christopherzell (generated)"
id=
"1608688106743-14"
>
<addForeignKeyConstraint
baseColumnNames=
"organization_id"
baseTableName=
"organization_members"
constraintName=
"FKl40alv514imwvjr8fn96m0ysc"
deferrable=
"false"
initiallyDeferred=
"false"
referencedColumnNames=
"id"
referencedTableName=
"organization"
validate=
"true"
/>
</changeSet>
<changeSet
author=
"christopherzell (generated)"
id=
"1608688106743-15"
>
<addForeignKeyConstraint
baseColumnNames=
"subordinate_organizations_id"
baseTableName=
"organization_subordinate_organizations"
constraintName=
"FKlwgehjfafk600a4mwcv4jwalh"
deferrable=
"false"
initiallyDeferred=
"false"
referencedColumnNames=
"id"
referencedTableName=
"organization"
validate=
"true"
/>
</changeSet>
<changeSet
author=
"christopherzell (generated)"
id=
"1608688106743-16"
>
<addForeignKeyConstraint
baseColumnNames=
"id"
baseTableName=
"airman"
constraintName=
"FKnhnnva29xg5gk1p4lalng3y8j"
deferrable=
"false"
initiallyDeferred=
"false"
referencedColumnNames=
"id"
referencedTableName=
"person"
validate=
"true"
/>
</changeSet>
<changeSet
author=
"christopherzell (generated)"
id=
"1608688106743-17"
>
<addForeignKeyConstraint
baseColumnNames=
"leader_id"
baseTableName=
"organization"
constraintName=
"FKqlyg8damucorlbgbvm68dbb03"
deferrable=
"false"
initiallyDeferred=
"false"
referencedColumnNames=
"id"
referencedTableName=
"person"
validate=
"true"
/>
</changeSet>
<changeSet
author=
"christopherzell (generated)"
id=
"1608688106743-18"
>
<addForeignKeyConstraint
baseColumnNames=
"members_id"
baseTableName=
"organization_members"
constraintName=
"FKsryhxbelv0adpllqsic7yd2t0"
deferrable=
"false"
initiallyDeferred=
"false"
referencedColumnNames=
"id"
referencedTableName=
"person"
validate=
"true"
/>
</changeSet>
</databaseChangeLog>
src/main/resources/db/changelog/diff-changelog-1.00.002.xml
deleted
100644 → 0
View file @
382a7202
<?xml version="1.1" encoding="UTF-8" standalone="no"?>
<databaseChangeLog
logicalFilePath=
"db/./changelog/diff-changelog-1.0.2.xml"
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=
"Dylan (generated)"
id=
"1608848891023-1"
>
<addColumn
tableName=
"organization"
>
<column
name=
"name_as_lower"
type=
"varchar(255)"
/>
</addColumn>
</changeSet>
<changeSet
author=
"Dylan (generated)"
id=
"1608848891023-2"
>
<addUniqueConstraint
columnNames=
"name_as_lower"
constraintName=
"UKgr7bo3kbeekg6pujbmtw37rnd"
tableName=
"organization"
/>
</changeSet>
<changeSet
context=
"test"
author=
"Brandon Swenson"
id=
"seed-1"
>
<loadData
file=
"../seed/1.0.2/person.csv"
tableName=
"person"
relativeToChangelogFile=
"true"
>
</loadData>
<loadData
file=
"../seed/1.0.2/airman.csv"
tableName=
"airman"
relativeToChangelogFile=
"true"
>
</loadData>
<loadData
file=
"../seed/1.0.2/organization.csv"
tableName=
"organization"
relativeToChangelogFile=
"true"
>
</loadData>
<loadData
file=
"../seed/1.0.2/organization_members.csv"
tableName=
"organization_members"
relativeToChangelogFile=
"true"
>
</loadData>
<loadData
file=
"../seed/1.0.2/organization_subordinate_organizations.csv"
tableName=
"organization_subordinate_organizations"
relativeToChangelogFile=
"true"
>
</loadData>
<loadData
file=
"../seed/1.0.2/squadron.csv"
tableName=
"squadron"
relativeToChangelogFile=
"true"
>
</loadData>
</changeSet>
</databaseChangeLog>
src/main/resources/db/changelog/diff-changelog-1.00.003.xml
deleted
100644 → 0
View file @
382a7202
<?xml version="1.1" encoding="UTF-8" standalone="no"?>
<databaseChangeLog
logicalFilePath=
"db/./changelog/diff-changelog-1.0.3.xml"
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=
"Dylan (generated)"
id=
"1609238507315-1"
>
<addColumn
tableName=
"person"
>
<column
name=
"email_as_lower"
type=
"varchar(255)"
/>
</addColumn>
</changeSet>
<changeSet
author=
"Dylan (generated)"
id=
"1609238507315-2"
>
<addUniqueConstraint
columnNames=
"email_as_lower"
constraintName=
"UKov8vo1f3r327ttcseg6mrboch"
tableName=
"person"
/>
</changeSet>
</databaseChangeLog>
src/main/resources/db/changelog/diff-changelog-1.00.004.xml
deleted
100644 → 0
View file @
382a7202
<?xml version="1.1" encoding="UTF-8" standalone="no"?>
<databaseChangeLog
logicalFilePath=
"db/./changelog/diff-changelog-1.0.4.xml"
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=
"1609252760793-1"
>
<dropUniqueConstraint
constraintName=
"UK_3qoxo6mk3ake4mept5t1krtm3"
tableName=
"organization_members"
/>
<dropForeignKeyConstraint
baseTableName=
"organization_members"
constraintName=
"FKsryhxbelv0adpllqsic7yd2t0"
/>
</changeSet>
</databaseChangeLog>
src/main/resources/db/changelog/diff-changelog-1.00.005.xml
deleted
100644 → 0
View file @
382a7202
<?xml version="1.1" encoding="UTF-8" standalone="no"?>
<databaseChangeLog
logicalFilePath=
"db/./changelog/diff-changelog-1.0.5.xml"
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=
"1611165736059-1"
>
<createTable
tableName=
"subscriber"
>
<column
name=
"id"
type=
"UUID"
>
<constraints
nullable=
"false"
primaryKey=
"true"
primaryKeyName=
"subscriberPK"
/>
</column>
<column
name=
"subscribed_event"
type=
"VARCHAR(255)"
/>
<column
name=
"subscriber_address"
type=
"VARCHAR(255)"
/>
</createTable>
</changeSet>
<changeSet
author=
"christopherzell (generated)"
id=
"1611165736059-2"
>
<addForeignKeyConstraint
baseColumnNames=
"members_id"
baseTableName=
"organization_members"
constraintName=
"FKsryhxbelv0adpllqsic7yd2t0"
deferrable=
"false"
initiallyDeferred=
"false"
referencedColumnNames=
"id"
referencedTableName=
"person"
validate=
"true"
/>
</changeSet>
</databaseChangeLog>
src/main/resources/db/changelog/diff-changelog-1.00.006.xml
deleted
100644 → 0
View file @
382a7202
<?xml version="1.1" encoding="UTF-8" standalone="no"?>
<databaseChangeLog
logicalFilePath=
"db/./changelog/diff-changelog-1.0.6.xml"
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=
"1.0.6-1"
>
<addColumn
tableName=
"organization"
>
<column
name=
"org_type"
type=
"varchar(255)"
/>
</addColumn>
<addDefaultValue
columnName=
"org_type"
defaultValue=
"ORGANIZATION"
tableName=
"organization"
/>
<addColumn
tableName=
"organization"
>
<column
name=
"branch_type"
type=
"varchar(255)"
/>
</addColumn>
<addDefaultValue
columnName=
"branch_type"
defaultValue=
"OTHER"
tableName=
"organization"
/>
<dropTable
tableName=
"squadron"
cascadeConstraints=
"true"
/>
</changeSet>
</databaseChangeLog>
src/main/resources/db/changelog/diff-changelog-1.00.007.xml
deleted
100644 → 0
View file @
382a7202
<?xml version="1.1" encoding="UTF-8" standalone="no"?>
<databaseChangeLog
logicalFilePath=
"db/./changelog/diff-changelog-1.0.7.xml"
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
id=
"1.0.7-1"
author=
"ckumabe"
>
<preConditions
onFail=
"MARK_RAN"
>
<not>
<columnExists
tableName=
"airman"
columnName=
"rank"
/>
</not>
</preConditions>
<addColumn
tableName=
"airman"
>
<column
name=
"rank"
type=
"varchar(10)"
/>
</addColumn>
</changeSet>
<changeSet
id=
"1.0.7-2"
author=
"ckumabe"
>
<sql
splitStatements=
"true"
stripComments=
"true"
>
UPDATE airman
SET rank = (
SELECT converted FROM (
SELECT title,
CASE
WHEN UPPER(title) = 'AB' then 'AB'
WHEN UPPER(title) = 'AMN' then 'AMN'
WHEN UPPER(title) = 'A1C' then 'A1C'
WHEN UPPER(title) = 'SRA' then 'SRA'
WHEN UPPER(title) = 'SSGT' then 'SSGT'
WHEN UPPER(title) = 'TSGT' then 'TSGT'
WHEN UPPER(title) = 'MSGT' then 'MSGT'
WHEN UPPER(title) = 'SMGT' then 'SMGT'
WHEN UPPER(title) = 'CMSGT' then 'CMSGT'
WHEN UPPER(title) = 'CCMSGT' then 'CCMSGT'
WHEN UPPER(title) = 'CMSAF' then 'CMSAF'
WHEN UPPER(title) = '2LT' then '2LT'
WHEN UPPER(title) = '1LT' then '1LT'
WHEN UPPER(title) = 'CAPT' then 'CAPT'
WHEN UPPER(title) = 'MAJ' then 'MAJ'
WHEN UPPER(title) = 'LTCOL' then 'LTCOL'
WHEN UPPER(title) = 'COL' then 'COL'
WHEN UPPER(title) = 'BG' then 'BG'
WHEN UPPER(title) = 'MG' then 'MG'
WHEN UPPER(title) = 'LTG' then 'LTG'
WHEN UPPER(title) = 'GEN' then 'GEN'
WHEN UPPER(title) = 'CIV' then 'CIV'
WHEN UPPER(title) = 'CTR' then 'CTR'
WHEN UPPER(title) = 'SES' then 'SES'
ELSE 'UNKNOWN'
END AS converted
FROM person WHERE 'person.id' = 'airman.id'
) AS title);
</sql>
</changeSet>
</databaseChangeLog>
\ No newline at end of file
src/main/resources/db/changelog/diff-changelog-1.00.008.xml
deleted
100644 → 0
View file @
382a7202
<?xml version="1.1" encoding="UTF-8" standalone="no"?>
<databaseChangeLog
logicalFilePath=
"db/./changelog/diff-changelog-1.0.8.xml"
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=
"Dylan (generated)"
id=
"1612064068332-1"
>
<createSequence
incrementBy=
"1"
sequenceName=
"hibernate_sequence"
startValue=
"1"
/>
</changeSet>
<changeSet
author=
"Dylan (generated)"
id=
"1612064068332-2"
>
<createTable
tableName=
"app_client_user"
>
<column
name=
"id"
type=
"UUID"
>
<constraints
nullable=
"false"
primaryKey=
"true"
primaryKeyName=
"app_client_userPK"
/>
</column>
<column
name=
"name"
type=
"VARCHAR(255)"
/>
<column
name=
"name_as_lower"
type=
"VARCHAR(255)"
/>
</createTable>
</changeSet>
<changeSet
author=
"Dylan (generated)"
id=
"1612064068332-3"
>
<createTable
tableName=
"app_client_user_privileges"
>
<column
name=
"app_client_user_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=
"Dylan (generated)"
id=
"1612064068332-4"
>
<createTable
tableName=
"privilege"
>
<column
autoIncrement=
"true"
name=
"id"
type=
"BIGINT"
>
<constraints
nullable=
"false"
primaryKey=
"true"
primaryKeyName=
"privilegePK"
/>
</column>
<column
name=
"name"
type=
"VARCHAR(255)"
/>
</createTable>
</changeSet>
<changeSet
author=
"Dylan (generated)"
id=
"1612064068332-5"
>
<addUniqueConstraint
columnNames=
"name_as_lower"
constraintName=
"appClientUser_nameAsLower_key"
tableName=
"app_client_user"
/>
</changeSet>
<changeSet
author=
"Dylan (generated)"
id=
"1612064068332-6"
>
<addForeignKeyConstraint
baseColumnNames=
"app_client_user_id"
baseTableName=
"app_client_user_privileges"
constraintName=
"FKb0359mfinfxq2ia5f7y416oo9"
deferrable=
"false"
initiallyDeferred=
"false"
onDelete=
"CASCADE"
referencedColumnNames=
"id"
referencedTableName=
"app_client_user"
validate=
"true"
/>
</changeSet>
<changeSet
author=
"Dylan (generated)"
id=
"1612064068332-7"
>
<addForeignKeyConstraint
baseColumnNames=
"privileges_id"
baseTableName=
"app_client_user_privileges"
constraintName=
"FKfmhs19ioxlp9xq0jto204dr7p"
deferrable=
"false"
initiallyDeferred=
"false"
onDelete=
"CASCADE"
referencedColumnNames=
"id"
referencedTableName=
"privilege"
validate=
"true"
/>
</changeSet>
</databaseChangeLog>
src/main/resources/db/changelog/diff-changelog-1.00.009.xml
deleted
100644 → 0
View file @
382a7202
<?xml version="1.1" encoding="UTF-8" standalone="no"?>
<databaseChangeLog
logicalFilePath=
"db/./changelog/diff-changelog-1.0.9.xml"
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=
"Dylan"
id=
"1612345937945-privileges-1"
>
<preConditions
onFail=
"MARK_RAN"
>
<sqlCheck
expectedResult=
"0"
>
SELECT COUNT(*) FROM privilege WHERE name='READ';
</sqlCheck>
</preConditions>
<insert
tableName=
"privilege"
>
<column
name=
"name"
value=
"READ"
/>
</insert>
</changeSet>
<changeSet
author=
"Dylan"
id=
"1612345937945-privileges-2"
>
<preConditions
onFail=
"MARK_RAN"
>
<sqlCheck
expectedResult=
"0"
>
SELECT COUNT(*) FROM privilege WHERE name='WRITE';
</sqlCheck>
</preConditions>
<insert
tableName=
"privilege"
>
<column
name=
"name"
value=
"WRITE"
/>
</insert>
</changeSet>
<changeSet
author=
"Dylan"
id=
"1612345937945-privileges-3"
>
<preConditions
onFail=
"MARK_RAN"
>
<sqlCheck
expectedResult=
"0"
>
SELECT COUNT(*) FROM privilege WHERE name='DASHBOARD_ADMIN';
</sqlCheck>
</preConditions>
<insert
tableName=
"privilege"
>
<column
name=
"name"
value=
"DASHBOARD_ADMIN"
/>
</insert>
</changeSet>
<changeSet
author=
"Dylan"
id=
"1612345937945-privileges-4"
>
<preConditions
onFail=
"MARK_RAN"
>
<sqlCheck
expectedResult=
"0"
>
SELECT COUNT(*) FROM privilege WHERE name='DASHBOARD_USER';
</sqlCheck>
</preConditions>
<insert
tableName=
"privilege"
>
<column
name=
"name"
value=
"DASHBOARD_USER"
/>
</insert>
</changeSet>
<changeSet
author=
"Dylan"
id=
"1612345937945-add-guardianangel-app"
>
<preConditions
onFail=
"MARK_RAN"
>
<sqlCheck
expectedResult=
"0"
>
SELECT COUNT(*) FROM app_client_user WHERE name='guardianangel';
</sqlCheck>
</preConditions>
<insert
tableName=
"app_client_user"
>
<column
name=
"id"
value=
"dd05272f-aeb8-4c58-89a8-e5c0b2f48dd8"
/>
<column
name=
"name"
value=
"guardianangel"
/>
<column
name=
"name_as_lower"
value=
"guardianangel"
/>
</insert>
</changeSet>
<changeSet
author=
"Dylan"
id=
"1612345937945-add-guardianangel-app-read"
>
<preConditions
onFail=
"MARK_RAN"
>
<sqlCheck
expectedResult=
"1"
>
SELECT COUNT(*) FROM app_client_user WHERE name='guardianangel';
</sqlCheck>
</preConditions>
<insert
tableName=
"app_client_user_privileges"
>
<column
name=
"app_client_user_id"
valueComputed=
"(SELECT id FROM app_client_user WHERE name='guardianangel')"
/>
<column
name=
"privileges_id"
valueComputed=
"(SELECT id FROM privilege WHERE name='READ')"
/>
</insert>
</changeSet>
<changeSet
author=
"Dylan"
id=
"1612345937945-add-guardianangel-app-write"
>
<preConditions
onFail=
"MARK_RAN"
>
<sqlCheck
expectedResult=
"1"
>
SELECT COUNT(*) FROM app_client_user WHERE name='guardianangel';
</sqlCheck>
</preConditions>
<insert
tableName=
"app_client_user_privileges"
>
<column
name=
"app_client_user_id"
valueComputed=
"(SELECT id FROM app_client_user WHERE name='guardianangel')"
/>
<column
name=
"privileges_id"
valueComputed=
"(SELECT id FROM privilege WHERE name='WRITE')"
/>
</insert>
</changeSet>
</databaseChangeLog>
src/main/resources/db/changelog/diff-changelog-1.00.010.xml
deleted
100644 → 0
View file @
382a7202
<?xml version="1.1" encoding="UTF-8" standalone="no"?>
<databaseChangeLog
logicalFilePath=
"db/./changelog/diff-changelog-1.0.10.xml"
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=
"david.milligan (generated)"
id=
"1612885610265-5"
>
<createTable
tableName=
"rank"
>
<column
name=
"id"
type=
"UUID"
>
<constraints
nullable=
"false"
primaryKey=
"true"
primaryKeyName=
"rankPK"
/>
</column>
<column
name=
"abbreviation"
type=
"VARCHAR(255)"
/>
<column
name=
"branch_type"
type=
"VARCHAR(255)"
/>
<column
name=
"name"
type=
"VARCHAR(255)"
/>
<column
name=
"pay_grade"
type=
"VARCHAR(255)"
/>
</createTable>
</changeSet>
<changeSet
author=
"david.milligan (generated)"
id=
"1612885610265-6"
>
<addColumn
tableName=
"person"
>
<column
name=
"address"
type=
"varchar(255)"
/>
</addColumn>
</changeSet>
<changeSet
author=
"david.milligan (generated)"
id=
"1612885610265-7"
>
<addColumn
tableName=
"person"
>
<column
name=
"admin"
type=
"boolean"
defaultValue=
"false"
>
<constraints
nullable=
"false"
/>
</column>
</addColumn>
</changeSet>
<changeSet
author=
"david.milligan (generated)"
id=
"1612885610265-8"
>
<addColumn
tableName=
"person"
>
<column
name=
"afsc"
type=
"varchar(255)"
/>
</addColumn>
</changeSet>
<changeSet
author=
"david.milligan (generated)"
id=
"1612885610265-9"
>
<addColumn
tableName=
"person"
>
<column
name=
"approved"
type=
"boolean"
defaultValue=
"false"
>
<constraints
nullable=
"false"
/>
</column>
</addColumn>
</changeSet>
<changeSet
author=
"david.milligan (generated)"
id=
"1612885610265-10"
>
<addColumn
tableName=
"person"
>
<column
name=
"deros"
type=
"varchar(255)"
/>
</addColumn>
</changeSet>
<changeSet
author=
"david.milligan (generated)"
id=
"1612885610265-11"
>
<addColumn
tableName=
"person"
>
<column
name=
"dodid"
type=
"varchar(255)"
/>
</addColumn>
</changeSet>
<changeSet
author=
"david.milligan (generated)"
id=
"1612885610265-12"
>
<addColumn
tableName=
"person"
>
<column
name=
"dor"
type=
"timestamp"
/>
</addColumn>
</changeSet>
<changeSet
author=
"david.milligan (generated)"
id=
"1612885610265-13"
>
<addColumn
tableName=
"person"
>
<column
name=
"duty_phone"
type=
"varchar(255)"
/>
</addColumn>
</changeSet>
<changeSet
author=
"david.milligan (generated)"
id=
"1612885610265-14"
>
<addColumn
tableName=
"person"
>
<column
name=
"duty_title"
type=
"varchar(255)"
/>
</addColumn>
</changeSet>
<changeSet
author=
"david.milligan (generated)"
id=
"1612885610265-15"
>
<addColumn
tableName=
"person"
>
<column
name=
"ets_date"
type=
"timestamp"
/>
</addColumn>
</changeSet>
<changeSet
author=
"david.milligan (generated)"
id=
"1612885610265-16"
>
<addColumn
tableName=
"person"
>
<column
name=
"flt_chief"
type=
"varchar(255)"
/>
</addColumn>
</changeSet>
<changeSet
author=
"david.milligan (generated)"
id=
"1612885610265-17"
>
<addColumn
tableName=
"person"
>
<column
name=
"go81"
type=
"varchar(255)"
/>
</addColumn>
</changeSet>
<changeSet
author=
"david.milligan (generated)"
id=
"1612885610265-18"
>
<addColumn
tableName=
"person"
>
<column
name=
"gp"
type=
"varchar(255)"
/>
</addColumn>
</changeSet>
<changeSet
author=
"david.milligan (generated)"
id=
"1612885610265-19"
>
<addColumn
tableName=
"person"
>
<column
name=
"imds"
type=
"varchar(255)"
/>
</addColumn>
</changeSet>
<changeSet
author=
"david.milligan (generated)"
id=
"1612885610265-20"
>
<addColumn
tableName=
"person"
>
<column
name=
"man_number"
type=
"varchar(255)"
/>
</addColumn>
</changeSet>
<changeSet
author=
"david.milligan (generated)"
id=
"1612885610265-21"
>
<addColumn
tableName=
"person"
>
<column
name=
"phone"
type=
"varchar(255)"
/>
</addColumn>
</changeSet>
<changeSet
author=
"david.milligan (generated)"
id=
"1612885610265-22"
>
<addColumn
tableName=
"person"
>
<column
name=
"pt_date"
type=
"timestamp"
/>
</addColumn>
</changeSet>
<changeSet
author=
"david.milligan (generated)"
id=
"1612885610265-23"
>
<addColumn
tableName=
"person"
>
<column
name=
"rank_id"
type=
"uuid"
/>
</addColumn>
</changeSet>
<changeSet
author=
"david.milligan (generated)"
id=
"1612885610265-24"
>
<addColumn
tableName=
"person"
>
<column
name=
"squadron"
type=
"varchar(255)"
/>
</addColumn>
</changeSet>
<changeSet
author=
"david.milligan (generated)"
id=
"1612885610265-25"
>
<addColumn
tableName=
"person"
>
<column
name=
"unit"
type=
"varchar(255)"
/>
</addColumn>
</changeSet>
<changeSet
author=
"david.milligan (generated)"
id=
"1612885610265-26"
>
<addColumn
tableName=
"person"
>
<column
name=
"wc"
type=
"varchar(255)"
/>
</addColumn>
</changeSet>
<changeSet
author=
"david.milligan (generated)"
id=
"1612885610265-27"
>
<addColumn
tableName=
"person"
>
<column
name=
"wing"
type=
"varchar(255)"
/>
</addColumn>
</changeSet>
<changeSet
author=
"david.milligan (generated)"
id=
"1612885610265-28"
>
<addForeignKeyConstraint
baseColumnNames=
"rank_id"
baseTableName=
"person"
constraintName=
"FK1g22rbc0fbb7kt8fd46oxfbmt"
deferrable=
"false"
initiallyDeferred=
"false"
referencedColumnNames=
"id"
referencedTableName=
"rank"
validate=
"true"
/>
</changeSet>
<changeSet
author=
"david.milligan (generated)"
id=
"1612885610265-31"
>
<dropForeignKeyConstraint
baseTableName=
"airman"
constraintName=
"FKnhnnva29xg5gk1p4lalng3y8j"
/>
</changeSet>
<changeSet
author=
"david.milligan (generated)"
id=
"1612885610265-33"
>
<dropTable
tableName=
"airman"
/>
</changeSet>
<changeSet
author=
"david.milligan"
id=
"seed-1"
>
<loadData
file=
"../seed.1.0.10/ranks.csv"
tableName=
"rank"
relativeToChangelogFile=
"true"
/>
</changeSet>
</databaseChangeLog>
src/main/resources/db/changelog/diff-changelog-1.00.011.xml
deleted
100644 → 0
View file @
382a7202
<?xml version="1.1" encoding="UTF-8" standalone="no"?>
<databaseChangeLog
logicalFilePath=
"db/./changelog/diff-changelog-1.0.11.xml"
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=
"ayee (generated)"
id=
"1613069009166-2"
>
<createTable
tableName=
"dashboard_user"
>
<column
name=
"id"
type=
"UUID"
>
<constraints
nullable=
"false"
primaryKey=
"true"
primaryKeyName=
"dashboard_userPK"
/>
</column>
<column
name=
"email"
type=
"VARCHAR(255)"
/>
<column
name=
"email_as_lower"
type=
"VARCHAR(255)"
/>
</createTable>
</changeSet>
<changeSet
author=
"ayee (generated)"
id=
"1613069009166-3"
>
<createTable
tableName=
"dashboard_user_privileges"
>
<column
name=
"dashboard_user_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=
"ayee (generated)"
id=
"1613069009166-4"
>
<addUniqueConstraint
columnNames=
"email"
constraintName=
"UC_DASHBOARD_USEREMAIL_COL"
tableName=
"dashboard_user"
/>
</changeSet>
<changeSet
author=
"ayee (generated)"
id=
"1613069009166-5"
>
<addUniqueConstraint
columnNames=
"email_as_lower"
constraintName=
"dashboardUser_emailAsLower_key"
tableName=
"dashboard_user"
/>
</changeSet>
<changeSet
author=
"ayee (generated)"
id=
"1613069009166-6"
>
<addForeignKeyConstraint
baseColumnNames=
"dashboard_user_id"
baseTableName=
"dashboard_user_privileges"
constraintName=
"FK2mytcxpxyqvhpl6ufvj9s3va"
deferrable=
"false"
initiallyDeferred=
"false"
referencedColumnNames=
"id"
referencedTableName=
"dashboard_user"
validate=
"true"
/>
</changeSet>
<changeSet
author=
"ayee (generated)"
id=
"1613069009166-7"
>
<addForeignKeyConstraint
baseColumnNames=
"privileges_id"
baseTableName=
"dashboard_user_privileges"
constraintName=
"FKt6lxco0il6m5bmw7ibgyi902i"
deferrable=
"false"
initiallyDeferred=
"false"
referencedColumnNames=
"id"
referencedTableName=
"privilege"
validate=
"true"
/>
</changeSet>
</databaseChangeLog>
src/main/resources/db/changelog/diff-changelog-1.00.012.xml
deleted
100644 → 0
View file @
382a7202
<?xml version="1.1" encoding="UTF-8" standalone="no"?>
<databaseChangeLog
logicalFilePath=
"db/./changelog/diff-changelog-1.0.12.xml"
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
id=
"remove-airman-columns"
author=
"david.milligan"
>
<dropColumn
columnName=
"admin"
tableName=
"person"
/>
<dropColumn
columnName=
"afsc"
tableName=
"person"
/>
<dropColumn
columnName=
"approved"
tableName=
"person"
/>
<dropColumn
columnName=
"deros"
tableName=
"person"
/>
<dropColumn
columnName=
"dor"
tableName=
"person"
/>
<dropColumn
columnName=
"ets_date"
tableName=
"person"
/>
<dropColumn
columnName=
"flt_chief"
tableName=
"person"
/>
<dropColumn
columnName=
"go81"
tableName=
"person"
/>
<dropColumn
columnName=
"gp"
tableName=
"person"
/>
<dropColumn
columnName=
"imds"
tableName=
"person"
/>
<dropColumn
columnName=
"man_number"
tableName=
"person"
/>
<dropColumn
columnName=
"pt_date"
tableName=
"person"
/>
<dropColumn
columnName=
"squadron"
tableName=
"person"
/>
<dropColumn
columnName=
"unit"
tableName=
"person"
/>
<dropColumn
columnName=
"wc"
tableName=
"person"
/>
<dropColumn
columnName=
"wing"
tableName=
"person"
/>
</changeSet>
<changeSet
id=
"person-metadata"
author=
"david.milligan"
>
<createTable
tableName=
"person_metadata"
>
<column
name=
"key"
type=
"VARCHAR(255)"
>
<constraints
nullable=
"false"
primaryKey=
"true"
primaryKeyName=
"person_metadataPK"
/>
</column>
<column
name=
"person_id"
type=
"UUID"
>
<constraints
nullable=
"false"
primaryKey=
"true"
primaryKeyName=
"person_metadataPK"
/>
</column>
<column
name=
"value"
type=
"VARCHAR(255)"
/>
</createTable>
<addForeignKeyConstraint
constraintName=
"FK_person_metadata_person_id"
baseTableName=
"person_metadata"
baseColumnNames=
"person_id"
referencedTableName=
"person"
referencedColumnNames=
"id"
deferrable=
"false"
initiallyDeferred=
"false"
validate=
"true"
onDelete=
"CASCADE"
/>
</changeSet>
<changeSet
id=
"org-metadata"
author=
"david.milligan"
>
<createTable
tableName=
"organization_metadata"
>
<column
name=
"key"
type=
"VARCHAR(255)"
>
<constraints
nullable=
"false"
primaryKey=
"true"
primaryKeyName=
"organization_metadataPK"
/>
</column>
<column
name=
"organization_id"
type=
"UUID"
>
<constraints
nullable=
"false"
primaryKey=
"true"
primaryKeyName=
"organization_metadataPK"
/>
</column>
<column
name=
"value"
type=
"VARCHAR(255)"
/>
</createTable>
<addForeignKeyConstraint
constraintName=
"FK_organization_metadata_organization_id"
baseTableName=
"organization_metadata"
baseColumnNames=
"organization_id"
referencedTableName=
"organization"
referencedColumnNames=
"id"
deferrable=
"false"
initiallyDeferred=
"false"
validate=
"true"
onDelete=
"CASCADE"
/>
</changeSet>
</databaseChangeLog>
src/main/resources/db/changelog/diff-changelog-1.00.013.xml
deleted
100644 → 0
View file @
382a7202
<?xml version="1.1" encoding="UTF-8" standalone="no"?>
<databaseChangeLog
logicalFilePath=
"db/./changelog/diff-changelog-1.0.13.xml"
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=
"1613699603185-8"
>
<createTable
tableName=
"scratch_storage"
>
<column
name=
"id"
type=
"UUID"
>
<constraints
nullable=
"false"
primaryKey=
"true"
primaryKeyName=
"scratch_storagePK"
/>
</column>
<column
name=
"app_id"
type=
"UUID"
>
<constraints
nullable=
"false"
/>
</column>
<column
name=
"key"
type=
"VARCHAR(255)"
>
<constraints
nullable=
"false"
/>
</column>
<column
name=
"value"
type=
"VARCHAR(255)"
/>
</createTable>
</changeSet>
<changeSet
author=
"christopherzell (generated)"
id=
"1613699603185-9"
>
<createTable
tableName=
"scratch_storage_app_registry"
>
<column
name=
"id"
type=
"UUID"
>
<constraints
nullable=
"false"
primaryKey=
"true"
primaryKeyName=
"scratch_storage_app_registryPK"
/>
</column>
<column
name=
"app_name"
type=
"VARCHAR(255)"
>
<constraints
nullable=
"false"
/>
</column>
<column
name=
"app_name_as_lower"
type=
"VARCHAR(255)"
/>
</createTable>
</changeSet>
<changeSet
author=
"christopherzell (generated)"
id=
"1613699603185-10"
>
<createTable
tableName=
"scratch_storage_app_registry_user_privs"
>
<column
name=
"scratch_storage_app_registry_entry_id"
type=
"UUID"
>
<constraints
nullable=
"false"
primaryKey=
"true"
/>
</column>
<column
name=
"user_privs_id"
type=
"UUID"
>
<constraints
nullable=
"false"
primaryKey=
"true"
/>
</column>
</createTable>
</changeSet>
<changeSet
author=
"christopherzell (generated)"
id=
"1613699603185-11"
>
<createTable
tableName=
"scratch_storage_app_user_privs"
>
<column
name=
"id"
type=
"UUID"
>
<constraints
nullable=
"false"
primaryKey=
"true"
primaryKeyName=
"scratch_storage_app_user_privsPK"
/>
</column>
<column
name=
"privilege_id"
type=
"BIGINT"
/>
<column
name=
"user_id"
type=
"UUID"
/>
</createTable>
</changeSet>
<changeSet
author=
"christopherzell (generated)"
id=
"1613699603185-12"
>
<createTable
tableName=
"scratch_storage_user"
>
<column
name=
"id"
type=
"UUID"
>
<constraints
nullable=
"false"
primaryKey=
"true"
primaryKeyName=
"scratch_storage_userPK"
/>
</column>
<column
name=
"email"
type=
"VARCHAR(255)"
>
<constraints
nullable=
"false"
/>
</column>
<column
name=
"email_as_lower"
type=
"VARCHAR(255)"
/>
</createTable>
</changeSet>
<changeSet
author=
"christopherzell (generated)"
id=
"1613699603185-13"
>
<addUniqueConstraint
columnNames=
"user_privs_id"
constraintName=
"UK_9r4dm213g2rsp5oci5q1tbp7w"
tableName=
"scratch_storage_app_registry_user_privs"
/>
</changeSet>
<changeSet
author=
"christopherzell (generated)"
id=
"1613699603185-14"
>
<addUniqueConstraint
columnNames=
"email_as_lower"
constraintName=
"UKbirr6ox44aoshyg3ci20efl6j"
tableName=
"scratch_storage_user"
/>
</changeSet>
<changeSet
author=
"christopherzell (generated)"
id=
"1613699603185-15"
>
<addUniqueConstraint
columnNames=
"app_name_as_lower"
constraintName=
"UKqinn8rfj78ai11bvlroewie8u"
tableName=
"scratch_storage_app_registry"
/>
</changeSet>
<changeSet
author=
"christopherzell (generated)"
id=
"1613699603185-16"
>
<addForeignKeyConstraint
baseColumnNames=
"scratch_storage_app_registry_entry_id"
baseTableName=
"scratch_storage_app_registry_user_privs"
constraintName=
"FK838e0yn58qu1ybeeh7fiboucd"
deferrable=
"false"
initiallyDeferred=
"false"
referencedColumnNames=
"id"
referencedTableName=
"scratch_storage_app_registry"
validate=
"true"
/>
</changeSet>
<changeSet
author=
"christopherzell (generated)"
id=
"1613699603185-17"
>
<addForeignKeyConstraint
baseColumnNames=
"privilege_id"
baseTableName=
"scratch_storage_app_user_privs"
constraintName=
"FKbiqhc72lnr3971y31yfdj3ho5"
deferrable=
"false"
initiallyDeferred=
"false"
referencedColumnNames=
"id"
referencedTableName=
"privilege"
validate=
"true"
/>
</changeSet>
<changeSet
author=
"christopherzell (generated)"
id=
"1613699603185-18"
>
<addForeignKeyConstraint
baseColumnNames=
"user_privs_id"
baseTableName=
"scratch_storage_app_registry_user_privs"
constraintName=
"FKqsyu1q0cfs812wm5xrp8ajfdk"
deferrable=
"false"
initiallyDeferred=
"false"
referencedColumnNames=
"id"
referencedTableName=
"scratch_storage_app_user_privs"
validate=
"true"
/>
</changeSet>
<changeSet
author=
"christopherzell (generated)"
id=
"1613699603185-19"
>
<addForeignKeyConstraint
baseColumnNames=
"user_id"
baseTableName=
"scratch_storage_app_user_privs"
constraintName=
"FKqy82irleik4assn4xbvc2xqod"
deferrable=
"false"
initiallyDeferred=
"false"
referencedColumnNames=
"id"
referencedTableName=
"scratch_storage_user"
validate=
"true"
/>
</changeSet>
<changeSet
author=
"christopherzell"
id=
"1613508896370-privileges-1"
>
<preConditions
onFail=
"MARK_RAN"
>
<sqlCheck
expectedResult=
"0"
>
SELECT COUNT(*) FROM privilege WHERE name='SCRATCH_WRITE';
</sqlCheck>
</preConditions>
<insert
tableName=
"privilege"
>
<column
name=
"name"
value=
"SCRATCH_WRITE"
/>
</insert>
</changeSet>
<changeSet
author=
"christopherzell"
id=
"1613508896370-privileges-2"
>
<preConditions
onFail=
"MARK_RAN"
>
<sqlCheck
expectedResult=
"0"
>
SELECT COUNT(*) FROM privilege WHERE name='SCRATCH_READ';
</sqlCheck>
</preConditions>
<insert
tableName=
"privilege"
>
<column
name=
"name"
value=
"SCRATCH_READ"
/>
</insert>
</changeSet>
</databaseChangeLog>
src/main/resources/db/changelog/diff-changelog-1.00.014.xml
deleted
100644 → 0
View file @
382a7202
<?xml version="1.1" encoding="UTF-8" standalone="no"?>
<databaseChangeLog
logicalFilePath=
"db/./changelog/diff-changelog-1.0.14.xml"
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=
"1613508896391-privileges-1"
>
<preConditions
onFail=
"MARK_RAN"
>
<sqlCheck
expectedResult=
"0"
>
SELECT COUNT(*) FROM privilege WHERE name='SCRATCH_ADMIN';
</sqlCheck>
</preConditions>
<insert
tableName=
"privilege"
>
<column
name=
"name"
value=
"SCRATCH_ADMIN"
/>
</insert>
</changeSet>
</databaseChangeLog>
src/main/resources/db/changelog/diff-changelog-1.00.015.xml
deleted
100644 → 0
View file @
382a7202
<?xml version="1.1" encoding="UTF-8" standalone="no"?>
<databaseChangeLog
logicalFilePath=
"db/./changelog/diff-changelog-1.0.15.xml"
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=
"1614972829447-7"
>
<createTable
tableName=
"pub_sub_ledger"
>
<column
name=
"id"
type=
"UUID"
>
<constraints
nullable=
"false"
primaryKey=
"true"
primaryKeyName=
"pub_sub_ledgerPK"
/>
</column>
<column
name=
"count_for_event_type"
type=
"BIGINT"
/>
<column
name=
"data"
type=
"VARCHAR(255)"
/>
<column
name=
"date_created"
type=
"TIMESTAMP WITHOUT TIME ZONE"
/>
<column
name=
"event_type"
type=
"VARCHAR(255)"
/>
</createTable>
</changeSet>
<changeSet
author=
"christopherzell (generated)"
id=
"1614972829447-8"
>
<addColumn
tableName=
"organization"
>
<column
name=
"date_created"
type=
"timestamp"
/>
</addColumn>
</changeSet>
<changeSet
author=
"christopherzell (generated)"
id=
"1614972829447-9"
>
<addColumn
tableName=
"person"
>
<column
name=
"date_created"
type=
"timestamp"
/>
</addColumn>
</changeSet>
<changeSet
author=
"christopherzell (generated)"
id=
"1614972829447-10"
>
<addColumn
tableName=
"organization"
>
<column
name=
"date_modified"
type=
"timestamp"
/>
</addColumn>
</changeSet>
<changeSet
author=
"christopherzell (generated)"
id=
"1614972829447-11"
>
<addColumn
tableName=
"person"
>
<column
name=
"date_modified"
type=
"timestamp"
/>
</addColumn>
</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