Refine CRUD for artists
This commit is contained in:
21
prisma/migrations/20250625130123_artist_social/migration.sql
Normal file
21
prisma/migrations/20250625130123_artist_social/migration.sql
Normal file
@ -0,0 +1,21 @@
|
||||
/*
|
||||
Warnings:
|
||||
|
||||
- You are about to drop the column `icon` on the `Social` table. All the data in the column will be lost.
|
||||
- You are about to drop the column `name` on the `Social` table. All the data in the column will be lost.
|
||||
- You are about to drop the column `type` on the `Social` table. All the data in the column will be lost.
|
||||
- You are about to drop the column `url` on the `Social` table. All the data in the column will be lost.
|
||||
- Added the required column `isPrimary` to the `Social` table without a default value. This is not possible if the table is not empty.
|
||||
- Added the required column `platform` to the `Social` table without a default value. This is not possible if the table is not empty.
|
||||
- Made the column `handle` on table `Social` required. This step will fail if there are existing NULL values in that column.
|
||||
|
||||
*/
|
||||
-- AlterTable
|
||||
ALTER TABLE "Social" DROP COLUMN "icon",
|
||||
DROP COLUMN "name",
|
||||
DROP COLUMN "type",
|
||||
DROP COLUMN "url",
|
||||
ADD COLUMN "isPrimary" BOOLEAN NOT NULL,
|
||||
ADD COLUMN "link" TEXT,
|
||||
ADD COLUMN "platform" TEXT NOT NULL,
|
||||
ALTER COLUMN "handle" SET NOT NULL;
|
Reference in New Issue
Block a user