Commit 1c7f7ef7b7a080f06f6bd2ddf4670394edfc9245
1 parent
b260ef7a
优化mysql建库脚本
Showing
1 changed file
with
4 additions
and
3 deletions
sql/mysql.sql
| ... | ... | @@ -82,10 +82,10 @@ create table gb_stream |
| 82 | 82 | |
| 83 | 83 | create table parent_platform |
| 84 | 84 | ( |
| 85 | + id int auto_increment, | |
| 85 | 86 | enable int null, |
| 86 | 87 | name varchar(50) null, |
| 87 | - serverGBId varchar(50) not null | |
| 88 | - primary key, | |
| 88 | + serverGBId varchar(50) not null, | |
| 89 | 89 | serverGBDomain varchar(50) null, |
| 90 | 90 | serverIP varchar(50) null, |
| 91 | 91 | serverPort int null, |
| ... | ... | @@ -100,7 +100,8 @@ create table parent_platform |
| 100 | 100 | characterSet varchar(50) null, |
| 101 | 101 | ptz int null, |
| 102 | 102 | rtcp int null, |
| 103 | - status bit(1) null | |
| 103 | + status bit(1) null, | |
| 104 | + primary key (id, serverGBId) | |
| 104 | 105 | ); |
| 105 | 106 | |
| 106 | 107 | create table platform_gb_channel | ... | ... |