Files
invoice-master-poc-v2/migrations/005_add_group_key.sql
Yaojia Wang 33ada0350d WIP
2026-01-30 00:44:21 +01:00

9 lines
353 B
SQL

-- Add group_key column to admin_documents
-- Allows users to organize documents into logical groups
-- Add the column (nullable, VARCHAR 255)
ALTER TABLE admin_documents ADD COLUMN IF NOT EXISTS group_key VARCHAR(255);
-- Add index for filtering/grouping queries
CREATE INDEX IF NOT EXISTS ix_admin_documents_group_key ON admin_documents(group_key);