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

Schema editor destroys constraint #1087

Closed
hendi opened this issue Sep 13, 2021 · 1 comment
Closed

Schema editor destroys constraint #1087

hendi opened this issue Sep 13, 2021 · 1 comment
Labels

Comments

@hendi
Copy link
Collaborator

hendi commented Sep 13, 2021

This is the diff I see after changing another field in the listings table:

-ALTER TABLE listings ADD CONSTRAINT source CHECK ((NOT (user_id IS NOT NULL AND agent_id IS NOT NULL)) AND (user_id IS NOT NULL OR agent_id IS NOT NULL));
+ALTER TABLE listings ADD CONSTRAINT source CHECK ((NOT user_id IS NOT NULL AND agent_id IS NOT NULL AND user_id IS NOT NULL) OR (agent_id IS NOT NULL));
@hendi hendi added the bug label Sep 13, 2021
@mpscholten
Copy link
Member

Fixed this on master 👍

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

No branches or pull requests

2 participants