Skip to content
This repository was archived by the owner on Jun 2, 2021. It is now read-only.

Commit a64417e

Browse files
Harsha NandiwadaMerricdeLauney
andcommitted
Remove db default value from description in revisions
Mysql gives this error when trying to provide a default value to text: ERROR 1101 (42000): BLOB, TEXT, GEOMETRY or JSON column 'description' can't have a default value. We decided that it was better to have consistent behavior between postgres and mysql than keep the default value for postgres. Co-authored-by: Harsha Nandiwada <hnandiwada@vmware.com> Co-authored-by: Merric de Launey <mdelauney@pivotal.io>
1 parent d9b80a9 commit a64417e

1 file changed

Lines changed: 5 additions & 0 deletions

File tree

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
Sequel.migration do
2+
change do
3+
set_column_default(:revisions, :description, nil)
4+
end
5+
end

0 commit comments

Comments
 (0)