8d685217e4
* creates initial migration for psdb * add test mechanism to validate migration to every version * fix few small issues in versions.go and context.go
10 lines
753 B
SQL
10 lines
753 B
SQL
CREATE TABLE `ttl` (`id` BLOB UNIQUE, `created` INT(10), `expires` INT(10), `size` INT(10));
|
|
CREATE TABLE `bandwidth_agreements` (`satellite` BLOB, `agreement` BLOB, `signature` BLOB);
|
|
CREATE TABLE `bwusagetbl` (`size` INT(10), `daystartdate` INT(10), `dayenddate` INT(10));
|
|
CREATE INDEX idx_ttl_expires ON ttl (expires);
|
|
|
|
-- NEW DATA --
|
|
|
|
INSERT INTO ttl VALUES(1,2,3,4);
|
|
INSERT INTO bandwidth_agreements VALUES(X'6d6967726174696f6effffffffffffffffffffffffffffffffffffffffffffff',X'0a440a200000000000000000000000000000000000000000000000000000000000000000122000000000000000000000000000000000000000000000000000000000000000001a200000000000000000000000000000000000000000000000000000000000000000',X'7369676e6174757265');
|
|
INSERT INTO bwusagetbl VALUES(1,3,4); |