0
Fork 0
mirror of https://github.com/logto-io/logto.git synced 2025-01-06 20:40:08 -05:00
logto/packages/schemas/alterations/next-1731377260-add-unknown-session-redirect-url-to-sie.ts
simeng-li ec0f0c35f8
feat(schemas,core): add unknown session redirect url to sie (#6796)
* feat(schemas,core): add unknown session redirect url to sie

add unknown session redirect url config to sie settings

* chore(core): update openapi docs

update openapi docs

* fix(core): fix typo

fix typo

* fix(core): fix typo

Co-authored-by: Charles Zhao <charleszhao@silverhand.io>

---------

Co-authored-by: Charles Zhao <charleszhao@silverhand.io>
2024-11-13 10:29:14 +08:00

20 lines
490 B
TypeScript

import { sql } from '@silverhand/slonik';
import type { AlterationScript } from '../lib/types/alteration.js';
const alteration: AlterationScript = {
up: async (pool) => {
await pool.query(sql`
alter table sign_in_experiences
add column unknown_session_redirect_url text;
`);
},
down: async (pool) => {
await pool.query(sql`
alter table sign_in_experiences
drop column unknown_session_redirect_url;
`);
},
};
export default alteration;