diff --git a/数据库/2.7.3/初始化-mysql-2.7.3.sql b/数据库/2.7.3/初始化-mysql-2.7.3.sql index 9644a932..d572843d 100644 --- a/数据库/2.7.3/初始化-mysql-2.7.3.sql +++ b/数据库/2.7.3/初始化-mysql-2.7.3.sql @@ -152,11 +152,10 @@ create table wvp_device_channel constraint uk_wvp_device_channel_unique_device_channel unique (device_db_id, device_id), constraint uk_wvp_unique_channel unique (gb_device_id), constraint uk_wvp_unique_stream_push_id unique (stream_push_id), - constraint uk_wvp_unique_stream_proxy_id unique (stream_proxy_id), - index(device_db_id) + constraint uk_wvp_unique_stream_proxy_id unique (stream_proxy_id) ); - +create index uk_wvp_device_db_id on wvp_device_channel (device_db_id); create table wvp_media_server ( diff --git a/数据库/2.7.3/初始化-postgresql-kingbase-2.7.3.sql b/数据库/2.7.3/初始化-postgresql-kingbase-2.7.3.sql index 6fe4a67a..cb06d2ee 100644 --- a/数据库/2.7.3/初始化-postgresql-kingbase-2.7.3.sql +++ b/数据库/2.7.3/初始化-postgresql-kingbase-2.7.3.sql @@ -171,6 +171,7 @@ create table wvp_device_channel constraint uk_wvp_unique_stream_proxy_id unique (stream_proxy_id) ); +create index uk_wvp_device_db_id on wvp_device_channel (device_db_id); create table wvp_media_server