Commit 2a9c7216 authored by pom421's avatar pom421
Browse files

fix: add necessary down migration after all

parent 2e9714b8
......@@ -4,6 +4,9 @@ exports.up = function (knex) {
exports.down = function () {
// Nothing to do. The old unique constraint on ["hospital_id", "year"] is incorrect in any context.
exports.down = function (knex) {
// Added only for reproductibility of migrate/rollback operations. In theory, you should never go back to the ["hospital_id", "year"] constraint.
return knex.schema.table("employments", function (table) {
table.unique(["hospital_id", "year"])
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment