diff --git a/README.md b/README.md index e7a80f83..669220ec 100644 --- a/README.md +++ b/README.md @@ -55,13 +55,6 @@ Symfony Flex, it's much quicker! :) cp -R vendor/sylius/admin-order-creation-plugin/src/Resources/views/SyliusAdminBundle/* templates/bundles/SyliusAdminBundle/ ``` -3. Copy plugin migrations to your migrations directory (e.g. `src/Migrations`) and apply them to your database: - - ```bash - cp -R vendor/sylius/admin-order-creation-plugin/migrations/* src/Migrations - bin/console doctrine:migrations:migrate - ``` - ## Extension points Admin Order Creation Plugin makes it possible to add custom discount during order creation - thus some of Order diff --git a/docs/legacy_installation.md b/docs/legacy_installation.md index 4eb4f0df..01563dc2 100644 --- a/docs/legacy_installation.md +++ b/docs/legacy_installation.md @@ -36,20 +36,13 @@ cp -R vendor/sylius/admin-order-creation-plugin/src/Resources/views/SyliusAdminBundle/* app/Resources/SyliusAdminBundle/views/ ``` -6. Copy plugin migrations to your migrations directory (e.g. `src/Migrations`) and apply them to your database: - - ```bash - cp -R vendor/sylius/admin-order-creation-plugin/migrations/* src/Migrations - bin/console doctrine:migrations:migrate - ``` - -7. Install `FOSJsRoutingBundle` assets: +6. Install `FOSJsRoutingBundle` assets: ```bash bin/console assets:install --symlink web ``` -8. Clear cache: +7. Clear cache: ```bash bin/console cache:clear diff --git a/migrations/Version20180626065141.php b/migrations/Version20180626065141.php deleted file mode 100644 index f989bf65..00000000 --- a/migrations/Version20180626065141.php +++ /dev/null @@ -1,29 +0,0 @@ -abortIf($this->connection->getDatabasePlatform()->getName() !== 'mysql', 'Migration can only be executed safely on \'mysql\'.'); - - $this->addSql('ALTER TABLE sylius_order ADD custom_total INT DEFAULT NULL'); - $this->addSql('ALTER TABLE sylius_order_item ADD custom_unit_price INT DEFAULT NULL'); - } - - public function down(Schema $schema) : void - { - // this down() migration is auto-generated, please modify it to your needs - $this->abortIf($this->connection->getDatabasePlatform()->getName() !== 'mysql', 'Migration can only be executed safely on \'mysql\'.'); - - $this->addSql('ALTER TABLE sylius_order DROP custom_total'); - $this->addSql('ALTER TABLE sylius_order_item DROP custom_unit_price'); - } -} diff --git a/migrations/Version20180709120541.php b/migrations/Version20180709120541.php deleted file mode 100644 index 17d08e22..00000000 --- a/migrations/Version20180709120541.php +++ /dev/null @@ -1,29 +0,0 @@ -abortIf($this->connection->getDatabasePlatform()->getName() !== 'mysql', 'Migration can only be executed safely on \'mysql\'.'); - - $this->addSql('ALTER TABLE sylius_order DROP custom_total'); - $this->addSql('ALTER TABLE sylius_order_item DROP custom_unit_price'); - } - - public function down(Schema $schema) : void - { - // this up() migration is auto-generated, please modify it to your needs - $this->abortIf($this->connection->getDatabasePlatform()->getName() !== 'mysql', 'Migration can only be executed safely on \'mysql\'.'); - - $this->addSql('ALTER TABLE sylius_order ADD custom_total INT DEFAULT NULL'); - $this->addSql('ALTER TABLE sylius_order_item ADD custom_unit_price INT DEFAULT NULL'); - } -}