Revision 10152
Added by Aaron Marcuse-Kubitza over 11 years ago
util.sql | ||
---|---|---|
1200 | 1200 |
CREATE FUNCTION reset_map_table(table_ text) RETURNS void |
1201 | 1201 |
LANGUAGE sql STRICT |
1202 | 1202 |
AS $_$ |
1203 |
SELECT util.drop_table($1); |
|
1203 | 1204 |
SELECT util.mk_map_table($1); |
1204 |
SELECT util.truncate($1); |
|
1205 | 1205 |
$_$; |
1206 | 1206 |
|
1207 | 1207 |
|
Also available in: Unified diff
schemas/util.sql: reset_map_table(): drop the table and recreate it instead of just creating it if it doesn't exist, so that any change to the util.map table is propagated to persistent map tables whenever they are reloaded from the map.csv