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

sync ilios2 and ilios3 - third iteration. #997

Closed
stopfstedt opened this issue Aug 31, 2015 · 1 comment
Closed

sync ilios2 and ilios3 - third iteration. #997

stopfstedt opened this issue Aug 31, 2015 · 1 comment
Assignees
Milestone

Comments

@stopfstedt
Copy link
Member

follows #990

the migrated default ilios2 schema does not align with a a freshly installed default ilios3 schema.

see https://gist.github.com/stopfstedt/8bceafcab3f997bd8686

eliminate any outstanding deviations.

@stopfstedt stopfstedt added this to the v3.0.0 milestone Aug 31, 2015
@jrjohnson
Copy link
Member

Well I'm down to the ordering of CONSTRAINTs and I have no idea how to resolve it.

vagrant@ilios:~$ mysqldbcompare  --run-all-tests --skip-data-check --skip-row-count --skip-table-options ilios_default:ilios_fresh

# Object definitions differ. (--changes-for=server1)
#

--- `ilios_default`.`session_learning_material`
+++ `ilios_fresh`.`session_learning_material`
@@ -9,6 +9,6 @@
   KEY `session_lm_k` (`session_id`,`learning_material_id`),
   KEY `learning_material_id_k` (`learning_material_id`),
   KEY `IDX_9BE2AF8D613FECDF` (`session_id`),
-  CONSTRAINT `FK_9BE2AF8D613FECDF` FOREIGN KEY (`session_id`) REFERENCES `session` (`session_id`),
-  CONSTRAINT `FK_9BE2AF8DC1D99609` FOREIGN KEY (`learning_material_id`) REFERENCES `learning_material` (`learning_material_id`)
+  CONSTRAINT `FK_9BE2AF8DC1D99609` FOREIGN KEY (`learning_material_id`) REFERENCES `learning_material` (`learning_material_id`),
+  CONSTRAINT `FK_9BE2AF8D613FECDF` FOREIGN KEY (`session_id`) REFERENCES `session` (`session_id`)
 )

These are identical foreign keys and they are both of the FK_FOO type which is what doctrine creates. So there should be no way for them to exist prior to this update. Why would an empty version of the ilios2 migration 31 database be different in this way from ucsf demo database?

Any thoughts?

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

No branches or pull requests

2 participants