final touches for beta skymoney (at least i think)

This commit is contained in:
2026-01-18 00:00:44 -06:00
parent 4eae966f96
commit f4f0ae5df2
161 changed files with 26016 additions and 1966 deletions

View File

@@ -0,0 +1,26 @@
/*
Warnings:
- The values [irregular] on the enum `IncomeFrequency` will be removed. If these variants are still used in the database, this will fail.
- You are about to drop the column `fundingStrategy` on the `User` table. All the data in the column will be lost.
- You are about to drop the column `typicalIncomeCents` on the `User` table. All the data in the column will be lost.
*/
-- AlterEnum
BEGIN;
CREATE TYPE "IncomeFrequency_new" AS ENUM ('weekly', 'biweekly', 'monthly');
ALTER TABLE "User" ALTER COLUMN "incomeFrequency" DROP DEFAULT;
ALTER TABLE "User" ALTER COLUMN "incomeFrequency" TYPE "IncomeFrequency_new" USING ("incomeFrequency"::text::"IncomeFrequency_new");
ALTER TYPE "IncomeFrequency" RENAME TO "IncomeFrequency_old";
ALTER TYPE "IncomeFrequency_new" RENAME TO "IncomeFrequency";
DROP TYPE "IncomeFrequency_old";
ALTER TABLE "User" ALTER COLUMN "incomeFrequency" SET DEFAULT 'biweekly';
COMMIT;
-- AlterTable
ALTER TABLE "User" DROP COLUMN "fundingStrategy",
DROP COLUMN "typicalIncomeCents",
ALTER COLUMN "incomeFrequency" SET DEFAULT 'biweekly';
-- DropEnum
DROP TYPE "FundingStrategy";