[skip e2e] Update mysql yaml (#18698)

Signed-off-by: Binbin Lv <binbin.lv@zilliz.com>

Signed-off-by: Binbin Lv <binbin.lv@zilliz.com>
This commit is contained in:
binbin 2022-08-17 22:12:59 +08:00 committed by GitHub
parent c6d9d0df5e
commit f736ab1e79
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -18,7 +18,7 @@ mysql:
id BIGINT NOT NULL AUTO_INCREMENT, id BIGINT NOT NULL AUTO_INCREMENT,
tenant_id VARCHAR(128) DEFAULT NULL, tenant_id VARCHAR(128) DEFAULT NULL,
collection_id BIGINT NOT NULL, collection_id BIGINT NOT NULL,
collection_name VARCHAR(128), collection_name VARCHAR(256),
description VARCHAR(2048) DEFAULT NULL, description VARCHAR(2048) DEFAULT NULL,
auto_id BOOL DEFAULT FALSE, auto_id BOOL DEFAULT FALSE,
shards_num INT, shards_num INT,
@ -29,8 +29,7 @@ mysql:
created_at TIMESTAMP NOT NULL DEFAULT CURRENT_TIMESTAMP, created_at TIMESTAMP NOT NULL DEFAULT CURRENT_TIMESTAMP,
updated_at TIMESTAMP NOT NULL DEFAULT CURRENT_TIMESTAMP on update current_timestamp, updated_at TIMESTAMP NOT NULL DEFAULT CURRENT_TIMESTAMP on update current_timestamp,
PRIMARY KEY (id), PRIMARY KEY (id),
UNIQUE (tenant_id, collection_id, ts), UNIQUE KEY uk_tenant_id_collection_id_ts (tenant_id, collection_id, ts)
INDEX idx_collection_id_ts (collection_id, ts)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4; ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4;
-- collection aliases -- collection aliases
@ -44,9 +43,8 @@ mysql:
created_at TIMESTAMP NOT NULL DEFAULT CURRENT_TIMESTAMP, created_at TIMESTAMP NOT NULL DEFAULT CURRENT_TIMESTAMP,
updated_at TIMESTAMP NOT NULL DEFAULT CURRENT_TIMESTAMP on update current_timestamp, updated_at TIMESTAMP NOT NULL DEFAULT CURRENT_TIMESTAMP on update current_timestamp,
PRIMARY KEY (id), PRIMARY KEY (id),
UNIQUE (tenant_id, collection_alias, ts), UNIQUE KEY uk_tenant_id_collection_alias_ts (tenant_id, collection_alias, ts),
INDEX idx_tenant_id_collection_id_ts (tenant_id, collection_id, ts), INDEX idx_tenant_id_collection_id_ts (tenant_id, collection_id, ts)
INDEX idx_collection_id_ts (collection_id, ts)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4; ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4;
-- channels -- channels
@ -62,9 +60,8 @@ mysql:
created_at TIMESTAMP NOT NULL DEFAULT CURRENT_TIMESTAMP, created_at TIMESTAMP NOT NULL DEFAULT CURRENT_TIMESTAMP,
updated_at TIMESTAMP NOT NULL DEFAULT CURRENT_TIMESTAMP on update current_timestamp, updated_at TIMESTAMP NOT NULL DEFAULT CURRENT_TIMESTAMP on update current_timestamp,
PRIMARY KEY (id), PRIMARY KEY (id),
UNIQUE (tenant_id, collection_id, virtual_channel_name, ts), UNIQUE KEY uk_tenant_id_collection_id_virtual_channel_name_ts (tenant_id, collection_id, virtual_channel_name, ts),
INDEX idx_tenant_id_collection_id_ts (tenant_id, collection_id, ts), INDEX idx_tenant_id_collection_id_ts (tenant_id, collection_id, ts)
INDEX idx_collection_id_ts (collection_id, ts)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4; ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4;
-- fields -- fields
@ -72,7 +69,7 @@ mysql:
id BIGINT NOT NULL AUTO_INCREMENT, id BIGINT NOT NULL AUTO_INCREMENT,
tenant_id VARCHAR(128) DEFAULT NULL, tenant_id VARCHAR(128) DEFAULT NULL,
field_id BIGINT NOT NULL, field_id BIGINT NOT NULL,
field_name VARCHAR(128) NOT NULL, field_name VARCHAR(256) NOT NULL,
is_primary_key BOOL NOT NULL, is_primary_key BOOL NOT NULL,
description VARCHAR(2048) DEFAULT NULL, description VARCHAR(2048) DEFAULT NULL,
data_type INT UNSIGNED NOT NULL, data_type INT UNSIGNED NOT NULL,
@ -85,9 +82,8 @@ mysql:
created_at TIMESTAMP NOT NULL DEFAULT CURRENT_TIMESTAMP, created_at TIMESTAMP NOT NULL DEFAULT CURRENT_TIMESTAMP,
updated_at TIMESTAMP NOT NULL DEFAULT CURRENT_TIMESTAMP on update current_timestamp, updated_at TIMESTAMP NOT NULL DEFAULT CURRENT_TIMESTAMP on update current_timestamp,
PRIMARY KEY (id), PRIMARY KEY (id),
UNIQUE (tenant_id, collection_id, field_name, ts), UNIQUE KEY uk_tenant_id_collection_id_field_name_ts (tenant_id, collection_id, field_name, ts),
INDEX idx_tenant_id_collection_id_field_id_ts (tenant_id, collection_id, field_id, ts), INDEX idx_tenant_id_collection_id_field_id_ts (tenant_id, collection_id, field_id, ts)
INDEX idx_collection_id_field_id_ts (collection_id, field_id, ts)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4; ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4;
-- partitions -- partitions
@ -95,7 +91,7 @@ mysql:
id BIGINT NOT NULL AUTO_INCREMENT, id BIGINT NOT NULL AUTO_INCREMENT,
tenant_id VARCHAR(128) DEFAULT NULL, tenant_id VARCHAR(128) DEFAULT NULL,
partition_id BIGINT NOT NULL, partition_id BIGINT NOT NULL,
partition_name VARCHAR(128), partition_name VARCHAR(256),
partition_created_timestamp bigint unsigned, partition_created_timestamp bigint unsigned,
collection_id BIGINT NOT NULL, collection_id BIGINT NOT NULL,
ts BIGINT UNSIGNED DEFAULT 0, ts BIGINT UNSIGNED DEFAULT 0,
@ -103,9 +99,8 @@ mysql:
created_at TIMESTAMP NOT NULL DEFAULT CURRENT_TIMESTAMP, created_at TIMESTAMP NOT NULL DEFAULT CURRENT_TIMESTAMP,
updated_at TIMESTAMP NOT NULL DEFAULT CURRENT_TIMESTAMP on update current_timestamp, updated_at TIMESTAMP NOT NULL DEFAULT CURRENT_TIMESTAMP on update current_timestamp,
PRIMARY KEY (id), PRIMARY KEY (id),
UNIQUE (tenant_id, collection_id, partition_name, ts), UNIQUE KEY uk_tenant_id_collection_id_partition_name_ts (tenant_id, collection_id, partition_name, ts),
INDEX idx_tenant_id_collection_id_partition_id_ts (tenant_id, collection_id, partition_id, ts), INDEX idx_tenant_id_collection_id_partition_id_ts (tenant_id, collection_id, partition_id, ts)
INDEX idx_collection_id_partition_id_ts (collection_id, partition_id, ts)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4; ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4;
-- indexes -- indexes
@ -115,16 +110,14 @@ mysql:
field_id BIGINT NOT NULL, field_id BIGINT NOT NULL,
collection_id BIGINT NOT NULL, collection_id BIGINT NOT NULL,
index_id BIGINT NOT NULL, index_id BIGINT NOT NULL,
index_name VARCHAR(128), index_name VARCHAR(256),
index_params VARCHAR(2048), index_params VARCHAR(2048),
create_time bigint unsigned, create_time bigint unsigned,
is_deleted BOOL DEFAULT FALSE, is_deleted BOOL DEFAULT FALSE,
created_at TIMESTAMP NOT NULL DEFAULT CURRENT_TIMESTAMP, created_at TIMESTAMP NOT NULL DEFAULT CURRENT_TIMESTAMP,
updated_at TIMESTAMP NOT NULL DEFAULT CURRENT_TIMESTAMP on update current_timestamp, updated_at TIMESTAMP NOT NULL DEFAULT CURRENT_TIMESTAMP on update current_timestamp,
PRIMARY KEY (id), PRIMARY KEY (id),
UNIQUE (tenant_id, collection_id, index_name), INDEX idx_tenant_id_collection_id_index_id (tenant_id, collection_id, index_id)
INDEX idx_tenant_id_collection_id_index_id (tenant_id, collection_id, index_id),
INDEX idx_collection_id_index_id (collection_id, index_id)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4; ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4;
-- index file paths -- index file paths
@ -137,8 +130,7 @@ mysql:
created_at TIMESTAMP NOT NULL DEFAULT CURRENT_TIMESTAMP, created_at TIMESTAMP NOT NULL DEFAULT CURRENT_TIMESTAMP,
updated_at TIMESTAMP NOT NULL DEFAULT CURRENT_TIMESTAMP on update current_timestamp, updated_at TIMESTAMP NOT NULL DEFAULT CURRENT_TIMESTAMP on update current_timestamp,
PRIMARY KEY (id), PRIMARY KEY (id),
INDEX idx_tenant_id_index_build_id (tenant_id, index_build_id), INDEX idx_tenant_id_index_build_id (tenant_id, index_build_id)
INDEX idx_index_build_id (index_build_id)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4; ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4;
-- segments -- segments
@ -162,8 +154,7 @@ mysql:
created_at TIMESTAMP NOT NULL DEFAULT CURRENT_TIMESTAMP, created_at TIMESTAMP NOT NULL DEFAULT CURRENT_TIMESTAMP,
updated_at TIMESTAMP NOT NULL DEFAULT CURRENT_TIMESTAMP on update current_timestamp, updated_at TIMESTAMP NOT NULL DEFAULT CURRENT_TIMESTAMP on update current_timestamp,
PRIMARY KEY (id), PRIMARY KEY (id),
INDEX idx_tenant_id_collection_id_segment_id (tenant_id, collection_id, segment_id), INDEX idx_tenant_id_collection_id_segment_id (tenant_id, collection_id, segment_id)
INDEX idx_collection_id_segment_id (collection_id, segment_id)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4; ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4;
-- segment indexes -- segment indexes
@ -186,9 +177,8 @@ mysql:
created_at TIMESTAMP NOT NULL DEFAULT CURRENT_TIMESTAMP, created_at TIMESTAMP NOT NULL DEFAULT CURRENT_TIMESTAMP,
updated_at TIMESTAMP NOT NULL DEFAULT CURRENT_TIMESTAMP on update current_timestamp, updated_at TIMESTAMP NOT NULL DEFAULT CURRENT_TIMESTAMP on update current_timestamp,
PRIMARY KEY (id), PRIMARY KEY (id),
UNIQUE (tenant_id, segment_id, index_id), UNIQUE KEY uk_tenant_id_segment_id_index_id (tenant_id, segment_id, index_id),
INDEX idx_tenant_id_collection_id_segment_id_index_id (tenant_id, collection_id, segment_id, index_id), INDEX idx_tenant_id_collection_id_segment_id_index_id (tenant_id, collection_id, segment_id, index_id)
INDEX idx_collection_id_segment_id_index_id (collection_id, segment_id, index_id)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4; ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4;
-- binlog files info -- binlog files info
@ -208,8 +198,7 @@ mysql:
created_at TIMESTAMP NOT NULL DEFAULT CURRENT_TIMESTAMP, created_at TIMESTAMP NOT NULL DEFAULT CURRENT_TIMESTAMP,
updated_at TIMESTAMP NOT NULL DEFAULT CURRENT_TIMESTAMP on update current_timestamp, updated_at TIMESTAMP NOT NULL DEFAULT CURRENT_TIMESTAMP on update current_timestamp,
PRIMARY KEY (id), PRIMARY KEY (id),
INDEX idx_tenant_id_segment_id_log_type (tenant_id, segment_id, log_type), INDEX idx_tenant_id_segment_id_log_type (tenant_id, segment_id, log_type)
INDEX idx_segment_id_log_type (segment_id, log_type)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4; ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4;
-- users -- users
@ -223,7 +212,6 @@ mysql:
created_at TIMESTAMP NOT NULL DEFAULT CURRENT_TIMESTAMP, created_at TIMESTAMP NOT NULL DEFAULT CURRENT_TIMESTAMP,
updated_at TIMESTAMP NOT NULL DEFAULT CURRENT_TIMESTAMP on update current_timestamp, updated_at TIMESTAMP NOT NULL DEFAULT CURRENT_TIMESTAMP on update current_timestamp,
PRIMARY KEY (id), PRIMARY KEY (id),
INDEX idx_tenant_id_username (tenant_id, username), INDEX idx_tenant_id_username (tenant_id, username)
INDEX idx_username (username)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4; ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4;