mirror of
https://github.com/turt2live/matrix-dimension.git
synced 2024-10-01 01:05:53 -04:00
Make db avatar migrations postgres compatible
Fixes https://github.com/turt2live/matrix-dimension/issues/431
This commit is contained in:
parent
e2d4ae5e7f
commit
6964bca40e
@ -5,12 +5,12 @@ export default {
|
||||
return Promise.resolve()
|
||||
.then(() =>
|
||||
queryInterface.sequelize.query(
|
||||
"UPDATE dimension_widgets SET avatarUrl = REPLACE(avatarUrl, '/img/', '/assets/img/')"
|
||||
`UPDATE dimension_widgets SET "avatarUrl" = REPLACE("avatarUrl", '/img/', '/assets/img/')`
|
||||
)
|
||||
)
|
||||
.then(() =>
|
||||
queryInterface.sequelize.query(
|
||||
"UPDATE dimension_bridges SET avatarUrl = REPLACE(avatarUrl, '/img/', '/assets/img/')"
|
||||
`UPDATE dimension_bridges SET "avatarUrl" = REPLACE("avatarUrl", '/img/', '/assets/img/')`
|
||||
)
|
||||
);
|
||||
},
|
||||
@ -18,12 +18,12 @@ export default {
|
||||
return Promise.resolve()
|
||||
.then(() =>
|
||||
queryInterface.sequelize.query(
|
||||
"UPDATE dimension_widgets SET avatarUrl = REPLACE(avatarUrl, '/assets/img/', '/img/')"
|
||||
`UPDATE dimension_widgets SET "avatarUrl" = REPLACE("avatarUrl", '/assets/img/', '/img/')`
|
||||
)
|
||||
)
|
||||
.then(() =>
|
||||
queryInterface.sequelize.query(
|
||||
"UPDATE dimension_bridges SET avatarUrl = REPLACE(avatarUrl, '/assets/img/', '/img/')"
|
||||
`UPDATE dimension_bridges SET "avatarUrl" = REPLACE("avatarUrl", '/assets/img/', '/img/')`
|
||||
)
|
||||
);
|
||||
},
|
||||
|
@ -5,12 +5,12 @@ export default {
|
||||
return Promise.resolve()
|
||||
.then(() =>
|
||||
queryInterface.sequelize.query(
|
||||
"UPDATE dimension_appservice_users SET avatarUrl = REPLACE(avatarUrl, '/img/', '/assets/img/')"
|
||||
`UPDATE dimension_appservice_users SET "avatarUrl" = REPLACE("avatarUrl", '/img/', '/assets/img/')`
|
||||
)
|
||||
)
|
||||
.then(() =>
|
||||
queryInterface.sequelize.query(
|
||||
"UPDATE dimension_neb_integrations SET avatarUrl = REPLACE(avatarUrl, '/img/', '/assets/img/')"
|
||||
`UPDATE dimension_neb_integrations SET "avatarUrl" = REPLACE("avatarUrl", '/img/', '/assets/img/')`
|
||||
)
|
||||
);
|
||||
},
|
||||
@ -18,12 +18,12 @@ export default {
|
||||
return Promise.resolve()
|
||||
.then(() =>
|
||||
queryInterface.sequelize.query(
|
||||
"UPDATE dimension_appservice_users SET avatarUrl = REPLACE(avatarUrl, '/assets/img/', '/img/')"
|
||||
`UPDATE dimension_appservice_users SET "avatarUrl" = REPLACE("avatarUrl", '/assets/img/', '/img/')`
|
||||
)
|
||||
)
|
||||
.then(() =>
|
||||
queryInterface.sequelize.query(
|
||||
"UPDATE dimension_neb_integrations SET avatarUrl = REPLACE(avatarUrl, '/assets/img/', '/img/')"
|
||||
`UPDATE dimension_neb_integrations SET "avatarUrl" = REPLACE("avatarUrl", '/assets/img/', '/img/')`
|
||||
)
|
||||
);
|
||||
},
|
||||
|
Loading…
Reference in New Issue
Block a user