Skip to content

Commit

Permalink
MAP-1839 adding view to simulate flyway db for generic-service db ref…
Browse files Browse the repository at this point in the history
…resh requirments
  • Loading branch information
michalnawrockidj committed Nov 21, 2024
1 parent fcba255 commit b577e54
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions migrations/20241120000001_form_db.js
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
exports.up = async knex => {
await knex.raw(`CREATE VIEW flyway_schema_history AS SELECT name as version FROM knex_migrations ORDER BY id;`)
}
exports.down = async knex => {
await knex.raw(`drop VIEW flyway_schema_history`)
}

0 comments on commit b577e54

Please sign in to comment.