-
Notifications
You must be signed in to change notification settings - Fork 1k
dialect/sql/schema: atlas engine is now default #2698
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
Conversation
718ea11 to
e8ba203
Compare
e8ba203 to
fd04ef9
Compare
fd04ef9 to
3214083
Compare
a8m
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is fantastic 🚀
My only concern is the BC for schemas that rely on the generated code (e.g. privacy or hooks) and won't be able to compile and execute the codegen. I'll check this on your branch.
| // MigrateOption allows for managing schema configuration using functional options. | ||
| type MigrateOption func(*Migrate) | ||
| // MigrateOption allows configuring Atlas using functional arguments. | ||
| type MigrateOption func(*Atlas) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I saw that you updated also NewMigrate, so that should not break users' code, but I'll verify it locally and update you.
6dee083 to
bdb089e
Compare
a8m
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Fantastic Jannik! 💯
This PR does 2 things:
ModeInspectto inspect a connect database (legacy behavior)ModeReplayto replay the migration directory and then inspectAmong other things, the recently introduced
ent_typesfile for versioned migrations has been removed and the source of truth is now the inspected database.