-
Notifications
You must be signed in to change notification settings - Fork 271
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
postgres: Comments on check doesn't work. If the check expression has AND, even if they are exactly the same, atlas still will delete and recreate the constraints #3242
Comments
Hey! Do you use a dev-database in your commands? See: https://atlasgo.io/concepts/dev-database |
Ok, this fix issue of check expression. |
And if i change the name of the check, will still show the message: "Schema is synced, no changes to be made" |
I think some better info is needed here: |
What command do you use? |
atlas schema apply -u $env:DATABASE_URL --to=file://schema.pg.hcl --dev-url $env:DEV_DATABASE_URL |
Digging a little deeper, Atlas only detects changes if I change the check expression. |
Yes, this was intentional some time ago (before the dev-database was added to Atlas). We will change this in the upcoming release. |
Atlas version: 0.29.0
Postgres version: 17
Example hcl:
What I saw after running atlas schema apply:
The text was updated successfully, but these errors were encountered: