From 6459ce1e194e92df413c3f92a79d2f43a4c437cc Mon Sep 17 00:00:00 2001 From: 4Giedrius <4giedrius@gmail.com> Date: Thu, 13 Nov 2014 13:43:24 +0200 Subject: [PATCH] Additional database field added --- src/bb-update.php | 12 ++++++++++++ src/install/structure.sql | 1 + 2 files changed, 13 insertions(+) diff --git a/src/bb-update.php b/src/bb-update.php index 742eefd9c..0ebdc7362 100644 --- a/src/bb-update.php +++ b/src/bb-update.php @@ -18,6 +18,18 @@ */ /** + * Version 4.12 + */ +class BBPatch_18 extends BBPatchAbstract +{ + public function patch() + { + $q="ALTER TABLE `promo` ADD `client_groups` TEXT NULL AFTER `products`;"; + $this->execSql($q); + + } + +}/** * Version X.XX.X */ class BBPatch_17 extends BBPatchAbstract diff --git a/src/install/structure.sql b/src/install/structure.sql index 54d9ae852..2fd05c451 100644 --- a/src/install/structure.sql +++ b/src/install/structure.sql @@ -906,6 +906,7 @@ CREATE TABLE `promo` ( `active` tinyint(1) DEFAULT '0', `products` text, `periods` text, + `client_groups` text, `start_at` datetime DEFAULT NULL, `end_at` datetime DEFAULT NULL, `created_at` datetime DEFAULT NULL,