Merge pull request #779 from knl/there-is-no-hydra-postgresql.sql-anymore
Remove references to hydra-postgresql.sql
This commit is contained in:
commit
5f1faf4cb4
|
@ -25,7 +25,7 @@ my @tables = $dbh->tables;
|
||||||
if (! grep { /SchemaVersion/i } @tables) {
|
if (! grep { /SchemaVersion/i } @tables) {
|
||||||
print STDERR "initialising the Hydra database schema...\n";
|
print STDERR "initialising the Hydra database schema...\n";
|
||||||
my $schema = read_file(
|
my $schema = read_file(
|
||||||
$dbh->{Driver}->{Name} eq 'Pg' ? "$home/sql/hydra-postgresql.sql" :
|
$dbh->{Driver}->{Name} eq 'Pg' ? "$home/sql/hydra.sql" :
|
||||||
die "unsupported database type $dbh->{Driver}->{Name}\n");
|
die "unsupported database type $dbh->{Driver}->{Name}\n");
|
||||||
my @statements = $sql_splitter->split($schema);
|
my @statements = $sql_splitter->split($schema);
|
||||||
eval {
|
eval {
|
||||||
|
|
|
@ -1,13 +1,9 @@
|
||||||
sqldir = $(libexecdir)/hydra/sql
|
sqldir = $(libexecdir)/hydra/sql
|
||||||
nobase_dist_sql_DATA = \
|
nobase_dist_sql_DATA = \
|
||||||
hydra-postgresql.sql \
|
|
||||||
hydra.sql \
|
hydra.sql \
|
||||||
test.sql \
|
test.sql \
|
||||||
upgrade-*.sql \
|
upgrade-*.sql \
|
||||||
update-dbix.pl
|
update-dbix.pl
|
||||||
|
|
||||||
hydra-postgresql.sql: hydra.sql
|
update-dbix: hydra.sql
|
||||||
cpp -P -E -traditional-cpp -DPOSTGRESQL hydra.sql > $@ || rm -f $@
|
|
||||||
|
|
||||||
update-dbix: hydra-postgresql.sql
|
|
||||||
./update-dbix-harness.sh
|
./update-dbix-harness.sh
|
||||||
|
|
|
@ -33,7 +33,7 @@ pg_ctl -D "$data" \
|
||||||
|
|
||||||
createdb -h "$socket" "$dbname"
|
createdb -h "$socket" "$dbname"
|
||||||
|
|
||||||
psql -h "$socket" "$dbname" -f ./hydra-postgresql.sql
|
psql -h "$socket" "$dbname" -f ./hydra.sql
|
||||||
|
|
||||||
perl -I ../lib \
|
perl -I ../lib \
|
||||||
-MDBIx::Class::Schema::Loader=make_schema_at,dump_to_dir:../lib \
|
-MDBIx::Class::Schema::Loader=make_schema_at,dump_to_dir:../lib \
|
||||||
|
|
Loading…
Reference in a new issue