You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@servicecomb.apache.org by GitBox <gi...@apache.org> on 2018/09/12 09:43:59 UTC
[GitHub] WillemJiang closed pull request #294: SCB-856 Revise TCC DDL for
postgresql.
WillemJiang closed pull request #294: SCB-856 Revise TCC DDL for postgresql.
URL: https://github.com/apache/incubator-servicecomb-saga/pull/294
This is a PR merged from a forked repository.
As GitHub hides the original diff on merge, it is displayed below for
the sake of provenance:
As this is a foreign pull request (from a fork), the diff is supplied
below (as it won't show otherwise due to GitHub magic):
diff --git a/alpha/alpha-server/src/main/resources/schema-postgresql.sql b/alpha/alpha-server/src/main/resources/schema-postgresql.sql
index 07c2b9f2..d55b7d8c 100644
--- a/alpha/alpha-server/src/main/resources/schema-postgresql.sql
+++ b/alpha/alpha-server/src/main/resources/schema-postgresql.sql
@@ -79,8 +79,8 @@ CREATE TABLE IF NOT EXISTS TccParticipateEvent (
confirmMethod varchar(256) NOT NULL,
cancelMethod varchar(256) NOT NULL,
status varchar(50) NOT NULL,
- creationTime datetime NOT NULL DEFAULT CURRENT_TIMESTAMP,
- lastModified datetime NOT NULL DEFAULT CURRENT_TIMESTAMP
+ creationTime timestamp(6) NOT NULL DEFAULT CURRENT_DATE,
+ lastModified timestamp(6) NOT NULL DEFAULT CURRENT_DATE
);
CREATE UNIQUE INDEX IF NOT EXISTS tcc_participate_event_index ON TccParticipateEvent (globalTxId, localTxId, parentTxId);
@@ -95,8 +95,8 @@ CREATE TABLE IF NOT EXISTS TccFinishedEvent (
confirmMethod varchar(256) NOT NULL,
cancelMethod varchar(256) NOT NULL,
status varchar(50) NOT NULL,
- creationTime datetime NOT NULL DEFAULT CURRENT_TIMESTAMP,
- lastModified datetime NOT NULL DEFAULT CURRENT_TIMESTAMP
+ creationTime timestamp(6) NOT NULL DEFAULT CURRENT_DATE,
+ lastModified timestamp(6) NOT NULL DEFAULT CURRENT_DATE
);
CREATE UNIQUE INDEX IF NOT EXISTS tcc_finished_event_index ON TccFinishedEvent (globalTxId, localTxId, parentTxId);
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
With regards,
Apache Git Services