hydra/src/main/migrations/20240913213944_update_user_language.ts
2024-09-13 19:45:37 -03:00

13 lines
350 B
TypeScript

import type { HydraMigration } from "@main/knex-client";
import type { Knex } from "knex";
export const UpdateUserLanguage: HydraMigration = {
name: "UpdateUserLanguage",
up: async (knex: Knex) => {
await knex("user_preferences")
.update("language", "pt-BR")
.where("language", "pt");
},
down: async (_knex: Knex) => {},
};