SQL Error after moving wikiJS database #6786
-
HI, insert into "pageHistory" ("action", "authorId", "content", "contentType", "createdAt", "description", "editorKey", "hash", "isPrivate", "isPublished", "localeCode", "pageId", "path", "publishEndDate", "publishStartDate", "title", "versionDate") values ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10, $11, $12, $13, $14, $15, $16, $17) returning "id" - une valeur NULL viole la contrainte NOT NULL de la colonne « id » I understand : WikiJS doesn't provide a value to an id field, maybe due to a trigger issue but I'm not sure. Someone has seen and resolved this ? |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 1 reply
-
The id column is an autoincrement and generates an id by itself. So your dump / restore is missing that instruction. |
Beta Was this translation helpful? Give feedback.
-
Hello. My situation's the same. |
Beta Was this translation helpful? Give feedback.
The id column is an autoincrement and generates an id by itself. So your dump / restore is missing that instruction.