2012-02-28 19:16:16 +00:00
|
|
|
sqldir = $(libexecdir)/hydra/sql
|
2012-03-13 16:49:18 +00:00
|
|
|
nobase_dist_sql_DATA = \
|
2012-03-13 16:45:14 +00:00
|
|
|
hydra-postgresql.sql \
|
|
|
|
hydra.sql \
|
|
|
|
hydra-sqlite.sql \
|
|
|
|
test.sql \
|
2012-04-15 23:23:01 +00:00
|
|
|
upgrade-*.sql
|
2012-03-13 16:45:14 +00:00
|
|
|
|
2009-10-21 12:25:43 +00:00
|
|
|
|
|
|
|
hydra-postgresql.sql: hydra.sql
|
|
|
|
cpp -P -E -traditional-cpp -DPOSTGRESQL hydra.sql > $@ || rm -f $@
|
|
|
|
|
|
|
|
hydra-sqlite.sql: hydra.sql
|
|
|
|
cpp -P -E -traditional-cpp -DSQLITE hydra.sql > $@ || rm -f $@
|
|
|
|
|
|
|
|
update-dbix: hydra-sqlite.sql
|
|
|
|
rm -f tmp.sqlite
|
|
|
|
sqlite3 tmp.sqlite < hydra-sqlite.sql
|
2013-06-17 16:34:21 +00:00
|
|
|
perl -I ../lib -MDBIx::Class::Schema::Loader=make_schema_at,dump_to_dir:../lib -e 'make_schema_at("Hydra::Schema", { naming => { ALL => "v5" }, relationships => 1, moniker_map => sub {return "$$_";}, components => [ "+Hydra::Component::ToJSON" ], }, ["dbi:SQLite:tmp.sqlite"])'
|