Skip to content
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

Created a separate SQL file to create tables for the unmigrated entities #182

Merged
merged 3 commits into from
Jun 21, 2017

Conversation

BenGalewsky
Copy link
Contributor

Created a DDL file legacy_seed.sql that creates tables for the entities that have not yet
been migrated to H5. This script can be run when a fresh db is set up to create the tables and get the
master branch to work. The DROP TABLE statement at the top is handy for removing all of the legacy
tables from the DB for easy testing of what needs to be converted to get workflows working.

Going forward, as we migrate entities and add them to seed.sql we should delete the DDL from legacy.sql

Progress on #148

Copy link
Contributor

@jasonaowen jasonaowen left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks!

@brainwane brainwane changed the title Created a seperate SQL file to create tables for the unmigrated entities Created a separate SQL file to create tables for the unmigrated entities Jun 19, 2017
Copy link
Contributor

@brainwane brainwane left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I tested this and it worked -- it would be great to add a note in INSTALL.md, for the moment, about the need to run psql -h localhost -U psm psm < db/legacy_seed.sql in addition to the seed.sql command.

@BenGalewsky BenGalewsky force-pushed the 140_make_master_deployable branch from 188d14d to 5f5023f Compare June 20, 2017 21:22
INSTALL.md Outdated
1. Create database schema and initial data. Use the seed data to create tables:
1. Create database schema and initial data. Use the seed data to create tables
and legacy_seed to create tables for entities that have not yet
been migrated to Hibernate5:
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Could you use this syntax to refer to seed and legacy_seed to make it clearer that these are files?

@BenGalewsky BenGalewsky force-pushed the 140_make_master_deployable branch from 5f5023f to 8c01c96 Compare June 21, 2017 14:34
@BenGalewsky BenGalewsky force-pushed the 140_make_master_deployable branch from 8c01c96 to 65ba4b9 Compare June 21, 2017 14:41
@brainwane
Copy link
Contributor

(There are a couple wording things I can fix myself in a separate commit.)

@BenGalewsky BenGalewsky merged commit 83bb925 into master Jun 21, 2017
@BenGalewsky BenGalewsky deleted the 140_make_master_deployable branch June 21, 2017 14:46
brainwane added a commit to brainwane/psm that referenced this pull request Jun 21, 2017
Since the merge of pull request SolutionGuidance#182 in 83bb925 , it is
now possible to run a somewhat functional installation of
the PSM for development purposes.
jasonaowen added a commit that referenced this pull request Jul 3, 2017
The entity backing this table, RequiredField, was deleted in
bb02671. The legacy seed SQL script was
developed in parallel before the deletion was merged.

Delete the unused table.

Issue #36 Use Hibernate 5, instead of 4
Pull request #180 Delete unused entity RequiredField
Pull request #182 Created a separate SQL file to create tables for the
                  unmigrated entities
jasonaowen added a commit that referenced this pull request Jul 6, 2017
The entity backing this table, RequiredField, was deleted in
bb02671. The legacy seed SQL script was
developed in parallel before the deletion was merged.

Delete the unused table.

Issue #36 Use Hibernate 5, instead of 4
Pull request #180 Delete unused entity RequiredField
Pull request #182 Created a separate SQL file to create tables for the
                  unmigrated entities
@kfogel kfogel added the REQ-1 label Feb 27, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants