)]}'
{"/COMMIT_MSG":[{"author":{"_account_id":2537,"name":"Nikhil Komawar","email":"nik.komawar@gmail.com","username":"nikhil-komawar"},"change_message_id":"13055b13a226a4a293d38c16c69019a854b74547","unresolved":false,"context_lines":[{"line_number":9,"context_line":"Correct migrations to satisfy models_metadef."},{"line_number":10,"context_line":"Add nullable\u003dFalse for json_schema in metadef_object"},{"line_number":11,"context_line":"and metadef_property according to changes in"},{"line_number":12,"context_line":"https://review.openstack.org/#/c/120957/7 ."},{"line_number":13,"context_line":"Set updated_at nullable\u003dTrue due to problems"},{"line_number":14,"context_line":"with setting default value NOW() for datetime"},{"line_number":15,"context_line":"type for mysql (the same as in models.py)."}],"source_content_type":"text/x-gerrit-commit-message","patch_set":10,"id":"9a80dd14_46871ab5","line":12,"updated":"2015-03-09 19:25:40.000000000","message":"Please mention Change ID here instead of the review link.","commit_id":"b9f8fa8299c6b7477c0a874ba36dd6ac22bf60e7"}],"glance/db/sqlalchemy/migrate_repo/versions/039_add_changes_to_satisfy_models_metadef.py":[{"author":{"_account_id":6549,"name":"Zhi Yan Liu","email":"lzy.dev@gmail.com","username":"lzy-dev"},"change_message_id":"f4681824a52f6c1a9879c2d208e3fe776ca66b42","unresolved":false,"context_lines":[{"line_number":44,"context_line":"                                       [metadef_namespaces.c.id])"},{"line_number":45,"context_line":"    fkc.create()"},{"line_number":46,"context_line":""},{"line_number":47,"context_line":"    # For some reason `migrate` remove unique constraint after adding"},{"line_number":48,"context_line":"    # foreign key to the table in sqlite. Create unique constraint manually."},{"line_number":49,"context_line":"    if migrate_engine.name \u003d\u003d \u0027sqlite\u0027 and len("},{"line_number":50,"context_line":"            inspector.get_unique_constraints(\u0027metadef_tags\u0027)) \u003d\u003d 0:"}],"source_content_type":"text/x-python","patch_set":10,"id":"ba7be1f8_6809d12b","line":47,"updated":"2015-03-01 07:02:08.000000000","message":"With some more checks I\u0027m not sure the root reason of this issue, you probably need to do an investigation on this would you?","commit_id":"b9f8fa8299c6b7477c0a874ba36dd6ac22bf60e7"},{"author":{"_account_id":12363,"name":"Oleksii Chuprykov","email":"a.chuprikoff@gmail.com","username":"ochuprykov"},"change_message_id":"1022bf954fdedae7aae938513957be6c5fbf3bac","unresolved":false,"context_lines":[{"line_number":44,"context_line":"                                       [metadef_namespaces.c.id])"},{"line_number":45,"context_line":"    fkc.create()"},{"line_number":46,"context_line":""},{"line_number":47,"context_line":"    # For some reason `migrate` remove unique constraint after adding"},{"line_number":48,"context_line":"    # foreign key to the table in sqlite. Create unique constraint manually."},{"line_number":49,"context_line":"    if migrate_engine.name \u003d\u003d \u0027sqlite\u0027 and len("},{"line_number":50,"context_line":"            inspector.get_unique_constraints(\u0027metadef_tags\u0027)) \u003d\u003d 0:"}],"source_content_type":"text/x-python","patch_set":10,"id":"ba7be1f8_95ab6a1d","line":47,"in_reply_to":"ba7be1f8_6809d12b","updated":"2015-03-02 10:18:02.000000000","message":"The reason of this issue is that it isn\u0027t possible to add fkc to existing table in sqlite. Instead of this we should recreate the table with needed fkc in the declaration. Migrate package provide us with such possibility, but unfortunately it recreates the table without constraints.","commit_id":"b9f8fa8299c6b7477c0a874ba36dd6ac22bf60e7"},{"author":{"_account_id":6549,"name":"Zhi Yan Liu","email":"lzy.dev@gmail.com","username":"lzy-dev"},"change_message_id":"2f9302fa87645523c0330d4b81e093affeca37ce","unresolved":false,"context_lines":[{"line_number":44,"context_line":"                                       [metadef_namespaces.c.id])"},{"line_number":45,"context_line":"    fkc.create()"},{"line_number":46,"context_line":""},{"line_number":47,"context_line":"    # For some reason `migrate` remove unique constraint after adding"},{"line_number":48,"context_line":"    # foreign key to the table in sqlite. Create unique constraint manually."},{"line_number":49,"context_line":"    if migrate_engine.name \u003d\u003d \u0027sqlite\u0027 and len("},{"line_number":50,"context_line":"            inspector.get_unique_constraints(\u0027metadef_tags\u0027)) \u003d\u003d 0:"}],"source_content_type":"text/x-python","patch_set":10,"id":"9a80dd14_fdc27483","line":47,"in_reply_to":"ba7be1f8_95ab6a1d","updated":"2015-03-09 06:27:44.000000000","message":"Fair enough. nit: It will be better if you put this explanation in code here, imo.","commit_id":"b9f8fa8299c6b7477c0a874ba36dd6ac22bf60e7"}]}
