Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion apps/web/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "web",
"version": "0.11.5",
"version": "0.11.6",
"type": "module",
"private": true,
"scripts": {
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
/*
Warnings:

- You are about to drop the column `registryId` on the `organization` table. All the data in the column will be lost.

*/
-- DropForeignKey
ALTER TABLE "organization" DROP CONSTRAINT "organization_registryId_fkey";

-- AlterTable
ALTER TABLE "organization" DROP COLUMN "registryId";

-- CreateTable
CREATE TABLE "_OrganizationToRegistry" (
"A" TEXT NOT NULL,
"B" TEXT NOT NULL,

CONSTRAINT "_OrganizationToRegistry_AB_pkey" PRIMARY KEY ("A","B")
);

-- CreateIndex
CREATE INDEX "_OrganizationToRegistry_B_index" ON "_OrganizationToRegistry"("B");

-- AddForeignKey
ALTER TABLE "_OrganizationToRegistry" ADD CONSTRAINT "_OrganizationToRegistry_A_fkey" FOREIGN KEY ("A") REFERENCES "organization"("id") ON DELETE CASCADE ON UPDATE CASCADE;

-- AddForeignKey
ALTER TABLE "_OrganizationToRegistry" ADD CONSTRAINT "_OrganizationToRegistry_B_fkey" FOREIGN KEY ("B") REFERENCES "Registry"("id") ON DELETE CASCADE ON UPDATE CASCADE;
3 changes: 1 addition & 2 deletions packages/db/prisma/schema.prisma
Original file line number Diff line number Diff line change
Expand Up @@ -129,8 +129,7 @@ model Organization {
projects Project[]
servers Server[]
sshKeys SSHKey[]
registries Registry? @relation(fields: [registryId], references: [id])
registryId String?
registries Registry[]
notificationProviders NotificationProvider[]
notifications Notification[]
storageDestinations StorageDestination[]
Expand Down
Loading