Thanks to visit codestin.com
Credit goes to github.com

Skip to content
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
make template version created_by nullable
  • Loading branch information
AbhineetJain committed Jul 15, 2022
commit 202421e330273e0eea314b5504d171ac289fe834
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,4 @@ SET
WHERE
created_by IS NULL;

ALTER TABLE ONLY template_versions ALTER COLUMN created_by SET NOT NULL;

COMMIT;
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@dwahler I am hoping wrapping it in BEGIN-COMMIT would help to fix the problem caused by the migration. Not really sure if this broke the server though.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Interestingly, make gen is failing with:

panic: reached retry deadline
goroutine 1 [running]:
main.main()
	/home/runner/work/coder/coder/coderd/database/dump/main.go:19 +0x80c
exit status 2
make: *** [Makefile:60: coderd/database/dump.sql] Error 1

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Fixed the bug, the scoping logic was not good.