Reputation: 541
I am having trouble with what I would think is a pretty simple constraint issue in postgres.
Ruinning:
ALTER TABLE rss_feed_list ADD CONSTRAINT status_type CHECK (feed_status = 'active' OR feed_status 'inactive');
returns the error:
ERROR: type "feed_status" does not exist
Upvotes: 1
Views: 195
Reputation: 4519
There is no equals sign here:
OR feed_status 'inactive'
It probably should be:
OR feed_status = 'inactive'
Upvotes: 2