-
-
Notifications
You must be signed in to change notification settings - Fork 393
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
🗃️ Make subscription fields required
- Loading branch information
Showing
3 changed files
with
25 additions
and
6 deletions.
There are no files selected for viewing
16 changes: 16 additions & 0 deletions
16
...database/prisma/migrations/20250217103625_make_subscription_fields_required/migration.sql
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
/* | ||
Warnings: | ||
- You are about to drop the column `interval_count` on the `subscriptions` table. All the data in the column will be lost. | ||
- Made the column `currency` on table `subscriptions` required. This step will fail if there are existing NULL values in that column. | ||
- Made the column `interval` on table `subscriptions` required. This step will fail if there are existing NULL values in that column. | ||
- Made the column `amount` on table `subscriptions` required. This step will fail if there are existing NULL values in that column. | ||
- Made the column `status` on table `subscriptions` required. This step will fail if there are existing NULL values in that column. | ||
*/ | ||
-- AlterTable | ||
ALTER TABLE "subscriptions" DROP COLUMN "interval_count", | ||
ALTER COLUMN "currency" SET NOT NULL, | ||
ALTER COLUMN "interval" SET NOT NULL, | ||
ALTER COLUMN "amount" SET NOT NULL, | ||
ALTER COLUMN "status" SET NOT NULL; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters