2020-02-06 17:23:47 +00:00
|
|
|
use Cwd;
|
|
|
|
|
|
|
|
die "$0: dbi connection string required \n" if scalar @ARGV != 1;
|
|
|
|
|
2015-07-30 14:07:21 +00:00
|
|
|
make_schema_at("Hydra::Schema", {
|
|
|
|
naming => { ALL => "v5" },
|
|
|
|
relationships => 1,
|
2020-02-06 17:23:47 +00:00
|
|
|
moniker_map => {
|
|
|
|
"aggregateconstituents" => "AggregateConstituents",
|
|
|
|
"buildinputs" => "BuildInputs",
|
|
|
|
"buildmetrics" => "BuildMetrics",
|
|
|
|
"buildoutputs" => "BuildOutputs",
|
|
|
|
"buildproducts" => "BuildProducts",
|
|
|
|
"builds" => "Builds",
|
|
|
|
"buildstepoutputs" => "BuildStepOutputs",
|
|
|
|
"buildsteps" => "BuildSteps",
|
|
|
|
"cachedbazaarinputs" => "CachedBazaarInputs",
|
|
|
|
"cachedcvsinputs" => "CachedCVSInputs",
|
|
|
|
"cacheddarcsinputs" => "CachedDarcsInputs",
|
|
|
|
"cachedgitinputs" => "CachedGitInputs",
|
|
|
|
"cachedhginputs" => "CachedHgInputs",
|
|
|
|
"cachedpathinputs" => "CachedPathInputs",
|
|
|
|
"cachedsubversioninputs" => "CachedSubversionInputs",
|
2021-02-01 23:35:48 +00:00
|
|
|
"evaluationerrors" => "EvaluationErrors",
|
2020-02-06 17:23:47 +00:00
|
|
|
"failedpaths" => "FailedPaths",
|
|
|
|
"jobsetevalinputs" => "JobsetEvalInputs",
|
|
|
|
"jobsetevalmembers" => "JobsetEvalMembers",
|
|
|
|
"jobsetevals" => "JobsetEvals",
|
|
|
|
"jobsetinputalts" => "JobsetInputAlts",
|
|
|
|
"jobsetinputs" => "JobsetInputs",
|
|
|
|
"jobsetrenames" => "JobsetRenames",
|
|
|
|
"jobsets" => "Jobsets",
|
|
|
|
"newsitems" => "NewsItems",
|
|
|
|
"nrbuilds" => "NrBuilds",
|
|
|
|
"projectmembers" => "ProjectMembers",
|
|
|
|
"projects" => "Projects",
|
|
|
|
"schemaversion" => "SchemaVersion",
|
|
|
|
"starredjobs" => "StarredJobs",
|
|
|
|
"systemstatus" => "SystemStatus",
|
|
|
|
"systemtypes" => "SystemTypes",
|
|
|
|
"urirevmapper" => "UriRevMapper",
|
|
|
|
"userroles" => "UserRoles",
|
|
|
|
"users" => "Users",
|
|
|
|
} , #sub { return "$_"; },
|
2015-07-30 14:07:21 +00:00
|
|
|
components => [ "+Hydra::Component::ToJSON" ],
|
|
|
|
rel_name_map => { buildsteps_builds => "buildsteps" }
|
2020-02-06 17:23:47 +00:00
|
|
|
}, [$ARGV[0]]);
|