Forum

Welcome to ProjeQtOr new Forum. We migrated old forum to the new website.
You will find all your posts here, with your usual account.
Just one point : you’ll have to reinitialize your password. Use “Lost password” feature.

[SOLVED] SQLSTATE E...
 
Notifications
Clear all

[SOLVED] SQLSTATE ERROR ON MILESTONE CREATION V9.0.2

7 Posts
3 Users
0 Reactions
5,217 Views
(@freesly)
Posts: 3
Active Member
Topic starter
 
[#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


 
Posted : 21 Jan 2021 20H41
babynus
(@babynus)
Posts: 14966
Main Contributor Admin
 

Hi,
Could you please post the entire error message ?


 
Posted : 23 Jan 2021 20H11
(@freesly)
Posts: 3
Active Member
Topic starter
 

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]

 


 
Posted : 01 Feb 2021 17H37
babynus
(@babynus)
Posts: 14966
Main Contributor 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;

 
Posted : 01 Feb 2021 18H01
(@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.


 
Posted : 02 Feb 2021 9H17
babynus
(@babynus)
Posts: 14966
Main Contributor Admin
 

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


 
Posted : 02 Feb 2021 22H08
(@freesly)
Posts: 3
Active Member
Topic starter
 

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 🙂


 
Posted : 03 Feb 2021 11H16
Share:

Scroll to Top