96 lines
5.6 KiB
SQL
96 lines
5.6 KiB
SQL
/*
|
|
Warnings:
|
|
|
|
- You are about to drop the column `active` on the `oidc_clients` table. All the data in the column will be lost.
|
|
- You are about to drop the column `client_id` on the `oidc_clients` table. All the data in the column will be lost.
|
|
- You are about to drop the column `client_name` on the `oidc_clients` table. All the data in the column will be lost.
|
|
- You are about to drop the column `client_secret` on the `oidc_clients` table. All the data in the column will be lost.
|
|
- You are about to drop the column `client_uri` on the `oidc_clients` table. All the data in the column will be lost.
|
|
- You are about to drop the column `contacts` on the `oidc_clients` table. All the data in the column will be lost.
|
|
- You are about to drop the column `created_by` on the `oidc_clients` table. All the data in the column will be lost.
|
|
- You are about to drop the column `created_time` on the `oidc_clients` table. All the data in the column will be lost.
|
|
- You are about to drop the column `grant_types` on the `oidc_clients` table. All the data in the column will be lost.
|
|
- You are about to drop the column `jwks` on the `oidc_clients` table. All the data in the column will be lost.
|
|
- You are about to drop the column `jwks_uri` on the `oidc_clients` table. All the data in the column will be lost.
|
|
- You are about to drop the column `last_modified_time` on the `oidc_clients` table. All the data in the column will be lost.
|
|
- You are about to drop the column `logo_uri` on the `oidc_clients` table. All the data in the column will be lost.
|
|
- You are about to drop the column `policy_uri` on the `oidc_clients` table. All the data in the column will be lost.
|
|
- You are about to drop the column `post_logout_redirect_uris` on the `oidc_clients` table. All the data in the column will be lost.
|
|
- You are about to drop the column `redirect_uris` on the `oidc_clients` table. All the data in the column will be lost.
|
|
- You are about to drop the column `require_pkce` on the `oidc_clients` table. All the data in the column will be lost.
|
|
- You are about to drop the column `response_types` on the `oidc_clients` table. All the data in the column will be lost.
|
|
- You are about to drop the column `token_endpoint_auth_method` on the `oidc_clients` table. All the data in the column will be lost.
|
|
- You are about to drop the column `tos_uri` on the `oidc_clients` table. All the data in the column will be lost.
|
|
- You are about to drop the `oidc_authorization_codes` table. If the table is not empty, all the data it contains will be lost.
|
|
- You are about to drop the `oidc_consents` table. If the table is not empty, all the data it contains will be lost.
|
|
- You are about to drop the `oidc_key_pairs` table. If the table is not empty, all the data it contains will be lost.
|
|
- You are about to drop the `oidc_sessions` table. If the table is not empty, all the data it contains will be lost.
|
|
- You are about to drop the `oidc_tokens` table. If the table is not empty, all the data it contains will be lost.
|
|
- A unique constraint covering the columns `[clientId]` on the table `oidc_clients` will be added. If there are existing duplicate values, this will fail.
|
|
- Added the required column `clientId` to the `oidc_clients` table without a default value. This is not possible if the table is not empty.
|
|
- Added the required column `clientSecret` to the `oidc_clients` table without a default value. This is not possible if the table is not empty.
|
|
- Added the required column `grantTypes` to the `oidc_clients` table without a default value. This is not possible if the table is not empty.
|
|
- Added the required column `redirectUris` to the `oidc_clients` table without a default value. This is not possible if the table is not empty.
|
|
- Added the required column `responseTypes` to the `oidc_clients` table without a default value. This is not possible if the table is not empty.
|
|
- Added the required column `updatedAt` to the `oidc_clients` table without a default value. This is not possible if the table is not empty.
|
|
|
|
*/
|
|
-- DropForeignKey
|
|
ALTER TABLE "oidc_authorization_codes" DROP CONSTRAINT "oidc_authorization_codes_client_id_fkey";
|
|
|
|
-- DropForeignKey
|
|
ALTER TABLE "oidc_consents" DROP CONSTRAINT "oidc_consents_client_id_fkey";
|
|
|
|
-- DropForeignKey
|
|
ALTER TABLE "oidc_tokens" DROP CONSTRAINT "oidc_tokens_client_id_fkey";
|
|
|
|
-- DropIndex
|
|
DROP INDEX "oidc_clients_client_id_key";
|
|
|
|
-- AlterTable
|
|
ALTER TABLE "oidc_clients" DROP COLUMN "active",
|
|
DROP COLUMN "client_id",
|
|
DROP COLUMN "client_name",
|
|
DROP COLUMN "client_secret",
|
|
DROP COLUMN "client_uri",
|
|
DROP COLUMN "contacts",
|
|
DROP COLUMN "created_by",
|
|
DROP COLUMN "created_time",
|
|
DROP COLUMN "grant_types",
|
|
DROP COLUMN "jwks",
|
|
DROP COLUMN "jwks_uri",
|
|
DROP COLUMN "last_modified_time",
|
|
DROP COLUMN "logo_uri",
|
|
DROP COLUMN "policy_uri",
|
|
DROP COLUMN "post_logout_redirect_uris",
|
|
DROP COLUMN "redirect_uris",
|
|
DROP COLUMN "require_pkce",
|
|
DROP COLUMN "response_types",
|
|
DROP COLUMN "token_endpoint_auth_method",
|
|
DROP COLUMN "tos_uri",
|
|
ADD COLUMN "clientId" TEXT NOT NULL,
|
|
ADD COLUMN "clientSecret" TEXT NOT NULL,
|
|
ADD COLUMN "createdAt" TIMESTAMP(3) NOT NULL DEFAULT CURRENT_TIMESTAMP,
|
|
ADD COLUMN "grantTypes" TEXT NOT NULL,
|
|
ADD COLUMN "redirectUris" TEXT NOT NULL,
|
|
ADD COLUMN "responseTypes" TEXT NOT NULL,
|
|
ADD COLUMN "updatedAt" TIMESTAMP(3) NOT NULL;
|
|
|
|
-- DropTable
|
|
DROP TABLE "oidc_authorization_codes";
|
|
|
|
-- DropTable
|
|
DROP TABLE "oidc_consents";
|
|
|
|
-- DropTable
|
|
DROP TABLE "oidc_key_pairs";
|
|
|
|
-- DropTable
|
|
DROP TABLE "oidc_sessions";
|
|
|
|
-- DropTable
|
|
DROP TABLE "oidc_tokens";
|
|
|
|
-- CreateIndex
|
|
CREATE UNIQUE INDEX "oidc_clients_clientId_key" ON "oidc_clients"("clientId");
|