-
Notifications
You must be signed in to change notification settings - Fork 1
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Updated with common schema files and seperated postgres data migration #425
base: main
Are you sure you want to change the base?
Conversation
service/local-dev/run_server.sh
Outdated
@@ -21,7 +21,7 @@ while getopts ":av" arg; do | |||
done | |||
|
|||
export TANAGRA_DATABASE_NAME=tanagra_db | |||
export TANAGRA_DB_INITIALIZE_ON_START=false | |||
export TANAGRA_DB_INITIALIZE_ON_START=true |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is helpful for testing, but please leave it set to false
in the main branch. This is the setting we'll deploy with, so I'd like to keep it as the testing default as well.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
done!
@@ -1,9 +1,7 @@ | |||
databaseChangeLog: | |||
- changeSet: | |||
id: avoid_postgres_specific_features | |||
id: schema_extend |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This changeset file has already been deployed to our test instance (we deploy nightly), so you can't change the name or any of the schema specification for postgres. If you change it to render differently for mariadb/mysql only, then I think that's okay (though I'd want to test to confirm) but changing the postgres rendering will definitely break things.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I do not follow.
6d12c40
to
f8613d3
Compare
…y, and criteria_value - since nacent key is a reserved word for mariadb
…mon-schema-files' into chenchals/DT-409-Aou-Tanagra-common-schema-files # Conflicts: # service/src/main/resources/db/changesets/20230602_postgres_data_migrate.yaml # service/src/main/resources/db/changesets/20230602_schema_extend.yaml
202305_avoid...yaml
to20230602_schema_extend.yaml
columnDataType
todropNotNullConstraint
_2
suffix as there were name-collisions with named constraints in20230410_schema_reset.yaml
file20230602_postgres_data_migrate.yaml
withdbms: postgresql
tagkey
andvalue
to appropriate:property_key
orcriteria_key
and value toproperty_value
orcriteria_value
OFFSET x LIMIT x
toLIMIT x OFFSET x
to be compatible with mariadb