bugphpGroupWare - Bugs: bug #11323, db tables upgrade does not work...

 
 

You are not allowed to post comments on this tracker with your current authentication level.

bug #11323: db tables upgrade does not work properly

Submitted by:  Johnson <jecinc>
Submitted on:  Wed 15 Dec 2004 05:49:02 PM UTC  
 
Item Group: 0.9.16.003Category: tts
Severity: 4 - ImportantPriority: 1 - Later
Status: FixedPrivacy: Public
Assigned to: Philipp Kamps <fipsfuchs>Open/Closed: Closed
Component Version: SVNOperating System: GNU/Linux - Debian
Reproducibility: NonePlanned Release: 0.9.16.011+
Fixed Release: 

Thu 16 Dec 2004 04:51:44 PM UTC, comment #3:

I dont find the string 'precision' => '' in HEAD Branch.

Tell me which line in which update file and I'll correct
it.

Philipp Kamps <fipsfuchs>In charge of this item.
Wed 15 Dec 2004 07:53:04 PM UTC, comment #2:

Could you change
'precision' => ''
to
'precision' => '4'
please.

It's only in 2 or 3 spots in the tables update file.

I've manually upgraded my db tables so it is only "possibly" needed by others who are still running an old version of tts

Johnson <jecinc>
Wed 15 Dec 2004 06:12:21 PM UTC, comment #1:

I added:

$test[] = '0.8.1.003';
function tts_upgrade0_8_1_003()
{
$setup_info['phpgwapi']['currentver'] = '0.9.16';
return $setup_info['phpgwapi']['currentver'];
}

I can change

'precision' => 4

to

'precision' => '4'

That's fine for mysql as well.

Do you want me to do it? Or can you provide a patch?

What is about:

'scale' => 2

?

Philipp Kamps <fipsfuchs>In charge of this item.
Wed 15 Dec 2004 05:49:02 PM UTC, original submission:

for some reason tts/setup/tables_update.inc.php does not support any versions of tts prior to 0.9.16

my 0.8.1.003 would not upgrade until I added:
$test[] = '0.8.1.003';
function tts_upgrade0_8_1_003()
{
$setup_info['phpgwapi']['currentver'] = '0.9.16';
return $setup_info['phpgwapi']['currentver'];
}

also the incorrect method name (phpgwapi_upgrade0_9_16) was fixed in HEAD but not 0.9.16 branch

lastly, my postgresql install chokes on this file on the lines where 'precision' => '' for the ints .. they must be 'precision' => '4'

Johnson <jecinc>

 

No files currently attached

 

Depends on the following items: None found

Items that depend on this one: None found

 

CC list is empty

 

Do you think this task is very important?
If so, you can click here to add your encouragement to it.
This task has 0 encouragements so far.

Only logged-in users can vote.

 

Please enter the title of George Orwell's famous dystopian book (it's a date):

 

 

Follow 2 latest changes.

Date Changed By Updated Field Previous Value => Replaced By
Thu 16 Dec 2004 04:51:44 PM UTCfipsfuchsOpen/ClosedOpen=>Closed
Thu 16 Dec 2004 04:51:43 PM UTCfipsfuchsStatusNone=>Fixed

Back to the top


Powered by Savane 3.1-cleanup1