zed/crates/collab/migrations/20210916123647_add_nonce_to_channel_messages.sql

5 lines
169 B
MySQL
Raw Normal View History

ALTER TABLE "channel_messages"
ADD "nonce" UUID NOT NULL DEFAULT gen_random_uuid();
CREATE UNIQUE INDEX "index_channel_messages_nonce" ON "channel_messages" ("nonce");