-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Prise en compte de la situation où aucune commune n'est fournie dans le dossier * Suppression de la limite implicite de 255 char pour le champ 'espèces_protégées_concernées' en base de données
- Loading branch information
1 parent
85e490f
commit 9e1af43
Showing
2 changed files
with
24 additions
and
2 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
/** | ||
* @param { import("knex").Knex } knex | ||
* @returns { Promise<void> } | ||
*/ | ||
export function up(knex) { | ||
return knex.schema.alterTable('dossier', (table) => { | ||
table.text('espèces_protégées_concernées').alter(); | ||
}); | ||
}; | ||
|
||
/** | ||
* @param { import("knex").Knex } knex | ||
* @returns { Promise<void> } | ||
*/ | ||
export function down(knex) { | ||
return knex.schema.alterTable('dossier', (table) => { | ||
table.string('espèces_protégées_concernées').alter() | ||
}); | ||
}; |
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