mirror of
https://github.com/wavetermdev/waveterm.git
synced 2024-12-22 16:48:23 +01:00
new bookmark tables
This commit is contained in:
parent
d0b03c359a
commit
37ffcd03c8
3
db/migrations/000004_bookmarks.down.sql
Normal file
3
db/migrations/000004_bookmarks.down.sql
Normal file
@ -0,0 +1,3 @@
|
||||
DROP TABLE bookmark;
|
||||
DROP TABLE bookmark_order;
|
||||
DROP TABLE bookmark_cmd;
|
21
db/migrations/000004_bookmarks.up.sql
Normal file
21
db/migrations/000004_bookmarks.up.sql
Normal file
@ -0,0 +1,21 @@
|
||||
CREATE TABLE bookmark (
|
||||
bookmarkid varchar(36) PRIMARY KEY,
|
||||
createdts bigint NOT NULL,
|
||||
cmdstr text NOT NULL,
|
||||
alias varchar(50) NOT NULL,
|
||||
tags json NOT NULL,
|
||||
description text NOT NULL
|
||||
);
|
||||
|
||||
CREATE TABLE bookmark_order (
|
||||
tag varchar(50) NOT NULL,
|
||||
bookmarkid varchar(36) NOT NULL,
|
||||
orderidx int NOT NULL,
|
||||
PRIMARY KEY (tag, bookmarkid)
|
||||
);
|
||||
|
||||
CREATE TABLE bookmark_cmd (
|
||||
bookmarkid varchar(36) NOT NULL,
|
||||
cmdid varchar(36) NOT NULL,
|
||||
PRIMARY KEY (bookmarkid, cmdid)
|
||||
);
|
@ -97,7 +97,7 @@ CREATE TABLE line (
|
||||
ephemeral boolean NOT NULL,
|
||||
contentheight int NOT NULL,
|
||||
star int NOT NULL,
|
||||
archived boolean NOT NULL,
|
||||
archived boolean NOT NULL, renderer varchar(50) NOT NULL DEFAULT '',
|
||||
PRIMARY KEY (sessionid, windowid, lineid)
|
||||
);
|
||||
CREATE TABLE remote (
|
||||
@ -165,3 +165,22 @@ CREATE TABLE activity (
|
||||
clientversion varchar(20) NOT NULL,
|
||||
clientarch varchar(20) NOT NULL
|
||||
);
|
||||
CREATE TABLE bookmark (
|
||||
bookmarkid varchar(36) PRIMARY KEY,
|
||||
createdts bigint NOT NULL,
|
||||
cmdstr text NOT NULL,
|
||||
alias varchar(50) NOT NULL,
|
||||
tags json NOT NULL,
|
||||
description text NOT NULL
|
||||
);
|
||||
CREATE TABLE bookmark_order (
|
||||
tag varchar(50) NOT NULL,
|
||||
bookmarkid varchar(36) NOT NULL,
|
||||
orderidx int NOT NULL,
|
||||
PRIMARY KEY (tag, bookmarkid)
|
||||
);
|
||||
CREATE TABLE bookmark_cmd (
|
||||
bookmarkid varchar(36) NOT NULL,
|
||||
cmdid varchar(36) NOT NULL,
|
||||
PRIMARY KEY (bookmarkid, cmdid)
|
||||
);
|
||||
|
Loading…
Reference in New Issue
Block a user