mirror of
https://github.com/logto-io/logto.git
synced 2025-03-10 22:22:45 -05:00
* feat: add POST /one-time-tokens/verify API * chore: fix integration tests * chore: update code
18 lines
447 B
TypeScript
18 lines
447 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`
|
|
create unique index one_time_token__token on one_time_tokens (tenant_id, token);
|
|
`);
|
|
},
|
|
down: async (pool) => {
|
|
await pool.query(sql`
|
|
drop index if exists one_time_token__token;
|
|
`);
|
|
},
|
|
};
|
|
|
|
export default alteration;
|