Revision 11875
Added by Aaron Marcuse-Kubitza about 11 years ago
lib/runscripts/datasrc_dir.run | ||
---|---|---|
18 | 18 |
{ |
19 | 19 |
echo_func; set_make_vars |
20 | 20 |
if remaking; then datasrc_make uninstall; fi |
21 |
datasrc_make schema |
|
22 |
datasrc_make sql/install </dev/null |
|
23 |
# </dev/null because for datasources w/o SQL files, cat will try to read |
|
24 |
# from stdin |
|
21 |
if ! pg_schema_exists; then # uses $schema |
|
22 |
datasrc_make schema |
|
23 |
datasrc_make sql/install </dev/null |
|
24 |
# </dev/null because for datasources w/o SQL files, cat will try to |
|
25 |
# read from stdin |
|
26 |
fi |
|
25 | 27 |
fwd "$FUNCNAME" "$@" |
26 | 28 |
} |
27 | 29 |
|
Also available in: Unified diff
bugfix: lib/runscripts/datasrc_dir.run: import(): don't run `sql/install` if the schema already exists, because this will try to rerun all the schema-creation queries. note that this idempotent functionality was not provided by the `make .../install` target that was previously used (idempotency is new with new-style import).