mirror of
https://github.com/supabase/supabase.git
synced 2026-10-16 14:49:10 +03:00
49 lines
1.3 KiB
TypeScript
49 lines
1.3 KiB
TypeScript
import { DatabaseUpgradeProgress } from '@supabase/shared-types/out/events'
|
|
|
|
export const DATABASE_UPGRADE_STEPS = [
|
|
{
|
|
key: DatabaseUpgradeProgress.Started,
|
|
title: 'Prepare new server',
|
|
},
|
|
{
|
|
key: DatabaseUpgradeProgress.LaunchedUpgradedInstance,
|
|
title: 'Get new server ready for migration',
|
|
},
|
|
{
|
|
key: DatabaseUpgradeProgress.DetachedVolumeFromUpgradedInstance,
|
|
title: 'Execute pre-upgrade checks',
|
|
},
|
|
{
|
|
key: DatabaseUpgradeProgress.AttachedVolumeToOriginalInstance,
|
|
title: 'Shut down API services',
|
|
offline: true,
|
|
},
|
|
{
|
|
key: DatabaseUpgradeProgress.InitiatedDataUpgrade,
|
|
title: 'Set up destination database',
|
|
offline: true,
|
|
},
|
|
{
|
|
key: DatabaseUpgradeProgress.CompletedDataUpgrade,
|
|
title: 'Execute database migration',
|
|
offline: true,
|
|
},
|
|
{
|
|
key: DatabaseUpgradeProgress.DetachedVolumeFromOriginalInstance,
|
|
title: 'Update database extensions',
|
|
},
|
|
{
|
|
key: DatabaseUpgradeProgress.AttachedVolumeToUpgradedInstance,
|
|
title: 'Optimize database',
|
|
},
|
|
]
|
|
|
|
/**
|
|
* Special step shown when performing post-upgrade backup.
|
|
* This step is appended to the upgrade steps table in the backingUp state.
|
|
*/
|
|
export const BACKUP_STEP = {
|
|
key: 'backup',
|
|
title: 'Perform full backup',
|
|
} as const
|