WillemJiang commented on a change in pull request #446: fix mysql master_lock table schema wrong default value URL: https://github.com/apache/servicecomb-pack/pull/446#discussion_r271601872
########## File path: alpha/alpha-server/src/main/resources/schema-mysql.sql ########## @@ -116,8 +116,8 @@ CREATE TABLE IF NOT EXISTS tcc_tx_event ( CREATE TABLE IF NOT EXISTS master_lock ( serviceName varchar(36) not NULL, - expireTime timestamp(3) not NULL, - lockedTime timestamp(3) not NULL, + expireTime datetime NOT NULL DEFAULT CURRENT_TIMESTAMP, Review comment: If there is no side effect of using the CURRENT_TIMESTAMP ad the default value. We could just accept the PR. ---------------------------------------------------------------- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. For queries about this service, please contact Infrastructure at: [email protected] With regards, Apache Git Services
