Files
anouma/migrations/20260917_090000_contact_details.ts

30 lines
804 B
TypeScript

import type { MigrateUpArgs } from "@payloadcms/db-postgres";
/** Applies the contact details approved for the public website. */
export async function up({ payload }: MigrateUpArgs): Promise<void> {
await payload.updateGlobal({
slug: "contact",
data: {
email: "info@anouma.org",
phone: "+49 151 53611786",
region: "Haldenweg 3, 79853 Lenzkirch",
},
overrideAccess: true,
});
await payload.updateGlobal({
slug: "booking-settings",
data: {
locationName: "Anouma",
street: "Haldenweg 3",
postalCode: "79853",
city: "Lenzkirch",
country: "Deutschland",
},
overrideAccess: true,
});
}
// Content entered by the site owner must not be discarded during a schema rollback.
export async function down(): Promise<void> {}