Skip to content

Commit

Permalink
Update tables on upgrade
Browse files Browse the repository at this point in the history
  • Loading branch information
magentix committed May 12, 2023
1 parent 43b82af commit 703ff46
Showing 1 changed file with 19 additions and 0 deletions.
19 changes: 19 additions & 0 deletions upgrade/upgrade-1.0.4.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
<?php

if (!defined('_PS_VERSION_')) {
exit;
}

function upgrade_module_1_0_4($module)
{
return (bool)Db::getInstance()->execute('
ALTER TABLE `' . _DB_PREFIX_ . 'google_place`
ADD COLUMN `phone` VARCHAR(255) DEFAULT NULL;
ALTER TABLE `' . _DB_PREFIX_ . 'google_place`
ADD COLUMN `price_level` INT DEFAULT NULL;
ALTER TABLE `' . _DB_PREFIX_ . 'google_review`
ADD COLUMN `author_url` VARCHAR(255) DEFAULT NULL;
');
}

0 comments on commit 703ff46

Please sign in to comment.