feat: support office document nodes
This commit is contained in:
7
migrations/004_office_document_nodes.down.sql
Normal file
7
migrations/004_office_document_nodes.down.sql
Normal file
@@ -0,0 +1,7 @@
|
||||
ALTER TABLE files_nodes
|
||||
DROP CONSTRAINT IF EXISTS files_nodes_file_storage_check;
|
||||
|
||||
ALTER TABLE files_nodes
|
||||
ADD CONSTRAINT files_nodes_file_storage_check CHECK (
|
||||
node_type IN ('folder', 'google_sheet') OR storage_key IS NOT NULL
|
||||
);
|
||||
7
migrations/004_office_document_nodes.up.sql
Normal file
7
migrations/004_office_document_nodes.up.sql
Normal file
@@ -0,0 +1,7 @@
|
||||
ALTER TABLE files_nodes
|
||||
DROP CONSTRAINT IF EXISTS files_nodes_file_storage_check;
|
||||
|
||||
ALTER TABLE files_nodes
|
||||
ADD CONSTRAINT files_nodes_file_storage_check CHECK (
|
||||
node_type IN ('folder', 'google_sheet', 'office_document') OR storage_key IS NOT NULL
|
||||
);
|
||||
Reference in New Issue
Block a user