Revision 10780
Added by Aaron Marcuse-Kubitza about 11 years ago
schema.pg.sql.run | ||
---|---|---|
1 | 1 |
#!/bin/bash -e |
2 |
. "$(dirname "${BASH_SOURCE[0]}")"/import.run |
|
3 |
.rel in_datasrc_dir.run |
|
2 |
. "$(dirname "${BASH_SOURCE[0]}")"/file.pg.sql.run |
|
4 | 3 |
|
5 | 4 |
# syncs a schema-only SQL script with the DB |
6 | 5 |
|
7 | 6 |
if self_not_included; then |
8 | 7 |
|
9 |
export_() # usage: rm=1 .../schema.pg.sql.run export_ |
|
10 |
{ |
|
11 |
echo_func; set_make_vars; deferred_check_target_exists |
|
12 |
struct=1 create_schema= to_top_file pg_dump_local |
|
13 |
} |
|
8 |
func_override export___file.pg.sql.run |
|
9 |
export_() # usage: rm=1 .../file.run export_ |
|
10 |
{ echo_func; struct=1 export___file.pg.sql.run; } |
|
14 | 11 |
|
15 | 12 |
fi |
Also available in: Unified diff
added lib/runscripts/file.pg.sql.run and use it in schema.pg.sql.run