O valor nulo na coluna viola a restrição não nula
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;