-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #58 from Callgent/feature/sandbox-service
Feature/sandbox service
- Loading branch information
Showing
22 changed files
with
255 additions
and
134 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
50 changes: 50 additions & 0 deletions
50
prisma/migrations/20240829075201_callgent_function_refactor/migration.sql
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,50 @@ | ||
/* | ||
Warnings: | ||
- You are about to drop the column `content` on the `CallgentFunction` table. All the data in the column will be lost. | ||
- You are about to drop the column `documents` on the `CallgentFunction` table. All the data in the column will be lost. | ||
- You are about to drop the column `fullCode` on the `CallgentFunction` table. All the data in the column will be lost. | ||
- You are about to drop the column `funName` on the `CallgentFunction` table. All the data in the column will be lost. | ||
- You are about to drop the column `params` on the `CallgentFunction` table. All the data in the column will be lost. | ||
- Added the required column `method` to the `CallgentFunction` table without a default value. This is not possible if the table is not empty. | ||
- Added the required column `path` to the `CallgentFunction` table without a default value. This is not possible if the table is not empty. | ||
- Added the required column `signature` to the `CallgentFunction` table without a default value. This is not possible if the table is not empty. | ||
*/ | ||
-- AlterTable | ||
ALTER TABLE "Callgent" ALTER COLUMN "tenantPk" SET DEFAULT (current_setting('tenancy.tenantPk')::int); | ||
|
||
-- AlterTable | ||
ALTER TABLE "CallgentFunction" DROP COLUMN "content", | ||
DROP COLUMN "documents", | ||
DROP COLUMN "fullCode", | ||
DROP COLUMN "funName", | ||
DROP COLUMN "params", | ||
ADD COLUMN "method" VARCHAR(15) NOT NULL, | ||
ADD COLUMN "path" VARCHAR(1000) NOT NULL, | ||
ADD COLUMN "signature" JSON NOT NULL, | ||
ADD COLUMN "summary" VARCHAR(511) NOT NULL DEFAULT '', | ||
ADD COLUMN "summary" VARCHAR(1023) NOT NULL DEFAULT '', | ||
ALTER COLUMN "tenantPk" SET DEFAULT (current_setting('tenancy.tenantPk')::int), | ||
ALTER COLUMN "name" SET DATA TYPE VARCHAR(1023); | ||
|
||
-- AlterTable | ||
ALTER TABLE "Endpoint" ALTER COLUMN "tenantPk" SET DEFAULT (current_setting('tenancy.tenantPk')::int); | ||
|
||
-- AlterTable | ||
ALTER TABLE "EndpointAuth" ALTER COLUMN "tenantPk" SET DEFAULT (current_setting('tenancy.tenantPk')::int); | ||
|
||
-- AlterTable | ||
ALTER TABLE "EventListener" ALTER COLUMN "tenantPk" SET DEFAULT (current_setting('tenancy.tenantPk')::int); | ||
|
||
-- AlterTable | ||
ALTER TABLE "Task" ALTER COLUMN "tenantPk" SET DEFAULT (current_setting('tenancy.tenantPk')::int); | ||
|
||
-- AlterTable | ||
ALTER TABLE "TaskAction" ALTER COLUMN "tenantPk" SET DEFAULT (current_setting('tenancy.tenantPk')::int); | ||
|
||
-- AlterTable | ||
ALTER TABLE "User" ALTER COLUMN "tenantPk" SET DEFAULT (current_setting('tenancy.tenantPk')::int); | ||
|
||
-- AlterTable | ||
ALTER TABLE "UserIdentity" ALTER COLUMN "tenantPk" SET DEFAULT (current_setting('tenancy.tenantPk')::int); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
11 changes: 10 additions & 1 deletion
11
src/bff/callgent-functions/bff-callgent-functions.controller.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.