Files
old-web/app/migrations/20200325120224-add-constraint-kiviOriginalAdsPhotos.js
2020-03-25 16:33:21 +01:00

19 lines
382 B
JavaScript

"use strict";
module.exports = {
up: (queryInterface, Sequelize) =>
queryInterface.addConstraint(
"KiviOriginalAdsPhotos",
["kiviAdId", "photoUrl"],
{
type: "unique",
name: "uniqueKiviAdIdPhoto"
}
),
down: queryInterface =>
queryInterface.removeConstraint(
"KiviOriginalAdsPhotos",
"uniqueKiviAdIdPhoto"
)
};