auth: got rid of the sql report warnings
Signed-off-by: Fredrik Adelöw <freben@gmail.com>
This commit is contained in:
@@ -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')
|
||||
|
||||
@@ -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 |
|
||||
|
||||
Reference in New Issue
Block a user