Forum

[SOLVED] SQLSTATE E...
 
Notifications
Retirer tout

[SOLVED] SQLSTATE ERROR ON MILESTONE CREATION V9.0.2

7 Posts
3 Utilisateurs
0 Reactions
5,183 Vu
(@freesly)
Posts: 3
Active Member
Début du sujet
 
[#7231]

Hi,
When I try to create a milestone, I have a popup with the following error :

SQLSTATE[42S22]: Column not found: 1054 Unknown column 'lastUpdateDateTime' in 'field list'

Version 9.0.2


 
Posté : 21 Jan PM 20:011
(@babynus)
Posts: 14952
Membre Admin
 

Hi,
Could you please post the entire error message ?


 
Posté : 23 Jan PM 20:011
(@freesly)
Posts: 3
Active Member
Début du sujet
 

Hi, sorry for the late reply

Here is a copy of logs :

2021-02-01 15:27:25.539 => 0.004 ** ERROR ** [V9.0.2] Exception-[42S22] SQLSTATE[42S22]: Column not found: 1054 Unknown column 'lastUpdateDateTime' in 'field list'
2021-02-01 15:27:25.539 => 0.000 ** ERROR ** [V9.0.2]    For query : insert into milestone ( reference , name , idMilestoneType , idProject , creationDate , lastUpdateDateTime , idUser , idStatus , handled , done , idle , cancelled ) values ('-DEL-1', 'TestJalon', '23', '18', '2021-02-01', '2021-02-01 15:27:25', '7', '1', '0', '0', '0', '0')
2021-02-01 15:27:25.539 => 0.000 ** ERROR ** [V9.0.2]    Strack trace :
2021-02-01 15:27:25.539 => 0.000 ** ERROR ** [V9.0.2]    #0 Sql->query called at [/opt/projeqtor/model/persistence/SqlElement.php:1358]
2021-02-01 15:27:25.539 => 0.000 ** ERROR ** [V9.0.2]    #1 SqlElement->insertSqlElement called at [/opt/projeqtor/model/persistence/SqlElement.php:1132]
2021-02-01 15:27:25.539 => 0.000 ** ERROR ** [V9.0.2]    #2 SqlElement->saveSqlElement called at [/opt/projeqtor/model/persistence/SqlElement.php:790]
2021-02-01 15:27:25.539 => 0.000 ** ERROR ** [V9.0.2]    #3 SqlElement->save called at [/opt/projeqtor/model/MilestoneMain.php:214]
2021-02-01 15:27:25.539 => 0.000 ** ERROR ** [V9.0.2]    #4 MilestoneMain->save called at [/opt/projeqtor/tool/saveObject.php:110]

 


 
Posté : 1 Fév PM 17:022
(@babynus)
Posts: 14952
Membre Admin
 

It seems something went wrong during update.
Please check for errors in log file to chack for migration errors.

To fix your current issue, you have to execute this on your DB:

ALTER TABLE milestone ADD lastUpdateDateTime datetime DEFAULT NULL;

 
Posté : 1 Fév PM 18:022
(@divyesh)
Posts: 30
Active Member
 

Said column is already there.Currently it is lastupdatedatetime timestamp without time zone,
Please update me so that I can alter alter it to datetime as suggested.


 
Posté : 2 Fév AM 09:022
(@babynus)
Posts: 14952
Membre Admin
 

You don't nedd to update the table.
The error is clear : "Column not found" the column is missing, not in unexpected format.
 


 
Posté : 2 Fév PM 22:022
(@freesly)
Posts: 3
Active Member
Début du sujet
 

It seems something went wrong during update.
Please check for errors in log file to chack for migration errors.

To fix your current issue, you have to execute this on your DB:

ALTER TABLE milestone ADD lastUpdateDateTime datetime DEFAULT NULL;

 

Hi, Thank you, it works 🙂


 
Posté : 3 Fév AM 11:022
Share:
Retour en haut