@buildautomaton/cli 0.1.34 → 0.1.36
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/cli.js +338 -150
- package/dist/cli.js.map +4 -4
- package/dist/index.js +332 -144
- package/dist/index.js.map +4 -4
- package/dist/migrations/003_file_index_parent_paths.sql +17 -0
- package/package.json +1 -1
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
DROP INDEX IF EXISTS idx_file_index_path_cwd;
|
|
2
|
+
DROP TABLE IF EXISTS file_index_path;
|
|
3
|
+
|
|
4
|
+
CREATE TABLE IF NOT EXISTS file_index_parent_path (
|
|
5
|
+
id INTEGER PRIMARY KEY AUTOINCREMENT,
|
|
6
|
+
path TEXT NOT NULL UNIQUE,
|
|
7
|
+
path_hash TEXT NOT NULL,
|
|
8
|
+
updated_at TEXT NOT NULL
|
|
9
|
+
);
|
|
10
|
+
|
|
11
|
+
CREATE TABLE IF NOT EXISTS file_index_child_path (
|
|
12
|
+
parent_id INTEGER NOT NULL,
|
|
13
|
+
path TEXT NOT NULL,
|
|
14
|
+
PRIMARY KEY (parent_id, path),
|
|
15
|
+
FOREIGN KEY (parent_id) REFERENCES file_index_parent_path(id) ON DELETE CASCADE
|
|
16
|
+
);
|
|
17
|
+
CREATE INDEX IF NOT EXISTS idx_file_index_child_path_parent ON file_index_child_path(parent_id);
|