|
|
@ -11,15 +11,15 @@ CREATE TABLE if not EXISTS dtm.trans_global ( |
|
|
status varchar(45) NOT NULL, |
|
|
status varchar(45) NOT NULL, |
|
|
query_prepared varchar(128) NOT NULL, |
|
|
query_prepared varchar(128) NOT NULL, |
|
|
protocol varchar(45) not null, |
|
|
protocol varchar(45) not null, |
|
|
create_time timestamp(0) DEFAULT NULL, |
|
|
create_time timestamp(0) with time zone DEFAULT NULL, |
|
|
update_time timestamp(0) DEFAULT NULL, |
|
|
update_time timestamp(0) with time zone DEFAULT NULL, |
|
|
commit_time timestamp(0) DEFAULT NULL, |
|
|
commit_time timestamp(0) with time zone DEFAULT NULL, |
|
|
finish_time timestamp(0) DEFAULT NULL, |
|
|
finish_time timestamp(0) with time zone DEFAULT NULL, |
|
|
rollback_time timestamp(0) DEFAULT NULL, |
|
|
rollback_time timestamp(0) with time zone DEFAULT NULL, |
|
|
options varchar(256) DEFAULT '', |
|
|
options varchar(256) DEFAULT '', |
|
|
custom_data varchar(256) DEFAULT '', |
|
|
custom_data varchar(256) DEFAULT '', |
|
|
next_cron_interval int default null, |
|
|
next_cron_interval int default null, |
|
|
next_cron_time timestamp(0) default null, |
|
|
next_cron_time timestamp(0) with time zone default null, |
|
|
owner varchar(128) not null default '', |
|
|
owner varchar(128) not null default '', |
|
|
PRIMARY KEY (id), |
|
|
PRIMARY KEY (id), |
|
|
CONSTRAINT gid UNIQUE (gid) |
|
|
CONSTRAINT gid UNIQUE (gid) |
|
|
@ -34,14 +34,14 @@ CREATE TABLE IF NOT EXISTS dtm.trans_branch_op ( |
|
|
gid varchar(128) NOT NULL, |
|
|
gid varchar(128) NOT NULL, |
|
|
url varchar(128) NOT NULL, |
|
|
url varchar(128) NOT NULL, |
|
|
data TEXT, |
|
|
data TEXT, |
|
|
bin_data BLOB, |
|
|
bin_data bytea, |
|
|
branch_id VARCHAR(128) NOT NULL, |
|
|
branch_id VARCHAR(128) NOT NULL, |
|
|
op varchar(45) NOT NULL, |
|
|
op varchar(45) NOT NULL, |
|
|
status varchar(45) NOT NULL, |
|
|
status varchar(45) NOT NULL, |
|
|
finish_time timestamp(0) DEFAULT NULL, |
|
|
finish_time timestamp(0) with time zone DEFAULT NULL, |
|
|
rollback_time timestamp(0) DEFAULT NULL, |
|
|
rollback_time timestamp(0) with time zone DEFAULT NULL, |
|
|
create_time timestamp(0) DEFAULT NULL, |
|
|
create_time timestamp(0) with time zone DEFAULT NULL, |
|
|
update_time timestamp(0) DEFAULT NULL, |
|
|
update_time timestamp(0) with time zone DEFAULT NULL, |
|
|
PRIMARY KEY (id), |
|
|
PRIMARY KEY (id), |
|
|
CONSTRAINT gid_uniq UNIQUE (gid, branch_id, op) |
|
|
CONSTRAINT gid_branch_uniq UNIQUE (gid, branch_id, op) |
|
|
); |
|
|
); |