mirror of
https://github.com/wavetermdev/waveterm.git
synced 2025-01-20 21:21:44 +01:00
21 lines
607 B
MySQL
21 lines
607 B
MySQL
|
CREATE TABLE schema_migrations (version uint64,dirty bool);
|
||
|
CREATE UNIQUE INDEX version_unique ON schema_migrations (version);
|
||
|
CREATE TABLE block_file (
|
||
|
blockid varchar(36) NOT NULL,
|
||
|
name varchar(200) NOT NULL,
|
||
|
maxsize bigint NOT NULL,
|
||
|
circular boolean NOT NULL,
|
||
|
size bigint NOT NULL,
|
||
|
createdts bigint NOT NULL,
|
||
|
modts bigint NOT NULL,
|
||
|
meta json NOT NULL,
|
||
|
PRIMARY KEY (blockid, name)
|
||
|
);
|
||
|
|
||
|
CREATE TABLE block_data (
|
||
|
blockid varchar(36) NOT NULL,
|
||
|
name varchar(200) NOT NULL,
|
||
|
partidx int NOT NULL,
|
||
|
data blob NOT NULL,
|
||
|
PRIMARY KEY(blockid, name, partidx)
|
||
|
);
|