feat: add language migration

This commit is contained in:
Zamitto 2024-09-13 19:45:37 -03:00
parent 863a3b7d1f
commit 2ea6285744
3 changed files with 20 additions and 3 deletions

View file

@ -0,0 +1,13 @@
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) => {},
};