1
0
mirror of https://github.com/Unleash/unleash.git synced 2025-01-01 00:08:27 +01:00
unleash.unleash/src/migrations/20231019110154-rename-message-banners-table-to-banners.js
Nuno Góis 957546e305
refactor: rename message banners to banners (#5098)
https://linear.app/unleash/issue/2-1531/rename-message-banners-to-banners

This renames "message banners" to "banners".

I also added support for external banners coming from a `banner` flag
instead of only `messageBanner` flag, so we can eventually migrate to
the new one in the future if we want.
2023-10-19 13:18:25 +01:00

10 lines
226 B
JavaScript

'use strict';
exports.up = function (db, cb) {
db.runSql(`ALTER TABLE message_banners RENAME TO banners`, cb);
};
exports.down = function (db, cb) {
db.runSql(`ALTER TABLE banners RENAME TO message_banners`, cb);
};