mirror of
https://github.com/omnivore-app/omnivore.git
synced 2026-03-11 08:54:26 +00:00
Add default empty value to the text field in received_emails table
This commit is contained in:
parent
e723ce1bf4
commit
c4905aaba8
2 changed files with 18 additions and 0 deletions
|
|
@ -0,0 +1,9 @@
|
|||
-- Type: DO
|
||||
-- Name: add_default_value_to_text_in_received_emails
|
||||
-- Description: Add default value to the text field in received_emails table
|
||||
|
||||
BEGIN;
|
||||
|
||||
ALTER TABLE omnivore.received_emails ALTER COLUMN text SET DEFAULT '';
|
||||
|
||||
COMMIT;
|
||||
|
|
@ -0,0 +1,9 @@
|
|||
-- Type: UNDO
|
||||
-- Name: add_default_value_to_text_in_received_emails
|
||||
-- Description: Add default value to the text field in received_emails table
|
||||
|
||||
BEGIN;
|
||||
|
||||
ALTER TABLE omnivore.received_emails ALTER COLUMN text DROP DEFAULT;
|
||||
|
||||
COMMIT;
|
||||
Loading…
Reference in a new issue