diff --git a/backend/services/core/migrations/20230822094308_add_custom_author_type_to_articles.ts b/backend/services/core/migrations/20230822094308_add_custom_author_type_to_articles.ts index 3ab1d6e0..d7184a9f 100644 --- a/backend/services/core/migrations/20230822094308_add_custom_author_type_to_articles.ts +++ b/backend/services/core/migrations/20230822094308_add_custom_author_type_to_articles.ts @@ -99,7 +99,7 @@ export async function down(knex: Knex): Promise { }); await knex.raw(` UPDATE articles - SET author_id = authors.member_id + SET author_id = authors.member_id, author_type = 'Member' FROM authors WHERE authors.id = articles.author_id @@ -107,7 +107,7 @@ export async function down(knex: Knex): Promise { `); await knex.raw(` UPDATE articles - SET author_id = authors.mandate_id + SET author_id = authors.mandate_id, author_type = 'Mandate' FROM authors WHERE authors.id = articles.author_id