Skip to content
This repository has been archived by the owner on Aug 27, 2024. It is now read-only.

Test and develop with postgres #488

Merged
merged 13 commits into from
Feb 24, 2017
Merged

Test and develop with postgres #488

merged 13 commits into from
Feb 24, 2017

Conversation

prayerslayer
Copy link
Contributor

@prayerslayer prayerslayer commented Feb 23, 2017

Using multiple database engines for developing, testing (both sqlite3) and production (postgres) can lead to subtle inconsistencies that aren't caught in unit/integration tests.

One example for this are BIGINT columns. With sqlite these are stored as INTEGER and returned as number. With postgres they are stored as BIGINT and returned as string.

This PR adapts tests for postgres and provides a docker-compose file to run both zappr and postgres locally.

@neremic
Copy link

neremic commented Feb 24, 2017

👍

@prayerslayer
Copy link
Contributor Author

Sorry, still found places where we worked around sqlite/pg differences 😓 But I think that's it.

@ChristianLohmann
Copy link
Member

👍

1 similar comment
@prayerslayer
Copy link
Contributor Author

👍

@prayerslayer prayerslayer merged commit ff6a2c2 into master Feb 24, 2017
@prayerslayer prayerslayer deleted the test-with-postgres branch February 24, 2017 14:18
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants