-
Notifications
You must be signed in to change notification settings - Fork 160
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
93c865b
commit bbb9d67
Showing
13 changed files
with
133 additions
and
246 deletions.
There are no files selected for viewing
This file contains 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
This file contains 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
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains 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
2 changes: 1 addition & 1 deletion
2
pdf2md/server/ch_migrations/1731971460_add_file_name_to_file_tasks/up.sql
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1 @@ | ||
ALTER TABLE file_tasks ADD COLUMN IF NOT EXISTS file_name TEXT NOT NULL; | ||
ALTER TABLE file_tasks ADD COLUMN IF NOT EXISTS file_name String; |
12 changes: 12 additions & 0 deletions
12
pdf2md/server/ch_migrations/1732045323_add_page_as_an_order_by/down.sql
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
DROP TABLE IF EXISTS file_chunks; | ||
CREATE TABLE IF NOT EXISTS file_chunks ( | ||
id String, | ||
task_id String, | ||
content String, | ||
metadata String, | ||
created_at DateTime, | ||
) ENGINE = MergeTree() | ||
ORDER BY (task_id, id) | ||
PARTITION BY | ||
(task_id) | ||
TTL created_at + INTERVAL 30 DAY; |
13 changes: 13 additions & 0 deletions
13
pdf2md/server/ch_migrations/1732045323_add_page_as_an_order_by/up.sql
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
DROP TABLE IF EXISTS default.file_chunks; | ||
CREATE TABLE IF NOT EXISTS file_chunks ( | ||
id String, | ||
task_id String, | ||
content String, | ||
usage String, | ||
page UInt32, | ||
created_at DateTime, | ||
) ENGINE = MergeTree() | ||
ORDER BY (task_id, page, id) | ||
PARTITION BY | ||
(task_id) | ||
TTL created_at + INTERVAL 30 DAY; |
This file contains 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
This file contains 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
This file contains 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
Oops, something went wrong.