-- CreateEnum
CREATE TYPE "FinancialAccountStatus" AS ENUM ('Active', 'Failed');

-- AlterTable
ALTER TABLE "FinancialAccount" ADD COLUMN     "status" "FinancialAccountStatus" NOT NULL DEFAULT 'Active';

-- Update any existing "Failed" transfers to "Completed".
-- As of the time of this migration, all of existing "Failed" transfers should have been handled
-- by ops.  This is a stopgap to prevent users from accidentally retrying these transfers in our
-- new UI.
UPDATE "Transfer"
SET "status" = 'Completed'
WHERE "status" = 'Failed';
