19 lines
382 B
JavaScript
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"
|
|
)
|
|
};
|