Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: notion integration #3142

Open
wants to merge 7 commits into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
175 changes: 158 additions & 17 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions ee/tabby-db/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,7 @@ tokio = { workspace = true, features = ["fs"] }
uuid.workspace = true
cached = { workspace = true, features = ["async"] }
serde.workspace = true
juniper = "0.16"

[dev-dependencies]
assert_matches.workspace = true
Expand Down
2 changes: 2 additions & 0 deletions ee/tabby-db/migrations/0039_notion_documents.down.sql
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
-- Add down migration script here
DROP TABLE notion_documents;
13 changes: 13 additions & 0 deletions ee/tabby-db/migrations/0039_notion_documents.up.sql
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
-- Add up migration script here

CREATE TABLE notion_documents(
id INTEGER NOT NULL PRIMARY KEY AUTOINCREMENT,
name VARCHAR(255) NOT NULL,
integration_id TEXT NOT NULL,
integration_type TEXT CHECK(integration_type in ('database', 'page', 'wiki')) NOT NULL,
access_token TEXT NOT NULL,
created_at TIMESTAMP NOT NULL DEFAULT(DATETIME('now')),
updated_at TIMESTAMP NOT NULL DEFAULT(DATETIME('now')),
CONSTRAINT notion_name UNIQUE(name),
CONSTRAINT notion_integration_id UNIQUE(integration_id)
);
Binary file modified ee/tabby-db/schema.sqlite
Binary file not shown.
Loading