)]}'
{"barbican/model/migration/alembic_migrations/versions/795737bb3c3_change_tenants_to_projects.py":[{"author":{"_account_id":8623,"name":"Kaitlin Farr","email":"kaitlin.farr@jhuapl.edu","username":"kaitlin.farr"},"change_message_id":"379c3ac542886751ea75e41e0066ea6ec0860904","unresolved":false,"context_lines":[{"line_number":75,"context_line":"    # ---- Update orders table:"},{"line_number":76,"context_line":""},{"line_number":77,"context_line":"    _change_fk_to_project("},{"line_number":78,"context_line":"        ctx, con, \u0027orders\u0027, \u0027orders_ibfk_2\u0027, \u0027orders_project_fk\u0027)"},{"line_number":79,"context_line":""},{"line_number":80,"context_line":"    op.create_foreign_key(\u0027orders_ibfk_2\u0027, \u0027orders\u0027, \u0027containers\u0027,"},{"line_number":81,"context_line":"                          [\u0027container_id\u0027], [\u0027id\u0027])"}],"source_content_type":"text/x-python","patch_set":1,"id":"1af94dfe_f94bb329","line":78,"range":{"start_line":78,"start_character":41,"end_line":78,"end_character":42},"updated":"2016-03-15 21:54:28.000000000","message":"Why is it 2 instead of 1?","commit_id":"f47ae83656966657a43487de22285428cfdb41ab"},{"author":{"_account_id":15274,"name":"Christopher Solis","email":"cnsolis@us.ibm.com","username":"cplusone"},"change_message_id":"b274773c75e87681f01acd065705e0febccd37b5","unresolved":false,"context_lines":[{"line_number":75,"context_line":"    # ---- Update orders table:"},{"line_number":76,"context_line":""},{"line_number":77,"context_line":"    _change_fk_to_project("},{"line_number":78,"context_line":"        ctx, con, \u0027orders\u0027, \u0027orders_ibfk_2\u0027, \u0027orders_project_fk\u0027)"},{"line_number":79,"context_line":""},{"line_number":80,"context_line":"    op.create_foreign_key(\u0027orders_ibfk_2\u0027, \u0027orders\u0027, \u0027containers\u0027,"},{"line_number":81,"context_line":"                          [\u0027container_id\u0027], [\u0027id\u0027])"}],"source_content_type":"text/x-python","patch_set":1,"id":"1af94dfe_0bed4025","line":78,"range":{"start_line":78,"start_character":41,"end_line":78,"end_character":42},"in_reply_to":"1af94dfe_f94bb329","updated":"2016-03-16 15:07:11.000000000","message":"Ah. So I migrated the db up to this point. And right before this revision runs the following constraints are the ones that are set: \n\nCONSTRAINT `orders_ibfk_1` FOREIGN KEY (`secret_id`) REFERENCES `secrets` (`id`),\nCONSTRAINT `orders_ibfk_2` FOREIGN KEY (`tenant_id`) REFERENCES `tenants` (`id`)\n\nIt was attempting to change the first constraint from pointing to tenants to projects but the second constraint is actually the one that is pointing to tenants so it needs to be changing the second one. \n\nI don\u0027t know why but when using the auto populate feature the database doesn\u0027t notice this but when I ran \u0027barbican-manage db upgrade -v head\u0027 I got an error here.","commit_id":"f47ae83656966657a43487de22285428cfdb41ab"}]}
