mirror of
https://github.com/Karaka-Management/oms-Marketing.git
synced 2026-02-16 10:08:39 +00:00
Use default database connection
This commit is contained in:
parent
3f44f539fa
commit
b5e450934d
|
|
@ -38,10 +38,10 @@ class Installer extends InstallerAbstract
|
||||||
{
|
{
|
||||||
parent::install(__DIR__ . '/..', $dbPool, $info);
|
parent::install(__DIR__ . '/..', $dbPool, $info);
|
||||||
|
|
||||||
switch ($dbPool->get('core')->getType()) {
|
switch ($dbPool->get()->getType()) {
|
||||||
case DatabaseType::MYSQL:
|
case DatabaseType::MYSQL:
|
||||||
$dbPool->get('core')->con->prepare(
|
$dbPool->get()->con->prepare(
|
||||||
'CREATE TABLE if NOT EXISTS `' . $dbPool->get('core')->prefix . 'marketing_promotion` (
|
'CREATE TABLE if NOT EXISTS `' . $dbPool->get()->prefix . 'marketing_promotion` (
|
||||||
`marketing_promotion_id` int(11) NOT NULL AUTO_INCREMENT,
|
`marketing_promotion_id` int(11) NOT NULL AUTO_INCREMENT,
|
||||||
`marketing_promotion_name` varchar(30) NOT NULL,
|
`marketing_promotion_name` varchar(30) NOT NULL,
|
||||||
`marketing_promotion_description` text DEFAULT NULL,
|
`marketing_promotion_description` text DEFAULT NULL,
|
||||||
|
|
|
||||||
|
|
@ -39,7 +39,7 @@ class Uninstall extends UninstallAbstract
|
||||||
|
|
||||||
$query = new Builder($dbPool->get());
|
$query = new Builder($dbPool->get());
|
||||||
|
|
||||||
$query->prefix($dbPool->get('core')->getPrefix())->drop(
|
$query->prefix($dbPool->get()->getPrefix())->drop(
|
||||||
'marketing_promotion'
|
'marketing_promotion'
|
||||||
);
|
);
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue
Block a user