-
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.
Update fetch charge versions service in water-abstraction-system (#136)
https://eaflood.atlassian.net/browse/WATER-3910 In order to process charge versions in the SROC supplementary bill run process we’ve needed to update our `FetchChargeVersionsService`. We’ve had to include new relationships and add additional fields to the results. - Update the service - Update tests for the service - Update dependent tests, for example, `SupplementaryDataService`
- Loading branch information
Showing
4 changed files
with
122 additions
and
20 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,35 @@ | ||
'use strict' | ||
|
||
const tableName = 'licences' | ||
|
||
exports.up = async function (knex) { | ||
await knex | ||
.schema | ||
.withSchema('water') | ||
.alterTable(tableName, table => { | ||
table.boolean('is_water_undertaker') | ||
table.jsonb('regions') | ||
table.date('start_date') | ||
table.date('expired_date') | ||
table.date('lapsed_date') | ||
table.date('revoked_date') | ||
table.boolean('suspend_from_billing') | ||
}) | ||
} | ||
|
||
exports.down = async function (knex) { | ||
return knex | ||
.schema | ||
.withSchema('water') | ||
.alterTable(tableName, table => { | ||
table.dropColumns( | ||
'is_water_undertaker', | ||
'regions', | ||
'start_date', | ||
'expired_date', | ||
'lapsed_date', | ||
'revoked_date', | ||
'suspend_from_billing' | ||
) | ||
}) | ||
} |
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