Files
coder/database/migrations/create_migration.sh
Kyle Carberry b503c8b099 feat: Add parameter and jobs database schema (#81)
* feat: Add parameter and jobs database schema

This modifies a prior migration which is typically forbidden,
but because we're pre-production deployment I felt grouping
would be helpful to future contributors.

This adds database functions that are required for the provisioner
daemon and job queue logic.

* Add comment to acquire provisioner job query

* PostgreSQL hates running in parallel
2022-01-29 17:38:32 -06:00

12 lines
211 B
Bash
Executable File

#!/usr/bin/env bash
cd "$(dirname "$0")"
if [ -z "$1" ]; then
echo "First argument is the migration name!"
exit 1
fi
migrate create -ext sql -dir . -seq $1
echo "Run \"make gen\" to generate models."