View ProjeQtOr On SourceForge.net
ProjeQtOr - Project Management Tool
Supportez nous sur Capterra
OIN - Open Invention Network
ProjeQtOr free project management software - [SOLVED] SQL error on migration V8.4.6 to V8.5.4 - ProjeQtOr

Prochaines Sessions

Les prochaines formations et démonstrations sont ouvertes, inscrivez-vous rapidement !

 

Démonstration de ProjeQtOr

(gratuit, sur inscription)
 

13 mai 2025 (10h30-12h)

5 juin 2025 (16h-17h30)

 
 

Planifiez avec ProjeQtOr

14 et 15 mai 2025 (9h-12h30)

18 et 19 juin 2025 (9h-12h30)

 
 

Administrez avec ProjeQtOr

20 et 21 mai (9h-12h30)

25 et 26 juin (9h-12h30)

 

 

 

[SOLVED] SQL error on migration V8.4.6 to V8.5.4

More
26 Aoû 2020 17:20 #1 by QUANTAMEDICAL
Hi forum team,

I encountered an error during upgrade to V8.5.4 on SQL Database
2020-08-26 17:01:14.677 ***** ERROR ***** [V8.4.6] Exception-[23000] SQLSTATE[23000]: Integrity constraint violation: 1062 Duplicate entry '23' for key 'PRIMARY'
2020-08-26 17:01:14.677 ***** ERROR ***** [V8.4.6] For query : INSERT INTO `planningmode` (`id`, `applyTo`, `name`, `code`, `sortOrder`, `idle`, `mandatoryStartDate`, `mandatoryEndDate`) VALUES
(23, 'Activity', 'PlanningModeManual', 'MAN', 900, 0 , 0, 0);
2020-08-26 17:01:14.677 ***** ERROR ***** [V8.4.6] Strack trace :
2020-08-26 17:01:14.677 ***** ERROR ***** [V8.4.6] #0 Sql->query called at [/var/www/html/projeqtor/db/maintenanceFunctions.php:71]
2020-08-26 17:01:14.677 ***** ERROR ***** [V8.4.6] #1 runScript called at [/var/www/html/projeqtor/db/maintenance.php:111]
2020-08-26 17:01:14.677 ***** ERROR ***** [V8.4.6] #2 include called at [/var/www/html/projeqtor/tool/loginCheck.php:143]


Here, you can show our planningmode table


I check table planningelementbaseline and planningelement to show idPlanningMode values used
planningelement : 1, 2, 4, 5, 7, 8, 9, 16, 17, 19, 20, 22, 23
planningelementbaseline : 1, 2, 4, 5, 7, 8, 9, 16, 17, 19, 20, 22

I just upgrade and have not create any element


Could you recommend me an action to create the record corresponding to the new manual scheduling feature?

Many Thanks
Attachments:
The topic has been locked.
More
28 Aoû 2020 17:19 #2 by babynus
Hi,

You have some unexpected duplicates in the table.
Id 23 to 38 are modes already existing with lower ids.
Delete these lines, and re-execute script
INSERT INTO `planningmode` (`id`, `applyTo`, `name`, `code`, `sortOrder`, `idle`, `mandatoryStartDate`, `mandatoryEndDate`) VALUES
(23, 'Activity', 'PlanningModeManual', 'MAN', 900, 0 , 0, 0);
Then fix not expected on
UPDATE `planningelement` set idPlanningMode=9 where planning mode=9;
(you should not have idPlanningMode over 22 in planning element)

Babynus
Administrator of ProjeQtOr web site
The following user(s) said Thank You: QUANTAMEDICAL
The topic has been locked.
Moderators: babynusprotion
Time to create page: 0.044 seconds

Paramétrages de cookies

×

Cookies fonctionnels

Ce site utilise des cookies pour assurer son bon fonctionnement et ne peuvent pas être désactivés de nos systèmes. Nous ne les utilisons pas à des fins publicitaires. Si ces cookies sont bloqués, certaines parties du site ne pourront pas fonctionner.

Session

Veuillez vous connecter pour voir vos activités!

Autres cookies

Ce site web utilise un certain nombre de cookies pour gérer, par exemple, les sessions utilisateurs.