Revision 12382
Added by Aaron Marcuse-Kubitza almost 11 years ago
trunk/schemas/util.sql | ||
---|---|---|
2390 | 2390 |
/* can't have in_table/out_table inherit from *each other*, because inheritance |
2391 | 2391 |
also causes the rows of the parent table to be included in the child table. |
2392 | 2392 |
instead, they need to inherit from a common, empty table. */ |
2393 |
SELECT util.drop_table($4, force := true);
|
|
2394 |
SELECT util.copy_struct($2, $4);
|
|
2393 |
SELECT util.create_if_not_exists($$SELECT $$||util.quote_func_call(
|
|
2394 |
'util.copy_struct', util.quote_typed($2), util.quote_typed($4)));
|
|
2395 | 2395 |
SELECT util.inherit($2, $4); |
2396 | 2396 |
SELECT util.inherit($3, $4); |
2397 | 2397 |
|
Also available in: Unified diff
schemas/util.sql: util.remake_diff_table(): don't force-re-create type_table. this allows type_table to be shared between multiple diff tables.