refactor: rename all "popup" strings to "alert"

This commit is contained in:
Hachi-R
2024-11-06 20:44:56 -03:00
parent e7acce2dfc
commit aaee27732d
8 changed files with 16 additions and 16 deletions

View File

@@ -1,17 +1,17 @@
import type { HydraMigration } from "@main/knex-client";
import type { Knex } from "knex";
export const AddDisableNsfwPopupColumn: HydraMigration = {
name: "AddDisableNsfwPopupColumn",
export const AddDisableNsfwAlertColumn: HydraMigration = {
name: "AddDisableNsfwAlertColumn",
up: (knex: Knex) => {
return knex.schema.alterTable("user_preferences", (table) => {
return table.boolean("disableNsfwPopup").notNullable().defaultTo(0);
return table.boolean("disableNsfwAlert").notNullable().defaultTo(0);
});
},
down: async (knex: Knex) => {
return knex.schema.alterTable("user_preferences", (table) => {
return table.dropColumn("disableNsfwPopup");
return table.dropColumn("disableNsfwAlert");
});
},
};