mirror of
https://github.com/aljazceru/cyphernode.git
synced 2026-01-28 16:54:31 +01:00
First pass on watchxpub
This commit is contained in:
18
proxy_docker/app/data/sqlmigrate20190130_0.1-0.2.sql
Normal file
18
proxy_docker/app/data/sqlmigrate20190130_0.1-0.2.sql
Normal file
@@ -0,0 +1,18 @@
|
||||
PRAGMA foreign_keys = ON;
|
||||
|
||||
CREATE TABLE watching_by_pub32 (
|
||||
id INTEGER PRIMARY KEY AUTOINCREMENT,
|
||||
pub32 TEXT UNIQUE,
|
||||
label TEXT UNIQUE,
|
||||
derivation_path TEXT,
|
||||
callback0conf TEXT,
|
||||
callback1conf TEXT,
|
||||
last_imported_n INTEGER,
|
||||
watching INTEGER DEFAULT FALSE,
|
||||
inserted_ts INTEGER DEFAULT CURRENT_TIMESTAMP
|
||||
);
|
||||
CREATE INDEX idx_watching_by_pub32_pub32 ON watching_by_pub32 (pub32);
|
||||
CREATE INDEX idx_watching_by_pub32_label ON watching_by_pub32 (label);
|
||||
|
||||
ALTER TABLE watching ADD COLUMN watching_by_pub32_id INTEGER REFERENCES watching_by_pub32;
|
||||
ALTER TABLE watching ADD COLUMN pub32_index INTEGER;
|
||||
Reference in New Issue
Block a user