This repository has been archived by the owner on Jan 19, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(address): show address additional infos (#171)
- Loading branch information
1 parent
82b49ef
commit 4a040ce
Showing
8 changed files
with
45 additions
and
3 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
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
31 changes: 31 additions & 0 deletions
31
src/db/migrations/20220503133008-add-complement-address.js
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,31 @@ | ||
"use strict"; | ||
|
||
module.exports = { | ||
async up(queryInterface, Sequelize) { | ||
await queryInterface.addColumn("psychologist", "display_phone", { | ||
type: Sequelize.BOOLEAN, | ||
defaultValue: true, | ||
}); | ||
await queryInterface.addColumn("psychologist", "address_additional", { | ||
allowNull: true, | ||
type: Sequelize.TEXT, | ||
}); | ||
await queryInterface.addColumn( | ||
"psychologist", | ||
"second_address_additional", | ||
{ | ||
allowNull: true, | ||
type: Sequelize.TEXT, | ||
} | ||
); | ||
}, | ||
|
||
async down(queryInterface) { | ||
await queryInterface.removeColumn("psychologist", "display_phone"); | ||
await queryInterface.removeColumn("psychologist", "address_additional"); | ||
await queryInterface.removeColumn( | ||
"psychologist", | ||
"second_address_additional" | ||
); | ||
}, | ||
}; |
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