diff --git a/apps/backend/src/donations/goal.entity.ts b/apps/backend/src/donations/goal.entity.ts index 7363aba..93c25e5 100644 --- a/apps/backend/src/donations/goal.entity.ts +++ b/apps/backend/src/donations/goal.entity.ts @@ -13,7 +13,7 @@ export class Goal { }) id!: number; - @Column({ type: 'int' }) + @Column({ name: 'admin_target_amount', type: 'int' }) targetAmount!: number; @Column({ type: 'text', nullable: true }) diff --git a/apps/backend/src/migrations/1781161660-rename-goal-columns.ts b/apps/backend/src/migrations/1781161660-rename-goal-columns.ts new file mode 100644 index 0000000..d9428b1 --- /dev/null +++ b/apps/backend/src/migrations/1781161660-rename-goal-columns.ts @@ -0,0 +1,15 @@ +import { MigrationInterface, QueryRunner } from 'typeorm'; + +export class RenameGoalColumns1781161660 implements MigrationInterface { + public async up(queryRunner: QueryRunner): Promise { + await queryRunner.query( + `ALTER TABLE "goals" RENAME COLUMN "targetAmount" TO "admin_target_amount"`, + ); + } + + public async down(queryRunner: QueryRunner): Promise { + await queryRunner.query( + `ALTER TABLE "goals" RENAME COLUMN "admin_target_amount" TO "targetAmount"`, + ); + } +} diff --git a/apps/frontend/src/components/DonationGoal/EditDonationGoal.tsx b/apps/frontend/src/components/DonationGoal/EditDonationGoal.tsx index 00a60d4..1e237f1 100644 --- a/apps/frontend/src/components/DonationGoal/EditDonationGoal.tsx +++ b/apps/frontend/src/components/DonationGoal/EditDonationGoal.tsx @@ -53,11 +53,11 @@ export default function EditDonationGoal({ return (
e.stopPropagation()} > {/* Header */} -
+

Edit Donation Goal

@@ -72,7 +72,7 @@ export default function EditDonationGoal({
{/* Title Field */} -
+
{/* Goal Amount Field */} -
+
{/* Start Date Field */} -
+
@@ -136,7 +136,7 @@ export default function EditDonationGoal({
{/* End Date Field */} -
+
@@ -159,7 +159,7 @@ export default function EditDonationGoal({
{/* Bottom Buttons */} -
+