1 parent
1b12899ff6
commit
a3ac2a68fe
33 files changed
+5422
-28
No files matched your search
@@ -0,0 +1,15 @@
|
||||
ALTER TABLE {{p}}calendar_events
|
||||
ADD COLUMN dav_name VARCHAR(255),
|
||||
ADD COLUMN dav_data LONGTEXT;
|
||||
|
||||
ALTER TABLE {{p}}contacts
|
||||
ADD COLUMN dav_name VARCHAR(255),
|
||||
ADD COLUMN dav_data LONGTEXT;
|
||||
|
||||
DROP INDEX {{p}}idx_contacts_email ON {{p}}contacts;
|
||||
|
||||
CREATE INDEX {{p}}idx_contacts_email ON {{p}}contacts (email);
|
||||
|
||||
CREATE INDEX {{p}}idx_calendar_events_dav_name ON {{p}}calendar_events (dav_name);
|
||||
|
||||
CREATE INDEX {{p}}idx_contacts_dav_name ON {{p}}contacts (dav_name);
|
||||
@@ -1,7 +1,7 @@
|
||||
-- RustBox 0.2.0 MySQL schema.
|
||||
-- One physical database contains global sessions plus isolated per-account tables.
|
||||
-- Application tables are materialized by replacing {{p}} with a collision-checked prefix.
|
||||
-- Squashed compatibility baseline: V052; current schema: V054.
|
||||
-- Squashed compatibility baseline: V052; current schema: V055.
|
||||
|
||||
-- RUSTBOX:GLOBAL-BEGIN
|
||||
CREATE TABLE IF NOT EXISTS rustbox_accounts (
|
||||
@@ -59,6 +59,8 @@ CREATE TABLE {{p}}calendar_events (
|
||||
color TEXT,
|
||||
reminder_minutes BIGINT,
|
||||
reminder_extra_minutes BIGINT,
|
||||
dav_name VARCHAR(255),
|
||||
dav_data LONGTEXT,
|
||||
created_at VARCHAR(64) NOT NULL DEFAULT (CAST(CURRENT_TIMESTAMP AS CHAR)),
|
||||
updated_at VARCHAR(64) NOT NULL DEFAULT (CAST(CURRENT_TIMESTAMP AS CHAR))
|
||||
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;
|
||||
@@ -122,7 +124,9 @@ CREATE TABLE {{p}}contacts (
|
||||
birthday TEXT NOT NULL DEFAULT (''),
|
||||
emails_json LONGTEXT NOT NULL DEFAULT ('[]'),
|
||||
phones_json LONGTEXT NOT NULL DEFAULT ('[]'),
|
||||
addresses_json LONGTEXT NOT NULL DEFAULT ('[]')
|
||||
addresses_json LONGTEXT NOT NULL DEFAULT ('[]'),
|
||||
dav_name VARCHAR(255),
|
||||
dav_data LONGTEXT
|
||||
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;
|
||||
|
||||
CREATE TABLE {{p}}display_preferences (
|
||||
@@ -461,9 +465,11 @@ ALTER TABLE {{p}}messages ADD CONSTRAINT {{p}}fk_messages_0 FOREIGN KEY (folder)
|
||||
|
||||
CREATE INDEX {{p}}idx_calendar_events_source_uid ON {{p}}calendar_events (source_uid);
|
||||
CREATE INDEX {{p}}idx_calendar_events_time ON {{p}}calendar_events (start_time, end_time);
|
||||
CREATE INDEX {{p}}idx_calendar_events_dav_name ON {{p}}calendar_events (dav_name);
|
||||
CREATE INDEX {{p}}idx_cgm_contact_id ON {{p}}contact_group_members (contact_id);
|
||||
CREATE INDEX {{p}}idx_contacts_contact_count ON {{p}}contacts (contact_count DESC);
|
||||
CREATE UNIQUE INDEX {{p}}idx_contacts_email ON {{p}}contacts (email);
|
||||
CREATE INDEX {{p}}idx_contacts_email ON {{p}}contacts (email);
|
||||
CREATE INDEX {{p}}idx_contacts_dav_name ON {{p}}contacts (dav_name);
|
||||
CREATE INDEX {{p}}idx_contacts_last_contacted ON {{p}}contacts (last_contacted DESC);
|
||||
CREATE INDEX {{p}}idx_contacts_name ON {{p}}contacts (name);
|
||||
CREATE INDEX {{p}}idx_known_addresses_name ON {{p}}known_addresses (name);
|
||||
|
||||
Reference in new issue
Block a user