chore(payload): add radio traffic sprint migration
Ultraworked with [Sisyphus](https://github.com/code-yeongyu/oh-my-openagent) Co-authored-by: Sisyphus <clio-agent@sisyphuslabs.ai>
This commit is contained in:
parent
2bff75a6de
commit
d65573358f
3 changed files with 20702 additions and 1 deletions
20672
src/migrations/20260903_053419.json
Normal file
20672
src/migrations/20260903_053419.json
Normal file
File diff suppressed because it is too large
Load diff
11
src/migrations/20260903_053419.ts
Normal file
11
src/migrations/20260903_053419.ts
Normal file
|
|
@ -0,0 +1,11 @@
|
|||
import { MigrateUpArgs, MigrateDownArgs, sql } from '@payloadcms/db-postgres'
|
||||
|
||||
export async function up({ db, payload, req }: MigrateUpArgs): Promise<void> {
|
||||
await db.execute(sql`
|
||||
ALTER TABLE "profiles" ADD COLUMN "progression_minigames_radio_traffic_best_sprint_time_ms" numeric DEFAULT 0;`)
|
||||
}
|
||||
|
||||
export async function down({ db, payload, req }: MigrateDownArgs): Promise<void> {
|
||||
await db.execute(sql`
|
||||
ALTER TABLE "profiles" DROP COLUMN "progression_minigames_radio_traffic_best_sprint_time_ms";`)
|
||||
}
|
||||
|
|
@ -15,6 +15,9 @@ import * as migration_20260901_014006_add_assignment_transfer_event_target from
|
|||
import * as migration_20260901_213108_add_ticket_votes_and_edit_history from './20260901_213108_add_ticket_votes_and_edit_history';
|
||||
import * as migration_20260901_222200_add_admin_page_permissions from './20260901_222200_add_admin_page_permissions';
|
||||
import * as migration_20260902_195336_add_medal_backgrounds from './20260902_195336_add_medal_backgrounds';
|
||||
import * as migration_20260903_035544 from './20260903_035544';
|
||||
import * as migration_20260903_044047 from './20260903_044047';
|
||||
import * as migration_20260903_053419 from './20260903_053419';
|
||||
|
||||
export const migrations = [
|
||||
{
|
||||
|
|
@ -100,6 +103,21 @@ export const migrations = [
|
|||
{
|
||||
up: migration_20260902_195336_add_medal_backgrounds.up,
|
||||
down: migration_20260902_195336_add_medal_backgrounds.down,
|
||||
name: '20260902_195336_add_medal_backgrounds'
|
||||
name: '20260902_195336_add_medal_backgrounds',
|
||||
},
|
||||
{
|
||||
up: migration_20260903_035544.up,
|
||||
down: migration_20260903_035544.down,
|
||||
name: '20260903_035544',
|
||||
},
|
||||
{
|
||||
up: migration_20260903_044047.up,
|
||||
down: migration_20260903_044047.down,
|
||||
name: '20260903_044047',
|
||||
},
|
||||
{
|
||||
up: migration_20260903_053419.up,
|
||||
down: migration_20260903_053419.down,
|
||||
name: '20260903_053419'
|
||||
},
|
||||
];
|
||||
|
|
|
|||
Loading…
Reference in a new issue