createDB should be determined automatically by existence of config_options table
Reported by Paul Jones | February 13th, 2011 @ 04:09 PM | in 0.9.3
Currently, an environment option for createDB is provided to inform Hibernate to do a schema export. Given the changes made to include schema version info in the config_options table, it would be much simpler to just detect whether this table is there, and then run Schema export if it isn't. That way, we get the "migration" strategy right from the outset.
Comments and changes to this ticket
-

Paul Jones February 13th, 2011 @ 06:28 PM
- State changed from new to resolved
- Assigned user set to Ben Hood
Implemented by allowing preparation steps to be applied when the sessionfactory is being created. These steps are given enough context in order to be able to run schema export operations. I've moved the HibernateConfigStore schema property setting function into the preparation step as well, in order to keep the store code clean (and provide a clear extension point for migrations later).
-

Ben Hood February 13th, 2011 @ 06:28 PM
(from [bf10b4712ad3dfa08b401319f6b0660da3b47446]) [#187] Apply database schema based on whether config_options table exists. https://github.com/lshift/diffa/commit/bf10b4712ad3dfa08b401319f6b0...
-

Ben Hood February 15th, 2011 @ 08:19 AM
(from [f6695792067c3c493fefb72217396e264780a93e]) [#187] Don't defer registration of application/json protocol support https://github.com/lshift/diffa/commit/f6695792067c3c493fefb7221739...
-

-

Please Sign in or create a free account to add a new ticket.
With your very own profile, you can contribute to projects, track your activity, watch tickets, receive and update tickets through your email and much more.
Create your profile
Help contribute to this project by taking a few moments to create your personal profile. Create your profile ยป
A Real Time Differencing Tool.
People watching this ticket
Referenced by
-
187
createDB should be determined automatically by existence of config_options table
(from [bf10b4712ad3dfa08b401319f6b0660da3b47446])
[#187] ...
-
187
createDB should be determined automatically by existence of config_options table
(from [f6695792067c3c493fefb72217396e264780a93e])
[#187] ...
-
187
createDB should be determined automatically by existence of config_options table
(from [75e30f5a8fd31bc4c5ed4c67109529e5cec89b7a])
Merged ...