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
+5
View File
@@ -0,0 +1,5 @@
---
'@backstage/plugin-auth-backend': patch
---
Update migrations to be reversible
@@ -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')
-3
View File
@@ -2,9 +2,6 @@
> Do not edit this file. It is a report generated by `yarn build:api-reports`
> [!WARNING]
> Failed to migrate down from '20220321100910_timestamptz_again.js'
## Table `oauth_authorization_sessions`
| Column | Type | Nullable | Max Length | Default |