mirror of
https://github.com/hanzoai/team.git
synced 2026-09-30 01:57:35 +00:00
--------- Co-authored-by: Elias Nahum <[email protected]> Co-authored-by: Nick Misasi <[email protected]> Co-authored-by: Matthew Birtch <[email protected]> Co-authored-by: Mattermost Build <[email protected]> Co-authored-by: Hanzo Dev <[email protected]>
10 lines
388 B
SQL
10 lines
388 B
SQL
-- No default value - all inserts must explicitly provide a state
|
|
ALTER TABLE translations
|
|
ADD COLUMN IF NOT EXISTS state varchar(20) NOT NULL;
|
|
|
|
-- Create partial index for non-terminal states (processing, unavailable)
|
|
-- This index is only for states that need monitoring/cleanup
|
|
CREATE INDEX IF NOT EXISTS idx_translations_state
|
|
ON translations(state)
|
|
WHERE state IN ('processing');
|