diff --git a/.github/workflows/node.js.yml b/.github/workflows/node.js.yml index 82094f0..9967351 100644 --- a/.github/workflows/node.js.yml +++ b/.github/workflows/node.js.yml @@ -9,21 +9,20 @@ on: jobs: build: - runs-on: ubuntu-latest strategy: matrix: - node-version: [20.x, 22.x] + node-version: [22.x] # See supported Node.js release schedule at https://nodejs.org/en/about/releases/ steps: - - uses: actions/checkout@v4 - - name: Use Node.js ${{ matrix.node-version }} - uses: actions/setup-node@v4 - with: - node-version: ${{ matrix.node-version }} - cache: 'npm' - - run: npm ci - - run: npx prisma generate - - run: npm run build --if-present + - uses: actions/checkout@v4 + - name: Use Node.js ${{ matrix.node-version }} + uses: actions/setup-node@v4 + with: + node-version: ${{ matrix.node-version }} + cache: "npm" + - run: npm ci + - run: npx prisma generate + - run: npm run build --if-present diff --git a/prisma/migrations/20241125212024_change_faculty/migration.sql b/prisma/migrations/20241125212024_change_faculty/migration.sql deleted file mode 100644 index d00d3ae..0000000 --- a/prisma/migrations/20241125212024_change_faculty/migration.sql +++ /dev/null @@ -1,41 +0,0 @@ -/* - Warnings: - - - You are about to drop the column `courseID` on the `Rating` table. All the data in the column will be lost. - - You are about to drop the column `facultyID` on the `Rating` table. All the data in the column will be lost. - - A unique constraint covering the columns `[uid]` on the table `Faculty` will be added. If there are existing duplicate values, this will fail. - - Added the required column `courseName` to the `Rating` table without a default value. This is not possible if the table is not empty. - - Added the required column `courseNumber` to the `Rating` table without a default value. This is not possible if the table is not empty. - - Added the required column `courseSubject` to the `Rating` table without a default value. This is not possible if the table is not empty. - - Added the required column `profBannerId` to the `Rating` table without a default value. This is not possible if the table is not empty. - - Added the required column `profDisplayName` to the `Rating` table without a default value. This is not possible if the table is not empty. - - Added the required column `termTaken` to the `Rating` table without a default value. This is not possible if the table is not empty. - - Added the required column `yearTaken` to the `Rating` table without a default value. This is not possible if the table is not empty. - -*/ --- DropForeignKey -ALTER TABLE "Rating" DROP CONSTRAINT "Rating_courseID_fkey"; - --- DropForeignKey -ALTER TABLE "Rating" DROP CONSTRAINT "Rating_facultyID_fkey"; - --- AlterTable -ALTER TABLE "Faculty" ADD COLUMN "uid" TEXT NOT NULL DEFAULT 'undefined'; - --- AlterTable -ALTER TABLE "Rating" DROP COLUMN "courseID", -DROP COLUMN "facultyID", -ADD COLUMN "courseName" TEXT NOT NULL, -ADD COLUMN "courseNumber" TEXT NOT NULL, -ADD COLUMN "courseSubject" TEXT NOT NULL, -ADD COLUMN "facultyId" INTEGER, -ADD COLUMN "profBannerId" TEXT NOT NULL, -ADD COLUMN "profDisplayName" TEXT NOT NULL, -ADD COLUMN "termTaken" INTEGER NOT NULL, -ADD COLUMN "yearTaken" INTEGER NOT NULL; - --- CreateIndex -CREATE UNIQUE INDEX "Faculty_uid_key" ON "Faculty"("uid"); - --- AddForeignKey -ALTER TABLE "Rating" ADD CONSTRAINT "Rating_facultyId_fkey" FOREIGN KEY ("facultyId") REFERENCES "Faculty"("id") ON DELETE SET NULL ON UPDATE CASCADE; diff --git a/prisma/migrations/20241125212317_change_faculty/migration.sql b/prisma/migrations/20241125212317_change_faculty/migration.sql deleted file mode 100644 index fd6d446..0000000 --- a/prisma/migrations/20241125212317_change_faculty/migration.sql +++ /dev/null @@ -1,2 +0,0 @@ --- AlterTable -ALTER TABLE "Faculty" ALTER COLUMN "uid" DROP DEFAULT;