/* Warnings: - Added the required column `accountType` to the `BranchBank` table without a default value. This is not possible if the table is not empty. - Added the required column `bankBranch` to the `BranchBank` table without a default value. This is not possible if the table is not empty. - Added the required column `currentlyUse` to the `BranchBank` table without a default value. This is not possible if the table is not empty. - Made the column `branchId` on table `BranchBank` required. This step will fail if there are existing NULL values in that column. */ -- DropForeignKey ALTER TABLE "BranchBank" DROP CONSTRAINT "BranchBank_branchId_fkey"; -- AlterTable ALTER TABLE "BranchBank" ADD COLUMN "accountType" TEXT NOT NULL, ADD COLUMN "bankBranch" TEXT NOT NULL, ADD COLUMN "currentlyUse" BOOLEAN NOT NULL, ALTER COLUMN "branchId" SET NOT NULL; -- AddForeignKey ALTER TABLE "BranchBank" ADD CONSTRAINT "BranchBank_branchId_fkey" FOREIGN KEY ("branchId") REFERENCES "Branch"("id") ON DELETE CASCADE ON UPDATE CASCADE;