Full Mattermost server source with integrated Community Enterprise features. Includes vendor directory for offline/air-gapped builds. Structure: - enterprise-impl/: Enterprise feature implementations - enterprise-community/: Init files that register implementations - enterprise/: Bridge imports (community_imports.go) - vendor/: All dependencies for offline builds Build (online): go build ./cmd/mattermost Build (offline/air-gapped): go build -mod=vendor ./cmd/mattermost 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
34 lines
1.3 KiB
SQL
34 lines
1.3 KiB
SQL
CREATE TABLE IF NOT EXISTS fileinfo (
|
|
id VARCHAR(26) PRIMARY KEY,
|
|
creatorid VARCHAR(26),
|
|
postid VARCHAR(26),
|
|
createat bigint,
|
|
updateat bigint,
|
|
deleteat bigint,
|
|
path VARCHAR(512),
|
|
thumbnailpath VARCHAR(512),
|
|
previewpath VARCHAR(512),
|
|
name VARCHAR(256),
|
|
extension VARCHAR(64),
|
|
size bigint,
|
|
mimetype VARCHAR(256),
|
|
width integer,
|
|
height integer,
|
|
haspreviewimage boolean
|
|
);
|
|
|
|
CREATE INDEX IF NOT EXISTS idx_fileinfo_update_at ON fileinfo (updateat);
|
|
CREATE INDEX IF NOT EXISTS idx_fileinfo_create_at ON fileinfo (createat);
|
|
CREATE INDEX IF NOT EXISTS idx_fileinfo_delete_at ON fileinfo (deleteat);
|
|
CREATE INDEX IF NOT EXISTS idx_fileinfo_postid_at ON fileinfo (postid);
|
|
CREATE INDEX IF NOT EXISTS idx_fileinfo_extension_at ON fileinfo (extension);
|
|
CREATE INDEX IF NOT EXISTS idx_fileinfo_name_txt ON fileinfo USING gin(to_tsvector('english', name));
|
|
|
|
ALTER TABLE fileinfo ADD COLUMN IF NOT EXISTS minipreview bytea;
|
|
ALTER TABLE fileinfo ADD COLUMN IF NOT EXISTS content text;
|
|
|
|
CREATE INDEX IF NOT EXISTS idx_fileinfo_content_txt ON fileinfo USING gin(to_tsvector('english', content));
|
|
CREATE INDEX IF NOT EXISTS idx_fileinfo_name_splitted ON fileinfo USING gin (to_tsvector('english'::regconfig, translate((name)::text, '.,-'::text, ' '::text)));
|
|
|
|
ALTER TABLE fileinfo ADD COLUMN IF NOT EXISTS remoteid varchar(26);
|