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,