mattermost/server/channels/db/migrations/postgres/000035_create_sharedchannelattachments.up.sql

9 lines
232 B
SQL

CREATE TABLE IF NOT EXISTS sharedchannelattachments (
id varchar(26) NOT NULL,
fileid varchar(26),
remoteid varchar(26),
createat bigint,
lastsyncat bigint,
PRIMARY KEY (id),
UNIQUE (fileid, remoteid)
);