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
Support to dump and load of postgresql schemas #1450
Conversation
…d also reapply part of the old PR
Hiya, This looks identical to what I reverted, which broke the tests. The reason it broke is because this line is checking for 'schema_things', but after your change the entry is 'rails_pg_schema_user1.schema_things', hence the assertion fails. I'm not sure what the 'right' behaviour is here so I will let @tenderlove comment as he is more familiar with the adapters code. Jon |
Hi Jon, Yes, almost the same. I ran the test that you're pointing and it pass now. Did you run it with this new patch? |
Ok, I didn't notice the difference. I will let @tenderlove check it over. Just on a code quality point, I would prefer if you hadn't changed the if/else statement into a ternary. |
Ok, lets wait for him. thanks for the tip. |
There's no hard and fast rule, but if an if/else is at all complicated, then I favour a full if/else rather than ternary. I find it easier to read. Especially in this case where your condition includes an |
Agreed @jonleighton |
@tenderlove, Is anything else left to merge this? Cheers |
Removed warnings from while running tests in Ruby 1.9.2
…d also reapply part of the old PR
Is this still an issue @lucasts? |
This pull request cannot be automatically merged. If you still want to merge it, please rebase against the master. If no, please close it. Thanks. |
I'll close this PR and investigate the current status of the root problem. If I found something that need fix I will create a new PR with uptated code. Since last interaction I found other issues with postgresql schema support that need to be fixed too. |
cc: @jonleighton, @tenderlove
As of PR #1410, this change try to respect table with qualified schemas in postgres
now you can do something like this on a migration file:
something I want to work soon is to create schemas in migrations without breaking dump and create tasks(that will also break test tasks)