Skip to content

Commit

Permalink
Replace deprecated 'json_array' type usage with 'json' (#47)
Browse files Browse the repository at this point in the history
  • Loading branch information
yann-eugone authored Nov 1, 2021
1 parent def927c commit c4df7fa
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 12 deletions.
20 changes: 10 additions & 10 deletions config/doctrine/Token.orm.xml
Original file line number Diff line number Diff line change
Expand Up @@ -20,16 +20,16 @@
<generator strategy="IDENTITY"/>
</id>

<field name="userClass" column="user_class" type="string" nullable="false" length="255"/>
<field name="userId" column="user_id" type="string" nullable="false" length="255"/>
<field name="value" column="value" type="string" nullable="false" length="255"/>
<field name="purpose" column="purpose" type="string" nullable="false" length="255"/>
<field name="payload" column="payload" type="json_array" nullable="false" />
<field name="createdAt" column="created_at" type="datetime" nullable="false" />
<field name="createdInformation" column="created_information" type="json_array" nullable="false" />
<field name="expiresAt" column="expires_at" type="datetime" nullable="false" />
<field name="keepUntil" column="keep_until" type="datetime" nullable="false" />
<field name="allowedUsages" column="allowed_usages" type="integer" nullable="false" />
<field name="userClass" column="user_class" type="string" nullable="false" length="255"/>
<field name="userId" column="user_id" type="string" nullable="false" length="255"/>
<field name="value" column="value" type="string" nullable="false" length="255"/>
<field name="purpose" column="purpose" type="string" nullable="false" length="255"/>
<field name="payload" column="payload" type="json" nullable="false" />
<field name="createdAt" column="created_at" type="datetime" nullable="false" />
<field name="createdInformation" column="created_information" type="json" nullable="false" />
<field name="expiresAt" column="expires_at" type="datetime" nullable="false" />
<field name="keepUntil" column="keep_until" type="datetime" nullable="false" />
<field name="allowedUsages" column="allowed_usages" type="integer" nullable="false" />

<one-to-many field="usages" target-entity="Yokai\SecurityTokenBundle\Entity\TokenUsage" mapped-by="token">
<cascade><cascade-all/></cascade>
Expand Down
4 changes: 2 additions & 2 deletions config/doctrine/TokenUsage.orm.xml
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,8 @@
<generator strategy="IDENTITY"/>
</id>

<field name="createdAt" column="created_at" type="datetime" nullable="false"/>
<field name="information" column="information" type="json_array" nullable="false"/>
<field name="createdAt" column="created_at" type="datetime" nullable="false"/>
<field name="information" column="information" type="json" nullable="false"/>

<many-to-one field="token" target-entity="Yokai\SecurityTokenBundle\Entity\Token" inversed-by="usages">
<join-column name="token_id" on-delete="CASCADE"/>
Expand Down

0 comments on commit c4df7fa

Please sign in to comment.