leaf-library-3/internal/database/migrations/2_add_parent_id_to_documents.sql

8 lines
164 B
MySQL
Raw Normal View History

2024-12-06 15:38:22 +00:00
-- +goose Up
ALTER TABLE documents
2024-12-06 18:44:32 +00:00
ADD COLUMN parent_id BIGINT REFERENCES documents (id) NULL;
2024-12-06 15:38:22 +00:00
-- +goose Down
ALTER TABLE documents
DROP COLUMN parent_id;