2012-07-24 12:17:54 +04:00
|
|
|
CREATE DATABASE _vt;
|
2012-10-31 10:49:00 +04:00
|
|
|
|
|
|
|
CREATE TABLE _vt.replication_log (
|
|
|
|
time_created_ns bigint primary key,
|
|
|
|
note varchar(255));
|
|
|
|
|
|
|
|
CREATE TABLE _vt.reparent_log (
|
|
|
|
time_created_ns bigint primary key,
|
|
|
|
last_position varchar(255),
|
2012-11-07 13:08:01 +04:00
|
|
|
new_addr varchar(255),
|
2012-10-31 10:49:00 +04:00
|
|
|
new_position varchar(255),
|
2012-11-07 13:08:01 +04:00
|
|
|
wait_position varchar(255),
|
2012-10-31 10:49:00 +04:00
|
|
|
index (last_position));
|
2013-04-23 03:05:07 +04:00
|
|
|
|
2013-04-23 22:32:12 +04:00
|
|
|
CREATE TABLE _vt.blp_checkpoint (
|
2013-08-03 04:13:19 +04:00
|
|
|
keyrange_start varchar(32) NOT NULL,
|
|
|
|
keyrange_end varchar(32) NOT NULL,
|
2013-08-06 08:29:20 +04:00
|
|
|
addr varchar(255) NOT NULL,
|
2013-04-23 03:05:07 +04:00
|
|
|
master_filename varchar(255) NOT NULL,
|
|
|
|
master_position bigint(20) unsigned NOT NULL,
|
2013-08-02 00:44:38 +04:00
|
|
|
group_id varchar(255) default NULL,
|
2013-04-23 03:05:07 +04:00
|
|
|
txn_timestamp int(10) unsigned NOT NULL,
|
|
|
|
time_updated int(10) unsigned NOT NULL,
|
2013-08-03 04:13:19 +04:00
|
|
|
PRIMARY KEY (keyrange_start, keyrange_end));
|