Add migration scripts and preload participation awards script
- Created migration index file to manage database migrations. - Added script to preload participation awards and related blog posts into the CMS. - Introduced new types and default data for application phases. - Added award articles data structure for the upcoming awards.
This commit is contained in:
@@ -9,6 +9,7 @@ import { imageHero1 } from './image-hero-1'
|
||||
import { post1 } from './post-1'
|
||||
import { post2 } from './post-2'
|
||||
import { post3 } from './post-3'
|
||||
import { defaultApplicationPhaseData } from '@/spa/applicationPhase'
|
||||
import { defaultFooterData, defaultHeaderData } from '@/spa/cmsNavigation'
|
||||
import { defaultSiteSettings } from '@/spa/siteSettings'
|
||||
|
||||
@@ -22,7 +23,7 @@ const collections: CollectionSlug[] = [
|
||||
'search',
|
||||
]
|
||||
|
||||
const globals: GlobalSlug[] = ['header', 'footer', 'site-settings']
|
||||
const globals: GlobalSlug[] = ['header', 'footer', 'site-settings', 'application-phase']
|
||||
|
||||
const categories = ['Technology', 'News', 'Finance', 'Design', 'Software', 'Engineering']
|
||||
|
||||
@@ -233,6 +234,10 @@ export const seed = async ({
|
||||
slug: 'site-settings',
|
||||
data: defaultSiteSettings as never,
|
||||
}),
|
||||
payload.updateGlobal({
|
||||
slug: 'application-phase',
|
||||
data: defaultApplicationPhaseData as never,
|
||||
}),
|
||||
])
|
||||
|
||||
payload.logger.info('Seeded database successfully!')
|
||||
|
||||
Reference in New Issue
Block a user