"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.up = up;
exports.down = down;
const kysely_1 = require("kysely");
async function up(db) {
    await (0, kysely_1.sql) `ALTER TABLE "plugin" ADD "templates" jsonb NOT NULL DEFAULT '[]';`.execute(db);
    await (0, kysely_1.sql) `ALTER TABLE "plugin" ADD "sha256hash" bytea NOT NULL DEFAULT decode('20464b37ad726d03d878d38d873c40a52d1fdfb754feda956ebb464afd689e2f', 'hex');`.execute(db);
    await (0, kysely_1.sql) `ALTER TABLE "plugin" ALTER COLUMN "sha256hash" DROP DEFAULT;`.execute(db);
    await (0, kysely_1.sql) `ALTER TABLE "plugin" ALTER COLUMN "templates" DROP DEFAULT;`.execute(db);
}
async function down(db) {
    await (0, kysely_1.sql) `ALTER TABLE "plugin" DROP COLUMN "templates";`.execute(db);
    await (0, kysely_1.sql) `ALTER TABLE "plugin" DROP COLUMN "sha256hash";`.execute(db);
}
//# sourceMappingURL=1779806699547-AddPluginTemplates.js.map