Revision 14212
Added by Aaron Marcuse-Kubitza over 10 years ago
trunk/schemas/util.sql | ||
---|---|---|
1822 | 1822 |
|
1823 | 1823 |
-- if table has data, initially disabled because not yet populated |
1824 | 1824 |
SELECT util.check_constraint((def.col, util.derived_col_constraint_expr(def)), |
1825 |
enabled := NOT util.table_has_data((def).col.table_));
|
|
1825 |
enabled := util.derived_col_constraint_initially_enabled(def));
|
|
1826 | 1826 |
|
1827 | 1827 |
-- create the trigger |
1828 | 1828 |
SELECT util.derived_cols_sync((def).col.table_); |
Also available in: Unified diff
schemas/util.sql: derived_col_update(): use new util.derived_col_constraint_initially_enabled()