Added real estate ad edit ability
This commit is contained in:
@@ -0,0 +1,18 @@
|
||||
"use strict";
|
||||
|
||||
module.exports = {
|
||||
up: (queryInterface, Sequelize) =>
|
||||
queryInterface.addConstraint(
|
||||
"KiviOriginalAdsPhotos",
|
||||
["kiviAdId", "photoUrl"],
|
||||
{
|
||||
type: "unique",
|
||||
name: "uniqueKiviAdIdPhoto"
|
||||
}
|
||||
),
|
||||
down: queryInterface =>
|
||||
queryInterface.removeConstraint(
|
||||
"KiviOriginalAdsPhotos",
|
||||
"uniqueKiviAdIdPhoto"
|
||||
)
|
||||
};
|
||||
Reference in New Issue
Block a user