Explorar o código

fix: postgres 2.2.17 migration missing quotes (#1562)

gh0stalker %!s(int64=5) %!d(string=hai) anos
pai
achega
741208911b
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      server/db/migrations/2.2.17.js

+ 1 - 1
server/db/migrations/2.2.17.js

@@ -5,7 +5,7 @@ exports.up = knex => {
   switch (WIKI.config.db.type) {
     case 'postgres':
     case 'mssql':
-      sqlVersionDate = 'UPDATE "pageHistory" h1 SET "versionDate" = COALESCE((SELECT prev."createdAt" FROM "pageHistory" prev WHERE prev."pageId" = h1."pageId" AND prev.id < h1.id ORDER BY prev.id DESC LIMIT 1), h1.createdAt)'
+      sqlVersionDate = 'UPDATE "pageHistory" h1 SET "versionDate" = COALESCE((SELECT prev."createdAt" FROM "pageHistory" prev WHERE prev."pageId" = h1."pageId" AND prev.id < h1.id ORDER BY prev.id DESC LIMIT 1), h1."createdAt")'
       break
     case 'mysql':
     case 'mariadb':