I'm modifying a module, I'm working with 5.0e but I understand the module's code is older (Quotes from OpenSales) It seems like code from elder 4.x version.
I have only used 5.0 but in think the code style in OpenSales is 4.x.
OK I need to add a view to the database when I install the module. This code is util
$base=$sugar_config[´dbconf'];
$nombre_base=$base['db_name'];
So $nombre_base now has the db name. As I need to execute this view wherever sugar system, I don't know the DB name right? I think with this pair instructions I can easily get the name.
Now...... OpenSales use an insatll_actions.php file I tried to use my lines here and then a new instance of peardatabase in order to execute the "query" that creates the view.
And the installation failed!!
Someone knows how (and where) can I use code in order to create a view in 'x' DB when I install a new module?
Thanks


LinkBack URL
About LinkBacks



Reply With Quote
Bookmarks