-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
CVSL-1613 Storing prison number against licence version (#1525)
- Loading branch information
1 parent
4b58c1a
commit 5e500c1
Showing
3 changed files
with
14 additions
and
3 deletions.
There are no files selected for viewing
11 changes: 11 additions & 0 deletions
11
migrations/20240131160000_add-prison-number-to-licence-version.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,11 @@ | ||
exports.up = async function up(knex) { | ||
await knex.schema.alterTable('licence_versions', (table) => { | ||
table.string('prison_number', 7).nullable() | ||
}) | ||
} | ||
|
||
exports.down = async function down(knex) { | ||
await knex.schema.alterTable('licence_versions', (table) => { | ||
table.dropColumn('prison_number') | ||
}) | ||
} |
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