TarsCloud / TarsFramework

Tars Basic service framework
BSD 3-Clause "New" or "Revised" License
198 stars 143 forks source link

db_tars.sql execution fails #116

Closed Kino1994 closed 2 years ago

Kino1994 commented 2 years ago

Hi,

The script db_tars.sql execution fails because "registry Id" field has not numeric default value (line 331):

CREATE TABLE t_base_image ( id int(11) NOT NULL AUTO_INCREMENT, image varchar(255) NOT NULL DEFAULT '', registryId int(11) NOT NULL DEFAULT '', remark varchar(255) NOT NULL DEFAULT '', create_time datetime DEFAULT NULL, update_time datetime DEFAULT NULL, PRIMARY KEY (id) ) ENGINE=InnoDB DEFAULT CHARSET=utf8;

Chnaged to: registryId int(11) NOT NULL DEFAULT '0', and works.

Other option I didn't tried is to remove default value: registryId int(11) NOT NULL,

Kino1994 commented 2 years ago

I see is fixed with f9325915aab95b58d636647d14e981f409457015. So I close the issue.