Skip to content

Commit

Permalink
Merge pull request #808 from MTES-MCT/default-seed-value
Browse files Browse the repository at this point in the history
fix: add default value 'seed' to column 'source' on 'establishments' table
  • Loading branch information
loicguillois authored Jul 9, 2024
2 parents e47463e + f688908 commit aa0c962
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ import type { Knex } from "knex";

export async function up(knex: Knex): Promise<void> {
await knex.schema.alterTable('establishments', (table) => {
table.string('source').notNullable();
table.string('source').notNullable().defaultTo('seed');
});
}

Expand Down

0 comments on commit aa0c962

Please sign in to comment.