forked from apache/incubator-seata
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
add undo_log.sql and add database driver class config (apache#1323)
- Loading branch information
Showing
6 changed files
with
39 additions
and
5 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
-- the table to store seata xid data | ||
-- 0.7.0+ add context | ||
-- you must to init this sql for you business databese. the seata server not need it. | ||
-- 此脚本必须初始化在你当前的业务数据库中,用于AT 模式XID记录。与server端无关(注:业务数据库) | ||
-- 注意此处0.3.0+ 增加唯一索引 ux_undo_log | ||
drop table `undo_log`; | ||
CREATE TABLE `undo_log` ( | ||
`id` bigint(20) NOT NULL AUTO_INCREMENT, | ||
`branch_id` bigint(20) NOT NULL, | ||
`xid` varchar(100) NOT NULL, | ||
`context` varchar(128) NOT NULL, | ||
`rollback_info` longblob NOT NULL, | ||
`log_status` int(11) NOT NULL, | ||
`log_created` datetime NOT NULL, | ||
`log_modified` datetime NOT NULL, | ||
`ext` varchar(100) DEFAULT NULL, | ||
PRIMARY KEY (`id`), | ||
UNIQUE KEY `ux_undo_log` (`xid`,`branch_id`) | ||
) ENGINE=InnoDB AUTO_INCREMENT=1 DEFAULT CHARSET=utf8; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters