Initial public release of Warp.
Repo-Sync-Origin: warpdotdev/warp-internal@12af1d983b
This commit is contained in:
@@ -0,0 +1,5 @@
|
||||
-- Notebook panes are new, so we can undo the migration by removing them completely.
|
||||
-- To avoid foreign key errors, we have to delete any saved notebook panes.
|
||||
|
||||
DELETE FROM pane_leaves WHERE kind = 'notebook';
|
||||
DROP TABLE notebook_panes;
|
||||
@@ -0,0 +1,10 @@
|
||||
-- This adds a table for restoring open notebook panes.
|
||||
CREATE TABLE notebook_panes (
|
||||
id INTEGER PRIMARY KEY NOT NULL,
|
||||
kind TEXT NOT NULL DEFAULT 'notebook' CHECK (kind = 'notebook'),
|
||||
|
||||
-- The sync ID of the notebook. This may be null if the notebook has not yet been saved.
|
||||
notebook_id TEXT,
|
||||
|
||||
FOREIGN KEY (id, kind) REFERENCES pane_leaves (pane_node_id, kind)
|
||||
);
|
||||
Reference in New Issue
Block a user