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
|
|
|
|
|
|
|
CREATE TABLE _vt.vt_blp_recovery (
|
|
|
|
uid int(10) unsigned NOT NULL,
|
|
|
|
host varchar(32) NOT NULL,
|
|
|
|
port int NOT NULL,
|
|
|
|
master_filename varchar(255) NOT NULL,
|
|
|
|
master_position bigint(20) unsigned NOT NULL,
|
|
|
|
relay_filename varchar(255) default NULL,
|
|
|
|
relay_position bigint(20) unsigned default 0,
|
|
|
|
keyrange_start varchar(32) NOT NULL,
|
|
|
|
keyrange_end varchar(32) NOT NULL,
|
|
|
|
txn_timestamp int(10) unsigned NOT NULL,
|
|
|
|
time_updated int(10) unsigned NOT NULL,
|
|
|
|
PRIMARY KEY (uid)
|
|
|
|
);
|