[Answer]-DatabaseError: column "pub_date" of relation "courses_courses" does not exist

1👍

Could it be because the SQL statements are separated by commas, and not semi-colons (to separate them into discrete commands)?

Demonstrate the failure in psql:

alter table foo alter x set not null, alter table foo alter y set not null;
ERROR:  syntax error at or near "table"
LINE 1: alter table foo alter x set not null, alter table foo alter ...
                                                    ^
alter table foo alter x set not null; alter table foo alter y set not null;
ALTER TABLE
ALTER TABLE
👤bma

Leave a comment