This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| PRAGMA recursive_triggers=on; | |
| CREATE TABLE nodes ( | |
| id INTEGER NOT NULL, | |
| parent_id INTEGER, | |
| interval_start REAL, | |
| interval_end REAL, | |
| name TEXT NOT NULL, | |
| PRIMARY KEY (id ASC), | |
| FOREIGN KEY (parent_id) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| CREATE TABLE tab2 ( | |
| columns TEXT); | |
| INSERT INTO tab2 (columns) SELECT columns from tab; | |
| DROP TABLE tab; | |
| ALTER TABLE tab2 RENAME TO tab; |
NewerOlder