Hello,
fresh install last version yesterday went fine.
then I tried to add a field "brand_url" and create this php file:
<?php
require("includes/common.php");
$sql = "ALTER TABLE `".$config_databaseTablePrefix."feeds`
ADD `field_brand_url` VARCHAR(255) NOT NULL default ''";
database_queryModify($sql,$result);
$sql = "ALTER TABLE `".$config_databaseTablePrefix."products`
ADD `brand_url` VARCHAR(255) NOT NULL default ''";
database_queryModify($sql,$result);
print "Done.";
?>
i read here https://www.pricetapestry.org/node/484
and replace includes/common.php from if (file_exists("config.php")) to if (@fopen("config.php","r")) but same issue
Thank you,
Uri
Thank you David for your very quick reply.
now all OK.
{code saved}
anyway, you helped me and now all ok.
Uri
Hi,
That's strange -
require("includes/common.php");
...is correct for running a dbmod script in the top level folder of a Price Tapestry installation (you will see the same line at the top of pretty much every file). Try making a version to run in the /admin/ folder instead and change the above line to:
require("../includes/common.php");
Cheers,
David.
--
PriceTapestry.com