Skip to content

Commit

Permalink
Save code
Browse files Browse the repository at this point in the history
  • Loading branch information
H.A committed Aug 17, 2020
1 parent a06a564 commit f4ad21e
Show file tree
Hide file tree
Showing 4 changed files with 36 additions and 3 deletions.
17 changes: 17 additions & 0 deletions component/admin/sql/install/mysql/install.sql
Original file line number Diff line number Diff line change
Expand Up @@ -1712,6 +1712,23 @@ ENGINE = InnoDB
DEFAULT CHARACTER SET = utf8
COMMENT = 'redSHOP Product Voucher Transaction';

-- -----------------------------------------------------
-- Table `#__redshop_promotion`
-- -----------------------------------------------------
DROP TABLE IF EXISTS `#__redshop_product_voucher_transaction` ;

CREATE TABLE NOT EXISTS `#__redshop_promotion` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`name` varchar(255) DEFAULT NULL,
`type` varchar(255) DEFAULT NULL,
`published` tinyint(1) NOT NULL DEFAULT '0',
`data` text,
`desc` varchar(255) DEFAULT NULL,
`ordering` int(11) NOT NULL DEFAULT '0',
PRIMARY KEY (`id`)
) ENGINE = InnoDB
DEFAULT CHARACTER SET = utf8
COMMENT = 'redSHOP Promotion';

-- -----------------------------------------------------
-- Table `#__redshop_product_voucher_xref`
Expand Down
13 changes: 13 additions & 0 deletions component/admin/sql/updates/mysql/3.0.3.sql
Original file line number Diff line number Diff line change
@@ -1,5 +1,18 @@
SET FOREIGN_KEY_CHECKS = 0;

CREATE TABLE NOT EXISTS `#__redshop_promotion` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`name` varchar(255) DEFAULT NULL,
`type` varchar(255) DEFAULT NULL,
`published` tinyint(1) NOT NULL DEFAULT '0',
`data` text,
`desc` varchar(255) DEFAULT NULL,
`ordering` int(11) NOT NULL DEFAULT '0',
PRIMARY KEY (`id`)
) ENGINE = InnoDB
DEFAULT CHARACTER SET = utf8
COMMENT = 'redSHOP Promotion';

-- -----------------------------------------------------
-- Table `#__redshop_catalog_sample`
-- -----------------------------------------------------
Expand Down
6 changes: 3 additions & 3 deletions component/admin/updates/3.0.3.php
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@ protected function getOldFiles()
JPATH_ADMINISTRATOR . '/components/com_redshop/models/newsletter_detail.php',
JPATH_ADMINISTRATOR . '/components/com_redshop/tables/newsletter_detail.php',
JPATH_ADMINISTRATOR . '/components/com_redshop/views/newsletter_detail/tmpl/default.php',
JPATH_ADMINISTRATOR . '/components/com_redshop/views/newsletter_detail/view.html.php'
JPATH_ADMINISTRATOR . '/components/com_redshop/views/newsletter_detail/view.html.php',
JPATH_ADMINISTRATOR . '/components/com_redshop/views/newsletter_detail/view.html.php',

// Stockroom
Expand Down Expand Up @@ -103,9 +103,9 @@ protected function getOldFolders()
JPATH_ADMINISTRATOR . '/components/com_redshop/views/shipping',
JPATH_ADMINISTRATOR . '/components/com_redshop/views/shipping_detail',
JPATH_ADMINISTRATOR . '/components/com_redshop/views/wrapper_detail',
JPATH_ADMINISTRATOR . '/components/com_redshop/views/newsletter_detail'
JPATH_ADMINISTRATOR . '/components/com_redshop/views/newsletter_detail',
JPATH_ADMINISTRATOR . '/components/com_redshop/views/stockroom_detail'
JPATH_ADMINISTRATOR . '/components/com_redshop/views/newsletter_detail',
JPATH_ADMINISTRATOR . '/components/com_redshop/views/stockroom_detail',
JPATH_ADMINISTRATOR . '/components/com_redshop/views/shopper_group',
JPATH_ADMINISTRATOR . '/components/com_redshop/views/shopper_group_detail',
);
Expand Down
3 changes: 3 additions & 0 deletions install.php
Original file line number Diff line number Diff line change
Expand Up @@ -332,6 +332,9 @@ protected function installPlugins($parent)

// Force to enable unserialize - twig plugin by anyways
$this->enablePlugin('unserialize', 'twig');

// Force to enable promotion - redshop_promotion plugin by anyways
$this->enablePlugin('promotion', 'redshop_promotion');
}
}
}
Expand Down

0 comments on commit f4ad21e

Please sign in to comment.