-
Notifications
You must be signed in to change notification settings - Fork 63
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
drop tables on resources being missing #224
Labels
Comments
zachdaniel
changed the title
mix ash_postgres.generate_migration does nothing if a resource has been removed/deleted
drop tables on resources being missing
Mar 20, 2024
At the moment, the migration generator does not delete tables. PRs welcome :) |
This will also need to handle table renames, per: #256 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Is your feature request related to a problem? Please describe.
I have a
Message
resource that I would like to delete. I deleted the code and ran themix ash_postgres.generate_migrations --name remove_message_resource
but that came back with:Describe the solution you'd like
I would expect it to detect that a resource has been deleted and create the migration.
Describe alternatives you've considered
creating the migration using
mix ecto.gen.migration remove_messaage_table
seems to have worked.Additional context
Chat about this idea in discord:
Zi Makki — Today at 14:09
barnabasj — Today at 15:00
Zi Makki — Today at 15:17
barnabasj — Today at 15:44
The text was updated successfully, but these errors were encountered: