Skip to content

Commit

Permalink
[Adjustment] Change details type from array to json
Browse files Browse the repository at this point in the history
  • Loading branch information
GSadee committed Dec 4, 2020
1 parent 6dfa6c4 commit 2e3835f
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
use Doctrine\DBAL\Schema\Schema;
use Doctrine\Migrations\AbstractMigration;

final class Version20201126103037 extends AbstractMigration
final class Version20201204071301 extends AbstractMigration
{
public function getDescription(): string
{
Expand All @@ -25,7 +25,7 @@ public function getDescription(): string

public function up(Schema $schema): void
{
$this->addSql('ALTER TABLE sylius_adjustment ADD details LONGTEXT NOT NULL COMMENT \'(DC2Type:array)\'');
$this->addSql('ALTER TABLE sylius_adjustment ADD details JSON NOT NULL');
}

public function down(Schema $schema): void
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@
<field name="neutral" column="is_neutral" type="boolean" />
<field name="locked" column="is_locked" type="boolean" />
<field name="originCode" column="origin_code" type="string" nullable="true" />
<field name="details" type="array" />
<field name="details" type="json" />

<field name="createdAt" column="created_at" type="datetime">
<gedmo:timestampable on="create"/>
Expand Down

0 comments on commit 2e3835f

Please sign in to comment.