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

Migrations Tidy Up #189

Open
Joeyh021 opened this issue Apr 13, 2023 · 0 comments
Open

Migrations Tidy Up #189

Joeyh021 opened this issue Apr 13, 2023 · 0 comments

Comments

@Joeyh021
Copy link
Member

This was attempted in #187, but the schema generated was too different to the existing one on the production DB (difference checked using pgAdmin).

The advantages of doing this are:

  • to remove old stuff
  • totally dump the sqlalchemy_utils package as a dependancy (it is needed for decryption stuff)
  • generate migrations with type stubs
  • generate migrations that use the async dbapi (doesn't actually gain us much for migrations purposes)
  • fix the slightly broken schema

The current best solution we can come up with is to write a script that connects to both the old and a new database and copies the tables over a row at a time.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant