Skip to content
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

Remove PostgreSQL support #241

Merged
merged 6 commits into from
Jun 3, 2024
Merged

Remove PostgreSQL support #241

merged 6 commits into from
Jun 3, 2024

Conversation

meshy
Copy link
Contributor

@meshy meshy commented Jun 2, 2024

We use SQLite in production, and our makefile configured things to use SQLite too.

We're trying to move away from needing a database at all, so it makes sense to remove this unused support.

As a bonus, this cuts about 22 seconds off our CI build time.

meshy added 6 commits June 3, 2024 00:34
The templates we render had changed, but only in terms of spacing.

This updates the snapshots to be fully in line with the current renders.
Before this change, we defaulted to running against PostgreSQL,
but that's not what we're running in production.

This changes the default database to be SQLite, to better reflect the
state of production.

Doing so reveals a discrepancy in how the tests run between the two
systems. When we run the snapshot tests against PostgreSQL, the class
methods are ordered in a way that ignored symbols, but when run with
SQLite, the symbols are taken into account.

Given this reflects the current state of production, this is better, so
I've updated the snapshot renders.
These match the new defaults in the settings file.
This file hasn't been used for a long time.
We don't run production against PostgreSQL, so there's no point in using
it in tests.
We no longer need psycopg2 because we don't use PostgreSQL any more.
@meshy meshy merged commit 31dd1c5 into main Jun 3, 2024
1 check passed
@meshy meshy deleted the remove-postgres-support branch June 3, 2024 07:58
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant