fix migrations (#8390)

async migrations should not call next()

Co-authored-by: mahula <lenzmath@posteo.de>
This commit is contained in:
Ulf Gebhardt 2025-04-16 11:08:30 +02:00 committed by GitHub
parent 3ff328ff2f
commit 5d154bcb85
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
14 changed files with 2 additions and 31 deletions

View File

@ -11,7 +11,6 @@ export async function up(next) {
// Implement your migration here.
await transaction.run(``)
await transaction.commit()
next()
} catch (error) {
// eslint-disable-next-line no-console
console.log(error)
@ -33,7 +32,6 @@ export async function down(next) {
// Implement your migration here.
await transaction.run(``)
await transaction.commit()
next()
} catch (error) {
// eslint-disable-next-line no-console
console.log(error)

View File

@ -1,9 +1,5 @@
'use strict'
export async function up(next) {
next()
}
export async function up(next) {}
export async function down(next) {
next()
}
export async function down(next) {}

View File

@ -15,7 +15,6 @@ export async function up(next) {
SET p.clickedCount = 0
`)
await transaction.commit()
next()
} catch (error) {
// eslint-disable-next-line no-console
console.log(error)
@ -39,7 +38,6 @@ export async function down(next) {
REMOVE p.clickedCount
`)
await transaction.commit()
next()
} catch (error) {
// eslint-disable-next-line no-console
console.log(error)

View File

@ -15,7 +15,6 @@ export async function up(next) {
SET p.viewedTeaserCount = 0
`)
await transaction.commit()
next()
} catch (error) {
// eslint-disable-next-line no-console
console.log(error)
@ -39,7 +38,6 @@ export async function down(next) {
REMOVE p.viewedTeaserCount
`)
await transaction.commit()
next()
} catch (error) {
// eslint-disable-next-line no-console
console.log(error)

View File

@ -27,7 +27,6 @@ export async function up(next) {
{ donationId },
)
await transaction.commit()
next()
} catch (error) {
// eslint-disable-next-line no-console
console.log(error)
@ -53,7 +52,6 @@ export async function down(next) {
RETURN donationInfo
`)
await transaction.commit()
next()
} catch (error) {
// eslint-disable-next-line no-console
console.log(error)

View File

@ -17,7 +17,6 @@ export async function up(next) {
`,
)
await transaction.commit()
next()
} catch (error) {
// eslint-disable-next-line no-console
console.log(error)
@ -45,7 +44,6 @@ export async function down(next) {
`,
)
await transaction.commit()
next()
} catch (error) {
// eslint-disable-next-line no-console
console.log(error)

View File

@ -26,7 +26,6 @@ export async function up(next) {
`)
*/
await transaction.commit()
next()
} catch (error) {
// eslint-disable-next-line no-console
console.log(error)
@ -59,7 +58,6 @@ export async function down(next) {
`)
await transaction.commit()
*/
next()
} catch (error) {
// eslint-disable-next-line no-console
console.log(error)

View File

@ -34,7 +34,6 @@ export async function up(next) {
)
await transaction.commit()
*/
next()
} catch (error) {
// eslint-disable-next-line no-console
console.log(error)
@ -60,7 +59,6 @@ export async function down(next) {
await transaction.run(`CALL db.index.fulltext.drop("tag_fulltext_search")`)
await transaction.commit()
*/
next()
} catch (error) {
// eslint-disable-next-line no-console
console.log(error)

View File

@ -14,7 +14,6 @@ export async function up(next) {
RETURN post
`)
await transaction.commit()
next()
} catch (error) {
// eslint-disable-next-line no-console
console.log(error)
@ -39,7 +38,6 @@ export async function down(next) {
RETURN post
`)
await transaction.commit()
next()
} catch (error) {
// eslint-disable-next-line no-console
console.log(error)

View File

@ -14,7 +14,6 @@ export async function up(next) {
RETURN post
`)
await transaction.commit()
next()
} catch (error) {
// eslint-disable-next-line no-console
console.log(error)
@ -39,7 +38,6 @@ export async function down(next) {
RETURN post
`)
await transaction.commit()
next()
} catch (error) {
// eslint-disable-next-line no-console
console.log(error)

View File

@ -34,7 +34,6 @@ export async function up(next) {
`)
}
await transaction.commit()
next()
} catch (error) {
// eslint-disable-next-line no-console
console.log(error)
@ -54,7 +53,6 @@ export async function down(next) {
try {
// No sense in running this down
next()
} catch (error) {
// eslint-disable-next-line no-console
console.log(error)

View File

@ -21,7 +21,6 @@ export async function up(next) {
RETURN post
`)
await transaction.commit()
next()
} catch (error) {
// eslint-disable-next-line no-console
console.log(error)
@ -47,7 +46,6 @@ export async function down(next) {
RETURN p
`)
await transaction.commit()
next()
} catch (error) {
// eslint-disable-next-line no-console
console.log(error)

View File

@ -21,7 +21,6 @@ export async function up(next) {
RETURN post
`)
await transaction.commit()
next()
} catch (error) {
// eslint-disable-next-line no-console
console.log(error)
@ -48,7 +47,6 @@ export async function down(next) {
RETURN p
`)
await transaction.commit()
next()
} catch (error) {
// eslint-disable-next-line no-console
console.log(error)

View File

@ -22,7 +22,6 @@ export async function up(next) {
REMOVE user.sendNotificationEmails
`)
await transaction.commit()
next()
} catch (error) {
// eslint-disable-next-line no-console
console.log(error)