[
https://issues.apache.org/jira/browse/SCB-856?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16611834#comment-16611834
]
ASF GitHub Bot commented on SCB-856:
------------------------------------
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:
[email protected]
> Implement reaction of the event in Alpha Server
> ------------------------------------------------
>
> Key: SCB-856
> URL: https://issues.apache.org/jira/browse/SCB-856
> Project: Apache ServiceComb
> Issue Type: Sub-task
> Components: Saga
> Reporter: Willem Jiang
> Assignee: cherrylzhao
> Priority: Major
> Fix For: saga-0.3.0
>
>
> Alpha Server create a tracker when the TransactionStartEvent is received,
> and record the register of other participate once the participate event is
> received.
> When AlphaServer received the TransactionEndEvent, it sends the
> CoordinateCommand to the participant client with cancel or confirmation
> message type.
--
This message was sent by Atlassian JIRA
(v7.6.3#76005)