Skip to content

Commit

Permalink
Ordenação dos Tickets - Seed
Browse files Browse the repository at this point in the history
  • Loading branch information
rtenorioh committed Mar 27, 2023
1 parent 2c64899 commit a9f1acb
Show file tree
Hide file tree
Showing 2 changed files with 44 additions and 0 deletions.
22 changes: 22 additions & 0 deletions backend/src/database/seeds/20230326221400-create-ASC-settings.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
import { QueryInterface } from "sequelize";

module.exports = {
up: (queryInterface: QueryInterface) => {
return queryInterface.bulkInsert(
"Settings",
[
{
key: "ASC",
value: "disabled",
createdAt: new Date(),
updatedAt: new Date()
}
],
{}
);
},

down: (queryInterface: QueryInterface) => {
return queryInterface.bulkDelete("Settings", {});
}
};
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
import { QueryInterface } from "sequelize";

module.exports = {
up: (queryInterface: QueryInterface) => {
return queryInterface.bulkInsert(
"Settings",
[
{
key: "created",
value: "disabled",
createdAt: new Date(),
updatedAt: new Date()
}
],
{}
);
},

down: (queryInterface: QueryInterface) => {
return queryInterface.bulkDelete("Settings", {});
}
};

0 comments on commit a9f1acb

Please sign in to comment.