feat: configure public contact details
This commit is contained in:
@@ -0,0 +1,29 @@
|
||||
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> {}
|
||||
@@ -1,5 +1,6 @@
|
||||
import * as migration_20260826_004425 from './20260826_004425';
|
||||
import * as migration_20260916_192252_cookie_settings from './20260916_192252_cookie_settings';
|
||||
import * as migration_20260917_090000_contact_details from './20260917_090000_contact_details';
|
||||
|
||||
export const migrations = [
|
||||
{
|
||||
@@ -12,4 +13,9 @@ export const migrations = [
|
||||
down: migration_20260916_192252_cookie_settings.down,
|
||||
name: '20260916_192252_cookie_settings'
|
||||
},
|
||||
{
|
||||
up: migration_20260917_090000_contact_details.up,
|
||||
down: migration_20260917_090000_contact_details.down,
|
||||
name: '20260917_090000_contact_details'
|
||||
},
|
||||
];
|
||||
|
||||
Reference in New Issue
Block a user