Ghost/core/server/data/migrations
Fabien 'egg' O'Carroll b36d0cc1c4
🐛 Fixed idempotentcy of addPermissionToRole util (#13685)
refs https://github.com/TryGhost/Team/issues/1178

The "up" migration that this util generates correctly throws if the
pre-requisite data cannot be found in the database. The "down" migration
however was incorrectly mirroring this behaviour of throwing - which
meant that it wasn't idempotent, as it does not require a permission or
role to existing if it wants to move relations between them.
2021-11-01 09:27:50 +00:00
..
hooks Removed settings populateDefaults pre-migration 2021-02-10 10:34:08 +13:00
init Reworked init migrations to use async/await (#13635) 2021-10-21 11:19:59 +01:00
versions Removed NOT NULL constraint from portal_title (#13659) 2021-10-22 14:14:49 +02:00
utils.js 🐛 Fixed idempotentcy of addPermissionToRole util (#13685) 2021-11-01 09:27:50 +00:00