Skip to content

Commit

Permalink
add missions table
Browse files Browse the repository at this point in the history
Co-authored-by: Nicolas Lepage <[email protected]>
  • Loading branch information
laura-bergoens and nlepage committed Nov 21, 2024
1 parent 2109723 commit 73f2e2e
Showing 1 changed file with 14 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -115,6 +115,20 @@ const up = async function (knex) {
table.text('link');
table.string('locale');
});
await knex.schema.withSchema(SCHEMA_NAME).createTable('missions', function (table) {
table.string('id').primary();
table.string('status');
table.jsonb('name_i18n');
table.jsonb('content');
table.jsonb('learningObjectives_i18n');
table.jsonb('validatedObjectives_i18n');
table.string('introductionMediaType');
table.text('introductionMediaUrl');
table.jsonb('introductionMediaAlt_i18n');
table.text('documentationUrl');
table.text('cardImageUrl');
table.string('competenceId').references('id').inTable(`${SCHEMA_NAME}.competences`);
});
};

const down = function (knex) {
Expand Down

0 comments on commit 73f2e2e

Please sign in to comment.