# Example RelSpec job file. See docs/JOB_FILES.md for the full reference. # # cd examples/jobs # relspec job list # relspec job run build-schema --plan # relspec job run build-schema version: 1 jobs: build-schema: command: convert description: Merge the DBML sources and emit PostgreSQL DDL inputs: - path: schema/core.dbml format: dbml - path: schema/tenant.dbml format: dbml output: format: pgsql path: build/schema.sql overwrite: true options: flatten_schema: false logfile: .relspec/log/build-schema.log build-json: command: convert description: Also emit a JSON schema once build-schema succeeds depends_on: [build-schema] inputs: - path: schema/core.dbml format: dbml - path: schema/tenant.dbml format: dbml output: format: json path: build/schema.json overwrite: true migration-order: command: scripts-list description: Show the combined execution order across script directories script_dirs: - migrations/core - migrations/tenant logfile: .relspec/log/migration-order.log