move-database-to-postgres-only #115

Merged
jkeffects merged 3 commits from move-database-to-postgres-only into develop 2025-06-07 13:39:21 +00:00
Showing only changes of commit feb03ba99d - Show all commits

View file

@ -49,6 +49,7 @@ import {
protocol_printout_table, protocol_printout_table,
} from "./baseSchemaTables/protocol"; } from "./baseSchemaTables/protocol";
import { query_table, template_table, template_usage_table } from "./baseSchemaTables/query_template"; import { query_table, template_table, template_usage_table } from "./baseSchemaTables/query_template";
import { availableTemplates } from "../type/templateTypes";
export class CreateSchema1749296280721 implements MigrationInterface { export class CreateSchema1749296280721 implements MigrationInterface {
name = "CreateSchema1749296280721"; name = "CreateSchema1749296280721";
@ -95,13 +96,11 @@ export class CreateSchema1749296280721 implements MigrationInterface {
.createQueryBuilder() .createQueryBuilder()
.insert() .insert()
.into(template_usage_table.name) .into(template_usage_table.name)
.values([ .values(
{ scope: "newsletter" }, availableTemplates.map((at) => ({
{ scope: "protocol" }, scope: at,
{ scope: "member" }, }))
{ scope: "listprint" }, )
{ scope: "listprint.member" },
])
.orIgnore() .orIgnore()
.execute(); .execute();