Commit c3121677 authored by Felix Herrmann's avatar Felix Herrmann
Browse files

Merge branch 'fix/table-name' into 'master'

changed table name to convention

See merge request shopware/plugins/RicoDynamicFAQ!16
parents 0a886a9b 1ccd4e44
......@@ -85,7 +85,7 @@ class Question extends ModelEntity
* @var ArrayCollection
*
* @ORM\ManyToMany(targetEntity="RicoDynamicFaq\Models\Category")
* @ORM\JoinTable(name="s_rico_dynamic_faq_question_category_mm",
* @ORM\JoinTable(name="rico_faq_answer_categoy_mm",
* joinColumns={@ORM\JoinColumn(name="question", referencedColumnName="id")},
* inverseJoinColumns={@ORM\JoinColumn(name="category", referencedColumnName="id")}
* )
......
......@@ -10,9 +10,11 @@
namespace RicoDynamicFaq;
use RicoDynamicFaq\Components\PluginInstaller;
use RicoDynamicFaq\Loader\DatabaseLoader;
use Shopware\Components\Plugin;
use Shopware\Components\Plugin\Context\InstallContext;
use Shopware\Components\Plugin\Context\UninstallContext;
use Shopware\Components\Plugin\Context\UpdateContext;
/**
* Class RicoDynamicFaq.
......@@ -28,6 +30,15 @@ class RicoDynamicFaq extends Plugin
parent::install($context);
}
/**
* @param UpdateContext $context
*/
public function update(UpdateContext $context)
{
(new DatabaseLoader($this->container->get('models')))->update();
parent::update($context);
}
/**
* {@inheritdoc}
*/
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment