Skip to content

πŸ“š The open-source, offline-first Notion, Obsidian & Confluence alternative. Advanced Markdown, multi-tenant teams, OIDC/SSO, and local S3 backups. Deploy in one command.

Migrations for pin doc

Smaug6739ad56c595df56
diff --git a/backend/migrations/000007_pin_doc.down.sql b/backend/migrations/000007_pin_doc.down.sql
new file mode 100644
index 00000000..823bcdd1
--- /dev/null
+++ b/backend/migrations/000007_pin_doc.down.sql
@@ -0,0 +1,2 @@
+alter table documents
+ drop column pinned;
\ No newline at end of file
diff --git a/backend/migrations/000007_pin_doc.up.sql b/backend/migrations/000007_pin_doc.up.sql
new file mode 100644
index 00000000..225ceac4
--- /dev/null
+++ b/backend/migrations/000007_pin_doc.up.sql
@@ -0,0 +1,2 @@
+alter table documents
+ add pinned int default 0 null after tags;
\ No newline at end of file