diff --git a/xmtp_mls/migrations/2024-11-13-145830_add_conversation_type_remove_purpose/down.sql b/xmtp_mls/migrations/2024-11-13-145830_add_conversation_type_remove_purpose/down.sql index 5649cb2bb..57d1353f2 100644 --- a/xmtp_mls/migrations/2024-11-13-145830_add_conversation_type_remove_purpose/down.sql +++ b/xmtp_mls/migrations/2024-11-13-145830_add_conversation_type_remove_purpose/down.sql @@ -1,5 +1,5 @@ ALTER TABLE groups -ADD COLUMN purpose INTEGER NOT NULL; +ADD COLUMN purpose INTEGER NOT NULL DEFAULT 1; UPDATE groups SET purpose = CASE diff --git a/xmtp_mls/migrations/2024-11-13-145830_add_conversation_type_remove_purpose/up.sql b/xmtp_mls/migrations/2024-11-13-145830_add_conversation_type_remove_purpose/up.sql index 9f0e21227..f7fd279d4 100644 --- a/xmtp_mls/migrations/2024-11-13-145830_add_conversation_type_remove_purpose/up.sql +++ b/xmtp_mls/migrations/2024-11-13-145830_add_conversation_type_remove_purpose/up.sql @@ -1,5 +1,5 @@ ALTER TABLE groups -ADD COLUMN conversation_type INTEGER NOT NULL; +ADD COLUMN conversation_type INTEGER NOT NULL DEFAULT 1; UPDATE groups SET conversation_type = CASE