-
Notifications
You must be signed in to change notification settings - Fork 143
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Correção da visualização de contatos (isTricked)
- Loading branch information
Showing
8 changed files
with
101 additions
and
55 deletions.
There are no files selected for viewing
13 changes: 13 additions & 0 deletions
13
backend/src/database/migrations/20230527010200-remove-isTricked-column-to-users.ts
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 |
---|---|---|
@@ -0,0 +1,13 @@ | ||
import { QueryInterface, DataTypes } from "sequelize"; | ||
|
||
module.exports = { | ||
up: (queryInterface: QueryInterface) => { | ||
return queryInterface.removeColumn("Users", "isTricked"); | ||
}, | ||
down: (queryInterface: QueryInterface) => { | ||
return queryInterface.addColumn("Users", "isTricked", { | ||
type: DataTypes.BOOLEAN, | ||
defaultValue: true | ||
}); | ||
} | ||
}; |
15 changes: 15 additions & 0 deletions
15
backend/src/database/migrations/20230527010400-add-istricked-column-to-users.ts
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 |
---|---|---|
@@ -0,0 +1,15 @@ | ||
import { QueryInterface, DataTypes } from "sequelize"; | ||
|
||
module.exports = { | ||
up: (queryInterface: QueryInterface) => { | ||
return queryInterface.addColumn("Users", "isTricked", { | ||
type: DataTypes.STRING, | ||
allowNull: false, | ||
defaultValue: "enabled" | ||
}); | ||
}, | ||
|
||
down: (queryInterface: QueryInterface) => { | ||
return queryInterface.removeColumn("Users", "isTricked"); | ||
} | ||
}; |
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
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
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
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
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
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