Skip to content

Commit

Permalink
fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
bigboss86 committed Nov 2, 2021
1 parent 0332ab3 commit dbc8cc6
Show file tree
Hide file tree
Showing 6 changed files with 38 additions and 26 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,11 +21,11 @@ jobs:
strategy:
fail-fast: false
matrix:
php: ["8.0", "7.4"]
php: ["7.4", "8.0"]
symfony: ["^4.4", "^5.2"]
sylius: ["~1.9.0", "~1.10.0"]
node: ["10.x"]
mysql: ["8.0"]
mysql: ["5.7", "8.0"]

exclude:
-
Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ This plugin adds data reports to the Sylius administration interface.
It's highly inspired on the old [SyliusReportBundle](https://github.com/Sylius/SyliusReportBundle) and
[Report](https://github.com/Sylius/Report) component using its good architecture.

Support Sylius version 1.7+.
Support Sylius version 1.9+.

#### Premium features!
Do you want advanced features? Take a look at our [Report Pro Plugin](https://odiseo.io/plugins-and-bundles/premium/sylius-report-pro-plugin), an extended version of this one.
Expand Down
5 changes: 4 additions & 1 deletion composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
"license": "MIT",
"require": {
"php": "^7.4 || ^8.0",
"sylius/sylius": "~1.9.0 || ~1.10.0",
"sylius/sylius": "^1.9",
"beberlei/doctrineextensions": "^1.2"
},
"require-dev": {
Expand Down Expand Up @@ -46,6 +46,9 @@
"config": {
"sort-packages": true
},
"conflict": {
"doctrine/dbal": "^3.0"
},
"autoload": {
"psr-4": {
"Odiseo\\SyliusReportPlugin\\": "src/",
Expand Down
1 change: 0 additions & 1 deletion src/DataFetcher/UserRegistrationDataFetcher.php
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@

namespace Odiseo\SyliusReportPlugin\DataFetcher;

use Exception;
use Odiseo\SyliusReportPlugin\Filter\QueryFilterInterface;
use Odiseo\SyliusReportPlugin\Form\Type\DataFetcher\UserRegistrationType;

Expand Down
21 changes: 0 additions & 21 deletions src/Migrations/Version20211013183052.php

This file was deleted.

31 changes: 31 additions & 0 deletions src/Migrations/Version20211102130221.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
<?php

declare(strict_types=1);

namespace Odiseo\SyliusReportPlugin\Migrations;

use Doctrine\DBAL\Schema\Schema;
use Doctrine\Migrations\AbstractMigration;

/**
* Auto-generated Migration: Please modify to your needs!
*/
final class Version20211102130221 extends AbstractMigration
{
public function getDescription(): string
{
return '';
}

public function up(Schema $schema): void
{
// this up() migration is auto-generated, please modify it to your needs
$this->addSql('CREATE TABLE odiseo_report (id INT AUTO_INCREMENT NOT NULL, code VARCHAR(255) NOT NULL, name VARCHAR(255) NOT NULL, description VARCHAR(255) DEFAULT NULL, renderer VARCHAR(255) NOT NULL, renderer_configuration LONGTEXT NOT NULL COMMENT \'(DC2Type:array)\', data_fetcher VARCHAR(255) NOT NULL, data_fetcher_configuration LONGTEXT NOT NULL COMMENT \'(DC2Type:array)\', created_at DATETIME NOT NULL, updated_at DATETIME NOT NULL, UNIQUE INDEX UNIQ_840BB13D77153098 (code), PRIMARY KEY(id)) DEFAULT CHARACTER SET UTF8 COLLATE `UTF8_unicode_ci` ENGINE = InnoDB');
}

public function down(Schema $schema): void
{
// this down() migration is auto-generated, please modify it to your needs
$this->addSql('DROP TABLE odiseo_report');
}
}

0 comments on commit dbc8cc6

Please sign in to comment.