Skip to content

Commit 241a18d

Browse files
🐛 Fix backfill-user-groups-acronyms migration use MSSQL syntax instead of PostgreSQL.
1 parent 06ab0b8 commit 241a18d

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

api/src/db/migrations/2024.06.10T18.01.34.backfill-user-groups-acronyms.ts

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,10 +10,9 @@ export const up: Migration = async ({ context: queryInterface }) => {
1010
do {
1111
userGroups = await queryInterface.sequelize.query(
1212
/* sql */ `
13-
SELECT id, name FROM user_groups
13+
SELECT TOP (:limit) id, name FROM user_groups
1414
WHERE id > :lastId
1515
ORDER BY id ASC
16-
LIMIT :limit
1716
`,
1817
{
1918
replacements: {

0 commit comments

Comments
 (0)