auth: got rid of the sql report warnings

Signed-off-by: Fredrik Adelöw <freben@gmail.com>
This commit is contained in:
Fredrik Adelöw
2026-02-22 14:41:36 +01:00
parent 35e8d6cb34
commit 619be54133
4 changed files with 7 additions and 5 deletions
@@ -42,5 +42,5 @@ exports.up = async function up(knex) {
* @param {import('knex').Knex} knex
*/
exports.down = async function down(knex) {
return knex.schema.dropTable('auth_keystore');
return knex.schema.dropTable('signing_keys');
};
@@ -48,7 +48,7 @@ exports.down = async function down(knex) {
if (!knex.client.config.client.includes('sqlite3')) {
await knex.schema.alterTable('signing_keys', table => {
table
.timestamp('created_at', { useTz: false, precision: 0 })
.timestamp('created_at', { useTz: true, precision: 0 })
.notNullable()
.defaultTo(knex.fn.now())
.comment('The creation time of the key')