import type { PoolClient } from 'pg'; import { addUpdatedAtTrigger } from '../../../lib/postgres/updatedAtTrigger.js'; /** * Keep `updated_at` current on the admin user table. No code set it, so it stayed * at the creation time, and what reads it (the sitemap's , the API, * webhook payloads) never saw a change. See lib/postgres/updatedAtTrigger.ts. */ export default async (connection: PoolClient) => { for (const table of ['admin_user']) { await addUpdatedAtTrigger(connection, table); } };