22 lines
1.1 KiB
SQL
22 lines
1.1 KiB
SQL
/*
|
|
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;
|