mirror of
https://github.com/IT4Change/Ocelot-Social.git
synced 2025-12-13 07:45:56 +00:00
fix migrations (#8390)
async migrations should not call next() Co-authored-by: mahula <lenzmath@posteo.de>
This commit is contained in:
parent
3ff328ff2f
commit
5d154bcb85
@ -11,7 +11,6 @@ export async function up(next) {
|
|||||||
// Implement your migration here.
|
// Implement your migration here.
|
||||||
await transaction.run(``)
|
await transaction.run(``)
|
||||||
await transaction.commit()
|
await transaction.commit()
|
||||||
next()
|
|
||||||
} catch (error) {
|
} catch (error) {
|
||||||
// eslint-disable-next-line no-console
|
// eslint-disable-next-line no-console
|
||||||
console.log(error)
|
console.log(error)
|
||||||
@ -33,7 +32,6 @@ export async function down(next) {
|
|||||||
// Implement your migration here.
|
// Implement your migration here.
|
||||||
await transaction.run(``)
|
await transaction.run(``)
|
||||||
await transaction.commit()
|
await transaction.commit()
|
||||||
next()
|
|
||||||
} catch (error) {
|
} catch (error) {
|
||||||
// eslint-disable-next-line no-console
|
// eslint-disable-next-line no-console
|
||||||
console.log(error)
|
console.log(error)
|
||||||
|
|||||||
@ -1,9 +1,5 @@
|
|||||||
'use strict'
|
'use strict'
|
||||||
|
|
||||||
export async function up(next) {
|
export async function up(next) {}
|
||||||
next()
|
|
||||||
}
|
|
||||||
|
|
||||||
export async function down(next) {
|
export async function down(next) {}
|
||||||
next()
|
|
||||||
}
|
|
||||||
|
|||||||
@ -15,7 +15,6 @@ export async function up(next) {
|
|||||||
SET p.clickedCount = 0
|
SET p.clickedCount = 0
|
||||||
`)
|
`)
|
||||||
await transaction.commit()
|
await transaction.commit()
|
||||||
next()
|
|
||||||
} catch (error) {
|
} catch (error) {
|
||||||
// eslint-disable-next-line no-console
|
// eslint-disable-next-line no-console
|
||||||
console.log(error)
|
console.log(error)
|
||||||
@ -39,7 +38,6 @@ export async function down(next) {
|
|||||||
REMOVE p.clickedCount
|
REMOVE p.clickedCount
|
||||||
`)
|
`)
|
||||||
await transaction.commit()
|
await transaction.commit()
|
||||||
next()
|
|
||||||
} catch (error) {
|
} catch (error) {
|
||||||
// eslint-disable-next-line no-console
|
// eslint-disable-next-line no-console
|
||||||
console.log(error)
|
console.log(error)
|
||||||
|
|||||||
@ -15,7 +15,6 @@ export async function up(next) {
|
|||||||
SET p.viewedTeaserCount = 0
|
SET p.viewedTeaserCount = 0
|
||||||
`)
|
`)
|
||||||
await transaction.commit()
|
await transaction.commit()
|
||||||
next()
|
|
||||||
} catch (error) {
|
} catch (error) {
|
||||||
// eslint-disable-next-line no-console
|
// eslint-disable-next-line no-console
|
||||||
console.log(error)
|
console.log(error)
|
||||||
@ -39,7 +38,6 @@ export async function down(next) {
|
|||||||
REMOVE p.viewedTeaserCount
|
REMOVE p.viewedTeaserCount
|
||||||
`)
|
`)
|
||||||
await transaction.commit()
|
await transaction.commit()
|
||||||
next()
|
|
||||||
} catch (error) {
|
} catch (error) {
|
||||||
// eslint-disable-next-line no-console
|
// eslint-disable-next-line no-console
|
||||||
console.log(error)
|
console.log(error)
|
||||||
|
|||||||
@ -27,7 +27,6 @@ export async function up(next) {
|
|||||||
{ donationId },
|
{ donationId },
|
||||||
)
|
)
|
||||||
await transaction.commit()
|
await transaction.commit()
|
||||||
next()
|
|
||||||
} catch (error) {
|
} catch (error) {
|
||||||
// eslint-disable-next-line no-console
|
// eslint-disable-next-line no-console
|
||||||
console.log(error)
|
console.log(error)
|
||||||
@ -53,7 +52,6 @@ export async function down(next) {
|
|||||||
RETURN donationInfo
|
RETURN donationInfo
|
||||||
`)
|
`)
|
||||||
await transaction.commit()
|
await transaction.commit()
|
||||||
next()
|
|
||||||
} catch (error) {
|
} catch (error) {
|
||||||
// eslint-disable-next-line no-console
|
// eslint-disable-next-line no-console
|
||||||
console.log(error)
|
console.log(error)
|
||||||
|
|||||||
@ -17,7 +17,6 @@ export async function up(next) {
|
|||||||
`,
|
`,
|
||||||
)
|
)
|
||||||
await transaction.commit()
|
await transaction.commit()
|
||||||
next()
|
|
||||||
} catch (error) {
|
} catch (error) {
|
||||||
// eslint-disable-next-line no-console
|
// eslint-disable-next-line no-console
|
||||||
console.log(error)
|
console.log(error)
|
||||||
@ -45,7 +44,6 @@ export async function down(next) {
|
|||||||
`,
|
`,
|
||||||
)
|
)
|
||||||
await transaction.commit()
|
await transaction.commit()
|
||||||
next()
|
|
||||||
} catch (error) {
|
} catch (error) {
|
||||||
// eslint-disable-next-line no-console
|
// eslint-disable-next-line no-console
|
||||||
console.log(error)
|
console.log(error)
|
||||||
|
|||||||
@ -26,7 +26,6 @@ export async function up(next) {
|
|||||||
`)
|
`)
|
||||||
*/
|
*/
|
||||||
await transaction.commit()
|
await transaction.commit()
|
||||||
next()
|
|
||||||
} catch (error) {
|
} catch (error) {
|
||||||
// eslint-disable-next-line no-console
|
// eslint-disable-next-line no-console
|
||||||
console.log(error)
|
console.log(error)
|
||||||
@ -59,7 +58,6 @@ export async function down(next) {
|
|||||||
`)
|
`)
|
||||||
await transaction.commit()
|
await transaction.commit()
|
||||||
*/
|
*/
|
||||||
next()
|
|
||||||
} catch (error) {
|
} catch (error) {
|
||||||
// eslint-disable-next-line no-console
|
// eslint-disable-next-line no-console
|
||||||
console.log(error)
|
console.log(error)
|
||||||
|
|||||||
@ -34,7 +34,6 @@ export async function up(next) {
|
|||||||
)
|
)
|
||||||
await transaction.commit()
|
await transaction.commit()
|
||||||
*/
|
*/
|
||||||
next()
|
|
||||||
} catch (error) {
|
} catch (error) {
|
||||||
// eslint-disable-next-line no-console
|
// eslint-disable-next-line no-console
|
||||||
console.log(error)
|
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.run(`CALL db.index.fulltext.drop("tag_fulltext_search")`)
|
||||||
await transaction.commit()
|
await transaction.commit()
|
||||||
*/
|
*/
|
||||||
next()
|
|
||||||
} catch (error) {
|
} catch (error) {
|
||||||
// eslint-disable-next-line no-console
|
// eslint-disable-next-line no-console
|
||||||
console.log(error)
|
console.log(error)
|
||||||
|
|||||||
@ -14,7 +14,6 @@ export async function up(next) {
|
|||||||
RETURN post
|
RETURN post
|
||||||
`)
|
`)
|
||||||
await transaction.commit()
|
await transaction.commit()
|
||||||
next()
|
|
||||||
} catch (error) {
|
} catch (error) {
|
||||||
// eslint-disable-next-line no-console
|
// eslint-disable-next-line no-console
|
||||||
console.log(error)
|
console.log(error)
|
||||||
@ -39,7 +38,6 @@ export async function down(next) {
|
|||||||
RETURN post
|
RETURN post
|
||||||
`)
|
`)
|
||||||
await transaction.commit()
|
await transaction.commit()
|
||||||
next()
|
|
||||||
} catch (error) {
|
} catch (error) {
|
||||||
// eslint-disable-next-line no-console
|
// eslint-disable-next-line no-console
|
||||||
console.log(error)
|
console.log(error)
|
||||||
|
|||||||
@ -14,7 +14,6 @@ export async function up(next) {
|
|||||||
RETURN post
|
RETURN post
|
||||||
`)
|
`)
|
||||||
await transaction.commit()
|
await transaction.commit()
|
||||||
next()
|
|
||||||
} catch (error) {
|
} catch (error) {
|
||||||
// eslint-disable-next-line no-console
|
// eslint-disable-next-line no-console
|
||||||
console.log(error)
|
console.log(error)
|
||||||
@ -39,7 +38,6 @@ export async function down(next) {
|
|||||||
RETURN post
|
RETURN post
|
||||||
`)
|
`)
|
||||||
await transaction.commit()
|
await transaction.commit()
|
||||||
next()
|
|
||||||
} catch (error) {
|
} catch (error) {
|
||||||
// eslint-disable-next-line no-console
|
// eslint-disable-next-line no-console
|
||||||
console.log(error)
|
console.log(error)
|
||||||
|
|||||||
@ -34,7 +34,6 @@ export async function up(next) {
|
|||||||
`)
|
`)
|
||||||
}
|
}
|
||||||
await transaction.commit()
|
await transaction.commit()
|
||||||
next()
|
|
||||||
} catch (error) {
|
} catch (error) {
|
||||||
// eslint-disable-next-line no-console
|
// eslint-disable-next-line no-console
|
||||||
console.log(error)
|
console.log(error)
|
||||||
@ -54,7 +53,6 @@ export async function down(next) {
|
|||||||
|
|
||||||
try {
|
try {
|
||||||
// No sense in running this down
|
// No sense in running this down
|
||||||
next()
|
|
||||||
} catch (error) {
|
} catch (error) {
|
||||||
// eslint-disable-next-line no-console
|
// eslint-disable-next-line no-console
|
||||||
console.log(error)
|
console.log(error)
|
||||||
|
|||||||
@ -21,7 +21,6 @@ export async function up(next) {
|
|||||||
RETURN post
|
RETURN post
|
||||||
`)
|
`)
|
||||||
await transaction.commit()
|
await transaction.commit()
|
||||||
next()
|
|
||||||
} catch (error) {
|
} catch (error) {
|
||||||
// eslint-disable-next-line no-console
|
// eslint-disable-next-line no-console
|
||||||
console.log(error)
|
console.log(error)
|
||||||
@ -47,7 +46,6 @@ export async function down(next) {
|
|||||||
RETURN p
|
RETURN p
|
||||||
`)
|
`)
|
||||||
await transaction.commit()
|
await transaction.commit()
|
||||||
next()
|
|
||||||
} catch (error) {
|
} catch (error) {
|
||||||
// eslint-disable-next-line no-console
|
// eslint-disable-next-line no-console
|
||||||
console.log(error)
|
console.log(error)
|
||||||
|
|||||||
@ -21,7 +21,6 @@ export async function up(next) {
|
|||||||
RETURN post
|
RETURN post
|
||||||
`)
|
`)
|
||||||
await transaction.commit()
|
await transaction.commit()
|
||||||
next()
|
|
||||||
} catch (error) {
|
} catch (error) {
|
||||||
// eslint-disable-next-line no-console
|
// eslint-disable-next-line no-console
|
||||||
console.log(error)
|
console.log(error)
|
||||||
@ -48,7 +47,6 @@ export async function down(next) {
|
|||||||
RETURN p
|
RETURN p
|
||||||
`)
|
`)
|
||||||
await transaction.commit()
|
await transaction.commit()
|
||||||
next()
|
|
||||||
} catch (error) {
|
} catch (error) {
|
||||||
// eslint-disable-next-line no-console
|
// eslint-disable-next-line no-console
|
||||||
console.log(error)
|
console.log(error)
|
||||||
|
|||||||
@ -22,7 +22,6 @@ export async function up(next) {
|
|||||||
REMOVE user.sendNotificationEmails
|
REMOVE user.sendNotificationEmails
|
||||||
`)
|
`)
|
||||||
await transaction.commit()
|
await transaction.commit()
|
||||||
next()
|
|
||||||
} catch (error) {
|
} catch (error) {
|
||||||
// eslint-disable-next-line no-console
|
// eslint-disable-next-line no-console
|
||||||
console.log(error)
|
console.log(error)
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user