Registrations to Open-AudIT forums are now closed. To ask any new questions please visit Opmantek Community Questions.

Open-AudIT

What's on your network?
It is currently Fri Apr 19, 2024 2:46 pm

All times are UTC + 10 hours




Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 4 posts ] 
Author Message
 Post subject: Softaware Licenses table
PostPosted: Wed Jan 09, 2008 7:27 pm 
Offline
Newbie

Joined: Sat Dec 01, 2007 9:25 pm
Posts: 2
Location: Carrara - Italy
In the software_licenses table the license_purchase_number is defined as int(10) unsigned but the form "add license" (software_add_license.php) says "Set to "-1" if this is free".

when you insert -1 in the form field the insert fails.

i change the open_audit.sql script in the script folder to match the request )open_audit.sql lines from 737 to 739):

[code]
DROP TABLE IF EXISTS `software_licenses`;
CREATE TABLE `software_licenses` (
`license_id` int(10) unsigned NOT NULL auto_increment,
`license_software_id` int(10) unsigned NOT NULL default '0',
`license_purchase_cost_each` int(10) NOT NULL default '0',
`license_purchase_number` int(10) NOT NULL default '0',
`license_purchase_date` date NOT NULL default '0000-00-00',
`license_purchase_vendor` varchar(150) NOT NULL default '',
`license_comments` varchar(200) NOT NULL default '',
`license_purchase_type` varchar(50) NOT NULL default '',
`license_order_number` varchar(50) NOT NULL default '',
PRIMARY KEY (`license_id`)
) ENGINE=MyISAM DEFAULT CHARSET=latin1;[/code]

i hope this will be usefull


Top
 Profile  
Reply with quote  
PostPosted: Sat Jan 12, 2008 8:57 pm 
Offline
Open-AudIT Fellow

Joined: Thu May 17, 2007 5:47 pm
Posts: 568
Location: Italy
Flavio, you are probably using an old DB version: these mods were applied starting from DB v. 07.08.28. The current version is 07.12.09: try updating all files from SVN.

_________________
Edoardo


Top
 Profile  
Reply with quote  
PostPosted: Sat Jan 12, 2008 10:54 pm 
Offline
Newbie

Joined: Sat Dec 01, 2007 9:25 pm
Posts: 2
Location: Carrara - Italy
i had suspect of it, but in SVN 946 i still have the wrong definition (or i fail something...).


Top
 Profile  
Reply with quote  
PostPosted: Sun Jan 13, 2008 12:11 am 
Offline
Open-AudIT Fellow

Joined: Thu May 17, 2007 5:47 pm
Posts: 568
Location: Italy
[quote="flavio"]i had suspect of it, but in SVN 946 i still have the wrong definition (or i fail something...).

Try if update.php modify successfully your DB: then check the version showed on the index page and the config_value from the OA config table.

_________________
Edoardo


Top
 Profile  
Reply with quote  
Display posts from previous:  Sort by  
Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 4 posts ] 

All times are UTC + 10 hours


Who is online

Users browsing this forum: No registered users and 2 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
cron
Powered by phpBB® Forum Software © phpBB Group