-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'yadhap/asr-domain-category-relation' of https://github.…
…com/hpcc-systems/Tombolo into yadhap/asr-domain-category-relation
- Loading branch information
Showing
2 changed files
with
44 additions
and
33 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,38 +1,47 @@ | ||
'use strict'; | ||
const { v4: uuidv4 } = require('uuid'); | ||
"use strict"; | ||
const { v4: uuidv4 } = require("uuid"); | ||
|
||
module.exports = { | ||
up: (queryInterface, Sequelize) => { | ||
|
||
return queryInterface.bulkInsert('rules', [{ | ||
id: uuidv4(), | ||
name : 'Date Validate', | ||
createdAt : new Date(), | ||
updatedAt : new Date() | ||
},{ | ||
id: uuidv4(), | ||
name : 'Phone Validate', | ||
createdAt : new Date(), | ||
updatedAt : new Date() | ||
},{ | ||
id: uuidv4(), | ||
name : 'Integer Validate', | ||
createdAt : new Date(), | ||
updatedAt : new Date() | ||
},{ | ||
id: uuidv4(), | ||
name : 'Not Empty', | ||
createdAt : new Date(), | ||
updatedAt : new Date() | ||
},{ | ||
id: uuidv4(), | ||
name : 'Assert', | ||
createdAt : new Date(), | ||
updatedAt : new Date() | ||
}], {}); | ||
|
||
return queryInterface.bulkInsert( | ||
"rules", | ||
[ | ||
{ | ||
id: uuidv4(), | ||
name: "Date Validate", | ||
createdAt: new Date(), | ||
updatedAt: new Date(), | ||
}, | ||
{ | ||
id: uuidv4(), | ||
name: "Phone Validate", | ||
createdAt: new Date(), | ||
updatedAt: new Date(), | ||
}, | ||
{ | ||
id: uuidv4(), | ||
name: "Integer Validate", | ||
createdAt: new Date(), | ||
updatedAt: new Date(), | ||
}, | ||
{ | ||
id: uuidv4(), | ||
name: "Not Empty", | ||
createdAt: new Date(), | ||
updatedAt: new Date(), | ||
}, | ||
{ | ||
id: uuidv4(), | ||
name: "Assert", | ||
createdAt: new Date(), | ||
updatedAt: new Date(), | ||
}, | ||
], | ||
{} | ||
); | ||
}, | ||
|
||
down: (queryInterface, Sequelize) => { | ||
} | ||
down: async (queryInterface, Sequelize) => { | ||
return queryInterface.bulkDelete("rules", null, {}); | ||
}, | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters