8000 Generate migrations from the app code by romeerez · Pull Request #248 · romeerez/orchid-orm · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

Generate migrations from the app code #248

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

Merged
merged 23 commits into from
May 5, 2024
Merged

Generate migrations from the app code #248

merged 23 commits into from
May 5, 2024

Conversation

romeerez
Copy link
Owner
@romeerez romeerez commented Mar 21, 2024
  • custom terminal prompt to ask whether to rename or create a new item
  • create, drop, rename db schemas, prompt when ambiguous
  • create, drop, rename table, prompt when ambiguous
  • create, drop, rename enums, prompt when ambiguous
  • add, drop, change enum values
  • add and drop a column, change column type
  • change column type properties (varchar length, decimal precision, scale, timestamp precision)
  • change column default
  • change column identity properties
  • change column comment
  • change the column type to and from an array
  • rename or recreate a column based on a prompt
  • create, drop, and rename a primary key, including composite ones
  • create, drop, rename indexes, handle indexes for full-text search, detect changes in raw SQL of index expression
  • create, drop, change, rename foreign keys
  • create and drop checks
  • create and drop db extensions
  • create, drop, and rename domains
  • print report
  • verify generated migration: apply it to the db and make sure that the repeated generation process won't detect any changes to be made, rollback the migration after verifying.
  • include rake-db to orchid-orm package, users should import rakeDb from 'orchid-orm/migrations' from now on.
  • generate ORM tables with db pull command

Copy link
netlify bot commented Mar 21, 2024

Deploy Preview for orchid-orm canceled.

Name Link
🔨 Latest commit cedc1d3
🔍 Latest deploy log https://app.netlify.com/sites/orchid-orm/deploys/6637fe6305296d00080ff79e

@romeerez romeerez force-pushed the gen-migrations branch 3 times, most recently from d8bc9aa to fb850ec Compare April 8, 2024 04:16
@romeerez romeerez force-pushed the gen-migrations branch 2 times, most recently from ccfbfd0 to 4f3e584 Compare April 18, 2024 17:19
@romeerez romeerez force-pushed the gen-migrations branch 2 times, most recently from 0692dc9 to cb58f91 Compare May 5, 2024 21:31
@romeerez romeerez marked this pull request as ready for review May 5, 2024 21:48
@romeerez romeerez merged commit 929f49b into main May 5, 2024
6 checks passed
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
0