mirror of
https://github.com/hydralauncher/hydra.git
synced 2026-01-26 12:21:03 +00:00
19 lines
479 B
TypeScript
19 lines
479 B
TypeScript
import type { HydraMigration } from "@main/knex-client";
|
|
import type { Knex } from "knex";
|
|
|
|
export const RepackUris: HydraMigration = {
|
|
name: "RepackUris",
|
|
up: async (knex: Knex) => {
|
|
await knex.schema.alterTable("repack", (table) => {
|
|
table.text("uris").notNullable().defaultTo("[]");
|
|
});
|
|
},
|
|
|
|
down: async (knex: Knex) => {
|
|
await knex.schema.alterTable("repack", (table) => {
|
|
table.integer("page");
|
|
table.dropColumn("uris");
|
|
});
|
|
},
|
|
};
|