mirror of
https://github.com/fsolla/teqo.git
synced 2026-11-26 21:53:06 +00:00
Drops signalSource/triangulated from municipalityUpdate (migration simplify_municipality_signal_fields), rewrites signal-type labels for the field team, and treats any adversary signal as confirmed in E11 (P1 triage 1). Also fixes the stale post-B43 leader-home e2e and lowers a drifted bypass pin.
13 lines
584 B
TypeScript
13 lines
584 B
TypeScript
import { MigrateUpArgs, MigrateDownArgs, sql } from '@payloadcms/db-postgres'
|
|
|
|
export async function up({ db, payload, req }: MigrateUpArgs): Promise<void> {
|
|
await db.execute(sql`
|
|
ALTER TABLE "municipality_update" DROP COLUMN "signal_source";
|
|
ALTER TABLE "municipality_update" DROP COLUMN "triangulated";`)
|
|
}
|
|
|
|
export async function down({ db, payload, req }: MigrateDownArgs): Promise<void> {
|
|
await db.execute(sql`
|
|
ALTER TABLE "municipality_update" ADD COLUMN "signal_source" varchar;
|
|
ALTER TABLE "municipality_update" ADD COLUMN "triangulated" boolean DEFAULT false;`)
|
|
}
|