Skip to content

Commit 151c026

Browse files
committed
docs: added comment
1 parent 302cfea commit 151c026

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

migrations/2021-02-27-job-add-is-application-page-active-field.js

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,8 @@ module.exports = {
66
up: queryInterface => {
77
return Promise.all([
88
queryInterface.sequelize.query('ALTER TABLE bookings.jobs ADD is_application_page_active BOOLEAN NOT NULL DEFAULT false'),
9+
// this command looks like does nothing, because we already set default value to `null` and this column cannot be `NULL`
10+
// but we keep it as it was tested this way, and it looks harmful
911
queryInterface.sequelize.query('UPDATE bookings.jobs SET is_application_page_active=false WHERE is_application_page_active is NULL'),
1012
])
1113
},

0 commit comments

Comments
 (0)