Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

UTH-164: review status and housing type types #187

Merged
merged 14 commits into from
Jan 13, 2025
Merged
Prev Previous commit
Next Next commit
also dont allow null on application profile housing type
momentiris committed Jan 13, 2025

Verified

This commit was signed with the committer’s verified signature.
sleepyfran Fran González
commit f8c3a213f2733d74e99d2568c3ed296a62f61bc2
10 changes: 10 additions & 0 deletions migrations/20241216104418_refactor-housing-reference.js
Original file line number Diff line number Diff line change
@@ -23,6 +23,11 @@ exports.up = function (knex) {
ALTER TABLE application_profile_housing_reference
DROP COLUMN reviewStatusReason, reviewedAt;
`)

await trx.raw(`
ALTER TABLE application_profile
ALTER COLUMN housingType nvarchar(36) NOT NULL;
`)
})
}

@@ -52,5 +57,10 @@ exports.down = function (knex) {
ALTER TABLE application_profile_housing_reference
ALTER COLUMN phone nvarchar(36) NOT NULL;
`)

await trx.raw(`
ALTER TABLE application_profile
ALTER COLUMN housingType nvarchar(36) NULL;
`)
})
}