diff --git a/api/prisma/migrations/20231116075406_add_proxy_location/migration.sql b/api/prisma/migrations/20231116075406_add_proxy_location/migration.sql index 206aa1b13..15d8c65b4 100644 --- a/api/prisma/migrations/20231116075406_add_proxy_location/migration.sql +++ b/api/prisma/migrations/20231116075406_add_proxy_location/migration.sql @@ -5,18 +5,4 @@ */ -- AlterTable -ALTER TABLE "proxies" ADD COLUMN "location" TEXT NOT NULL; - --- CreateTable -CREATE TABLE "L2AggregatorPair" ( - "id" BIGSERIAL NOT NULL, - "l1_aggregator_addresss" TEXT NOT NULL, - "l2_aggregator_addresss" TEXT NOT NULL, - "active" BOOLEAN NOT NULL DEFAULT false, - "chain_id" BIGINT NOT NULL, - - CONSTRAINT "L2AggregatorPair_pkey" PRIMARY KEY ("id") -); - --- AddForeignKey -ALTER TABLE "L2AggregatorPair" ADD CONSTRAINT "L2AggregatorPair_chain_id_fkey" FOREIGN KEY ("chain_id") REFERENCES "chains"("chain_id") ON DELETE RESTRICT ON UPDATE CASCADE; +ALTER TABLE "proxies" ADD COLUMN "location" TEXT NOT NULL; \ No newline at end of file diff --git a/api/src/proxy/proxy.service.spec.ts b/api/src/proxy/proxy.service.spec.ts index 7a89ed561..8c8afefe8 100644 --- a/api/src/proxy/proxy.service.spec.ts +++ b/api/src/proxy/proxy.service.spec.ts @@ -48,7 +48,7 @@ describe('ProxyService', () => { expect(proxyObjWithoutLocation.protocol).toBe(proxyDataWithoutLocation.protocol) expect(proxyObjWithoutLocation.host).toBe(proxyDataWithoutLocation.host) expect(proxyObjWithoutLocation.port).toBe(proxyDataWithoutLocation.port) - + expect(proxyObjWithoutLocation.location).toBe(null) // The same proxy cannot be defined twice await expect(async () => { await proxy.create(proxyData)