This is an automated email from the ASF dual-hosted git repository. ningjiang pushed a commit to branch master in repository https://gitbox.apache.org/repos/asf/incubator-servicecomb-saga.git
The following commit(s) were added to refs/heads/master by this push: new 0bc45c9 SCB-545 update the length of field serviceName from varchar(16) to varchar(36)(#182) (#184) 0bc45c9 is described below commit 0bc45c93a0a7623061bc659cb4412b169d4c2663 Author: wenj91 <1541683...@qq.com> AuthorDate: Sat May 5 07:50:02 2018 +0800 SCB-545 update the length of field serviceName from varchar(16) to varchar(36)(#182) (#184) SCB-545 (#182 )update the length of field serviceName from varchar(16) to varchar(36) --- alpha/alpha-server/src/main/resources/schema-mysql.sql | 6 +++--- alpha/alpha-server/src/main/resources/schema-postgresql.sql | 6 +++--- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/alpha/alpha-server/src/main/resources/schema-mysql.sql b/alpha/alpha-server/src/main/resources/schema-mysql.sql index 3806f6d..f0560cf 100644 --- a/alpha/alpha-server/src/main/resources/schema-mysql.sql +++ b/alpha/alpha-server/src/main/resources/schema-mysql.sql @@ -17,7 +17,7 @@ CREATE TABLE IF NOT EXISTS TxEvent ( surrogateId bigint NOT NULL AUTO_INCREMENT, - serviceName varchar(16) NOT NULL, + serviceName varchar(36) NOT NULL, instanceId varchar(36) NOT NULL, creationTime datetime NOT NULL DEFAULT CURRENT_TIMESTAMP, globalTxId varchar(36) NOT NULL, @@ -35,7 +35,7 @@ CREATE TABLE IF NOT EXISTS TxEvent ( CREATE TABLE IF NOT EXISTS Command ( surrogateId bigint NOT NULL AUTO_INCREMENT, eventId bigint NOT NULL UNIQUE, - serviceName varchar(16) NOT NULL, + serviceName varchar(36) NOT NULL, instanceId varchar(36) NOT NULL, globalTxId varchar(36) NOT NULL, localTxId varchar(36) NOT NULL, @@ -55,7 +55,7 @@ CREATE TABLE IF NOT EXISTS Command ( CREATE TABLE IF NOT EXISTS TxTimeout ( surrogateId bigint NOT NULL AUTO_INCREMENT, eventId bigint NOT NULL UNIQUE, - serviceName varchar(16) NOT NULL, + serviceName varchar(36) NOT NULL, instanceId varchar(36) NOT NULL, globalTxId varchar(36) NOT NULL, localTxId varchar(36) NOT NULL, diff --git a/alpha/alpha-server/src/main/resources/schema-postgresql.sql b/alpha/alpha-server/src/main/resources/schema-postgresql.sql index 4ecb1b4..b3f7702 100644 --- a/alpha/alpha-server/src/main/resources/schema-postgresql.sql +++ b/alpha/alpha-server/src/main/resources/schema-postgresql.sql @@ -17,7 +17,7 @@ CREATE TABLE IF NOT EXISTS TxEvent ( surrogateId BIGSERIAL PRIMARY KEY, - serviceName varchar(16) NOT NULL, + serviceName varchar(36) NOT NULL, instanceId varchar(36) NOT NULL, creationTime timestamp(6) NOT NULL DEFAULT CURRENT_DATE, globalTxId varchar(36) NOT NULL, @@ -37,7 +37,7 @@ CREATE INDEX IF NOT EXISTS saga_events_index ON TxEvent (surrogateId, globalTxId CREATE TABLE IF NOT EXISTS Command ( surrogateId BIGSERIAL PRIMARY KEY, eventId bigint NOT NULL UNIQUE, - serviceName varchar(16) NOT NULL, + serviceName varchar(36) NOT NULL, instanceId varchar(36) NOT NULL, globalTxId varchar(36) NOT NULL, localTxId varchar(36) NOT NULL, @@ -55,7 +55,7 @@ CREATE INDEX IF NOT EXISTS saga_commands_index ON Command (surrogateId, eventId, CREATE TABLE IF NOT EXISTS TxTimeout ( surrogateId BIGSERIAL PRIMARY KEY, eventId bigint NOT NULL UNIQUE, - serviceName varchar(16) NOT NULL, + serviceName varchar(36) NOT NULL, instanceId varchar(36) NOT NULL, globalTxId varchar(36) NOT NULL, localTxId varchar(36) NOT NULL, -- To stop receiving notification emails like this one, please contact ningji...@apache.org.