1
0
mirror of https://github.com/laurent22/joplin.git synced 2025-08-10 22:11:50 +02:00

Server: Fixes #12737: Fixed broken "Delete expired authentication codes" task

This commit is contained in:
Laurent Cozic
2025-07-20 11:03:27 +01:00
parent 91b0ea609d
commit cd158e584e

View File

@@ -0,0 +1,13 @@
import { DbConnection } from '../db';
export const up = async (db: DbConnection) => {
await db.schema.alterTable('users', (table) => {
table.bigInteger('sso_auth_code_expire_at').defaultTo(0).notNullable().alter();
});
};
export const down = async (db: DbConnection) => {
await db.schema.alterTable('users', (table) => {
table.integer('sso_auth_code_expire_at').defaultTo(0).notNullable().alter();
});
};