vitess-gh/data/bootstrap/_vt_schema.sql

25 строки
728 B
MySQL
Исходник Обычный вид История

2012-07-24 12:17:54 +04:00
CREATE DATABASE _vt;
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),
new_addr varchar(255),
new_position varchar(255),
wait_position varchar(255),
index (last_position));
CREATE TABLE _vt.blp_checkpoint (
keyrange_start varchar(32) NOT NULL,
keyrange_end varchar(32) NOT NULL,
addr varchar(255) NOT NULL,
master_filename varchar(255) NOT NULL,
master_position bigint(20) unsigned NOT NULL,
group_id varchar(255) default NULL,
txn_timestamp int(10) unsigned NOT NULL,
time_updated int(10) unsigned NOT NULL,
PRIMARY KEY (keyrange_start, keyrange_end));