* feat(gallery): per-event toggle to hide the logo on the password page (#894) * fix(admin): harden login_logo_visible coercion for SQLite + string booleans (#894) --------- Co-authored-by: Paul Nothaft <[email protected]>
This commit is contained in:
co-authored by
Paul Nothaft
parent
926a4a540d
commit
08ff9f20e7
@@ -0,0 +1,21 @@
|
||||
/**
|
||||
* Migration 166: per-event toggle to hide the branding logo on the
|
||||
* gallery password page (#894).
|
||||
*
|
||||
* NULL (the default) keeps today's behaviour — the global branding logo is
|
||||
* shown above the password form. Only an explicit `false` hides it for
|
||||
* that gallery; the admin login page and other surfaces are unaffected.
|
||||
*/
|
||||
exports.up = async function (knex) {
|
||||
if (await knex.schema.hasColumn('events', 'login_logo_visible')) return;
|
||||
await knex.schema.alterTable('events', (t) => {
|
||||
t.boolean('login_logo_visible').nullable();
|
||||
});
|
||||
};
|
||||
|
||||
exports.down = async function (knex) {
|
||||
if (!(await knex.schema.hasColumn('events', 'login_logo_visible'))) return;
|
||||
await knex.schema.alterTable('events', (t) => {
|
||||
t.dropColumn('login_logo_visible');
|
||||
});
|
||||
};
|
||||
Reference in New Issue
Block a user