-
Notifications
You must be signed in to change notification settings - Fork 19
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
Conversation
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.
Thanks!
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 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.
188d14d
to
5f5023f
Compare
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: |
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.
Could you use this syntax
to refer to seed
and legacy_seed
to make it clearer that these are files?
5f5023f
to
8c01c96
Compare
8c01c96
to
65ba4b9
Compare
(There are a couple wording things I can fix myself in a separate commit.) |
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.
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
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
Created a DDL file
legacy_seed.sql
that creates tables for the entities that have not yetbeen 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