mirror of
https://github.com/Unleash/unleash.git
synced 2025-05-26 01:17:00 +02:00
chore: add scim id migration for groups (#6682)
This commit is contained in:
parent
79fcfc26b8
commit
2747dcaba9
1
src/lib/types/openapi.d.ts
vendored
1
src/lib/types/openapi.d.ts
vendored
@ -1,7 +1,6 @@
|
|||||||
// Partial types for "@unleash/express-openapi".
|
// Partial types for "@unleash/express-openapi".
|
||||||
declare module '@unleash/express-openapi' {
|
declare module '@unleash/express-openapi' {
|
||||||
import type { RequestHandler } from 'express';
|
import type { RequestHandler } from 'express';
|
||||||
import type { OpenAPIV3 } from 'openapi-types';
|
|
||||||
|
|
||||||
export interface IExpressOpenApi extends RequestHandler {
|
export interface IExpressOpenApi extends RequestHandler {
|
||||||
validPath: (operation: OpenAPIV3.OperationObject) => RequestHandler;
|
validPath: (operation: OpenAPIV3.OperationObject) => RequestHandler;
|
||||||
|
18
src/migrations/20240325081847-add-scim-id-for-groups.js
Normal file
18
src/migrations/20240325081847-add-scim-id-for-groups.js
Normal file
@ -0,0 +1,18 @@
|
|||||||
|
exports.up = function (db, cb) {
|
||||||
|
db.runSql(
|
||||||
|
`
|
||||||
|
ALTER TABLE groups ADD COLUMN scim_id TEXT;
|
||||||
|
CREATE UNIQUE INDEX groups_scim_id_unique_idx ON groups(scim_id) WHERE scim_id IS NOT NULL;
|
||||||
|
`,
|
||||||
|
cb,
|
||||||
|
);
|
||||||
|
};
|
||||||
|
|
||||||
|
exports.down = function (db, cb) {
|
||||||
|
db.runSql(
|
||||||
|
`
|
||||||
|
DROP INDEX IF EXISTS groups_scim_id_unique_idx;
|
||||||
|
ALTER TABLE groups DROP COLUMN scim_id;`,
|
||||||
|
cb,
|
||||||
|
);
|
||||||
|
};
|
@ -52,11 +52,7 @@
|
|||||||
"semver": "^7.5.3"
|
"semver": "^7.5.3"
|
||||||
},
|
},
|
||||||
"browserslist": {
|
"browserslist": {
|
||||||
"production": [
|
"production": [">0.5%", "not dead", "not op_mini all"],
|
||||||
">0.5%",
|
|
||||||
"not dead",
|
|
||||||
"not op_mini all"
|
|
||||||
],
|
|
||||||
"development": [
|
"development": [
|
||||||
"last 1 chrome version",
|
"last 1 chrome version",
|
||||||
"last 1 firefox version",
|
"last 1 firefox version",
|
||||||
|
Loading…
Reference in New Issue
Block a user