Nilai nol dalam kolom melanggar kendala tidak nol
To get rid of the NOT NULL costraint run:
ALTER TABLE <your-table> ALTER COLUMN <your-column> DROP NOT NULL;
MitchAloha
To get rid of the NOT NULL costraint run:
ALTER TABLE <your-table> ALTER COLUMN <your-column> DROP NOT NULL;
INSERT INTO archive (id, title, createdAt) SELECT id, title, NOW() FROM old_archives;