inserting values with beekeeper get error null value in column createdAt violates not-null constraint
INSERT INTO archive (id, title, createdAt) SELECT id, title, NOW() FROM old_archives;
inserting values with beekeeper get error null value in column createdAt violates not-null constraint
INSERT INTO archive (id, title, createdAt) SELECT id, title, NOW() FROM old_archives;
null value in column violates not-null constraint
To get rid of the NOT NULL costraint run:
ALTER TABLE <your-table> ALTER COLUMN <your-column> DROP NOT NULL;
Copyright © 2021 Codeinu
Forgot your account's password or having trouble logging into your Account? Don't worry, we'll help you to get back your account. Enter your email address and we'll send you a recovery link to reset your password. If you are experiencing problems resetting your password contact us