6 lines
239 B
SQL
6 lines
239 B
SQL
-- Add hierarchy support to data table rows
|
|
ALTER TABLE data_table_rows ADD COLUMN IF NOT EXISTS parent_id INTEGER;
|
|
|
|
CREATE INDEX IF NOT EXISTS data_table_rows_table_parent_position_idx
|
|
ON data_table_rows(table_id, parent_id, position);
|