|
| 1 | +/* |
| 2 | + Warnings: |
| 3 | +
|
| 4 | + - You are about to drop the column `unchanged` on the `Course` table. All the data in the column will be lost. |
| 5 | + - You are about to drop the column `unchanged` on the `Domain` table. All the data in the column will be lost. |
| 6 | + - You are about to drop the column `domainName` on the `Graph` table. All the data in the column will be lost. |
| 7 | + - You are about to drop the column `lectureName` on the `Graph` table. All the data in the column will be lost. |
| 8 | + - You are about to drop the column `subjectName` on the `Graph` table. All the data in the column will be lost. |
| 9 | + - You are about to drop the column `unchanged` on the `Graph` table. All the data in the column will be lost. |
| 10 | + - You are about to drop the column `unchanged` on the `Lecture` table. All the data in the column will be lost. |
| 11 | + - You are about to drop the column `unchanged` on the `Link` table. All the data in the column will be lost. |
| 12 | + - You are about to drop the column `unchanged` on the `Program` table. All the data in the column will be lost. |
| 13 | + - You are about to drop the column `unchanged` on the `Subject` table. All the data in the column will be lost. |
| 14 | + - The primary key for the `_AdminRelation` table will be changed. If it partially fails, the table could be left without primary key constraint. |
| 15 | + - The primary key for the `_CourseToProgram` table will be changed. If it partially fails, the table could be left without primary key constraint. |
| 16 | + - The primary key for the `_DomainRelation` table will be changed. If it partially fails, the table could be left without primary key constraint. |
| 17 | + - The primary key for the `_EditorRelation` table will be changed. If it partially fails, the table could be left without primary key constraint. |
| 18 | + - The primary key for the `_LectureToSubject` table will be changed. If it partially fails, the table could be left without primary key constraint. |
| 19 | + - The primary key for the `_SubjectRelation` table will be changed. If it partially fails, the table could be left without primary key constraint. |
| 20 | + - A unique constraint covering the columns `[A,B]` on the table `_AdminRelation` will be added. If there are existing duplicate values, this will fail. |
| 21 | + - A unique constraint covering the columns `[A,B]` on the table `_CourseToProgram` will be added. If there are existing duplicate values, this will fail. |
| 22 | + - A unique constraint covering the columns `[A,B]` on the table `_DomainRelation` will be added. If there are existing duplicate values, this will fail. |
| 23 | + - A unique constraint covering the columns `[A,B]` on the table `_EditorRelation` will be added. If there are existing duplicate values, this will fail. |
| 24 | + - A unique constraint covering the columns `[A,B]` on the table `_LectureToSubject` will be added. If there are existing duplicate values, this will fail. |
| 25 | + - A unique constraint covering the columns `[A,B]` on the table `_SubjectRelation` will be added. If there are existing duplicate values, this will fail. |
| 26 | +
|
| 27 | +*/ |
| 28 | +-- AlterTable |
| 29 | +ALTER TABLE "Course" DROP COLUMN "unchanged"; |
| 30 | + |
| 31 | +-- AlterTable |
| 32 | +ALTER TABLE "Domain" DROP COLUMN "unchanged"; |
| 33 | + |
| 34 | +-- AlterTable |
| 35 | +ALTER TABLE "Graph" DROP COLUMN "domainName", |
| 36 | +DROP COLUMN "lectureName", |
| 37 | +DROP COLUMN "subjectName", |
| 38 | +DROP COLUMN "unchanged"; |
| 39 | + |
| 40 | +-- AlterTable |
| 41 | +ALTER TABLE "Lecture" DROP COLUMN "unchanged", |
| 42 | +ALTER COLUMN "order" DROP DEFAULT; |
| 43 | + |
| 44 | +-- AlterTable |
| 45 | +ALTER TABLE "Link" DROP COLUMN "unchanged"; |
| 46 | + |
| 47 | +-- AlterTable |
| 48 | +ALTER TABLE "Program" DROP COLUMN "unchanged"; |
| 49 | + |
| 50 | +-- AlterTable |
| 51 | +ALTER TABLE "Subject" DROP COLUMN "unchanged"; |
| 52 | + |
| 53 | +-- AlterTable |
| 54 | +ALTER TABLE "_AdminRelation" DROP CONSTRAINT "_AdminRelation_AB_pkey"; |
| 55 | + |
| 56 | +-- AlterTable |
| 57 | +ALTER TABLE "_CourseToProgram" DROP CONSTRAINT "_CourseToProgram_AB_pkey"; |
| 58 | + |
| 59 | +-- AlterTable |
| 60 | +ALTER TABLE "_DomainRelation" DROP CONSTRAINT "_DomainRelation_AB_pkey"; |
| 61 | + |
| 62 | +-- AlterTable |
| 63 | +ALTER TABLE "_EditorRelation" DROP CONSTRAINT "_EditorRelation_AB_pkey"; |
| 64 | + |
| 65 | +-- AlterTable |
| 66 | +ALTER TABLE "_LectureToSubject" DROP CONSTRAINT "_LectureToSubject_AB_pkey"; |
| 67 | + |
| 68 | +-- AlterTable |
| 69 | +ALTER TABLE "_SubjectRelation" DROP CONSTRAINT "_SubjectRelation_AB_pkey"; |
| 70 | + |
| 71 | +-- CreateIndex |
| 72 | +CREATE UNIQUE INDEX "_AdminRelation_AB_unique" ON "_AdminRelation"("A", "B"); |
| 73 | + |
| 74 | +-- CreateIndex |
| 75 | +CREATE UNIQUE INDEX "_CourseToProgram_AB_unique" ON "_CourseToProgram"("A", "B"); |
| 76 | + |
| 77 | +-- CreateIndex |
| 78 | +CREATE UNIQUE INDEX "_DomainRelation_AB_unique" ON "_DomainRelation"("A", "B"); |
| 79 | + |
| 80 | +-- CreateIndex |
| 81 | +CREATE UNIQUE INDEX "_EditorRelation_AB_unique" ON "_EditorRelation"("A", "B"); |
| 82 | + |
| 83 | +-- CreateIndex |
| 84 | +CREATE UNIQUE INDEX "_LectureToSubject_AB_unique" ON "_LectureToSubject"("A", "B"); |
| 85 | + |
| 86 | +-- CreateIndex |
| 87 | +CREATE UNIQUE INDEX "_SubjectRelation_AB_unique" ON "_SubjectRelation"("A", "B"); |
0 commit comments