Skip to content

Commit

Permalink
avoid deprecated json_array type
Browse files Browse the repository at this point in the history
  • Loading branch information
basz committed Oct 17, 2022
1 parent f017c3f commit 151c61f
Show file tree
Hide file tree
Showing 7 changed files with 12 additions and 12 deletions.
4 changes: 2 additions & 2 deletions config/doctrine/ZfrOAuth2.Server.Model.AbstractToken.dcm.xml
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
<?xml version="1.0"?>
<doctrine-mapping xmlns="http://doctrine-project.org/schemas/orm/doctrine-mapping" xsi="http://www.w3.org/2001/XMLSchema-instance" schemaLocation="http://doctrine-project.org/schemas/orm/doctrine-mapping.xsd">
<doctrine-mapping xmlns="http://doctrine-project.org/schemas/orm/doctrine-mapping" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://doctrine-project.org/schemas/orm/doctrine-mapping https://www.doctrine-project.org/schemas/orm/doctrine-mapping.xsd">
<mapped-superclass name="ZfrOAuth2\Server\Model\AbstractToken">
<cache usage="READ_ONLY" region="oauth_token_region"/>
<id name="token" type="string" length="40"/>
<field name="expiresAt" type="datetime" nullable="false" column="expires_at"/>
<field name="scopes" type="json_array" nullable="false"/>
<field name="scopes" type="json" nullable="false"/>
<many-to-one field="client" target-entity="ZfrOAuth2\Server\Model\Client">
<join-columns>
<join-column name="client_id" referenced-column-name="id"/>
Expand Down
4 changes: 2 additions & 2 deletions config/doctrine/ZfrOAuth2.Server.Model.AccessToken.dcm.xml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<?xml version="1.0"?>
<doctrine-mapping xmlns="http://doctrine-project.org/schemas/orm/doctrine-mapping" xsi="http://www.w3.org/2001/XMLSchema-instance" schemaLocation="http://doctrine-project.org/schemas/orm/doctrine-mapping.xsd">
<entity name="ZfrOAuth2\Server\Model\AccessToken" extends="ZfrOAuth2\Server\Model\AbstractToken" repository-class="ZfrOAuth2\Server\Repository\AccessTokenRepositoryInterface" table="oauth_access_tokens">
<doctrine-mapping xmlns="http://doctrine-project.org/schemas/orm/doctrine-mapping" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://doctrine-project.org/schemas/orm/doctrine-mapping https://www.doctrine-project.org/schemas/orm/doctrine-mapping.xsd">
<entity name="ZfrOAuth2\Server\Model\AccessToken" repository-class="ZfrOAuth2\Server\Repository\AccessTokenRepositoryInterface" table="oauth_access_tokens">
<attribute-overrides>
<attribute-override name="expiresAt">
<field nullable="true"/>
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<?xml version="1.0"?>
<doctrine-mapping xmlns="http://doctrine-project.org/schemas/orm/doctrine-mapping" xsi="http://www.w3.org/2001/XMLSchema-instance" schemaLocation="http://doctrine-project.org/schemas/orm/doctrine-mapping.xsd">
<entity name="ZfrOAuth2\Server\Model\AuthorizationCode" extends="ZfrOAuth2\Server\Model\AbstractToken" repository-class="ZfrOAuth2\Server\Repository\AuthorizationCodeRepositoryInterface" table="oauth_authorization_codes">
<doctrine-mapping xmlns="http://doctrine-project.org/schemas/orm/doctrine-mapping" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://doctrine-project.org/schemas/orm/doctrine-mapping https://www.doctrine-project.org/schemas/orm/doctrine-mapping.xsd">
<entity name="ZfrOAuth2\Server\Model\AuthorizationCode" repository-class="ZfrOAuth2\Server\Repository\AuthorizationCodeRepositoryInterface" table="oauth_authorization_codes">
<field name="redirectUri" type="string" length="1000" nullable="false" column="redirect_uri"/>
</entity>
</doctrine-mapping>
6 changes: 3 additions & 3 deletions config/doctrine/ZfrOAuth2.Server.Model.Client.dcm.xml
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
<?xml version="1.0"?>
<doctrine-mapping xmlns="http://doctrine-project.org/schemas/orm/doctrine-mapping" xsi="http://www.w3.org/2001/XMLSchema-instance" schemaLocation="http://doctrine-project.org/schemas/orm/doctrine-mapping.xsd">
<doctrine-mapping xmlns="http://doctrine-project.org/schemas/orm/doctrine-mapping" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://doctrine-project.org/schemas/orm/doctrine-mapping https://www.doctrine-project.org/schemas/orm/doctrine-mapping.xsd">
<entity name="ZfrOAuth2\Server\Model\Client" repository-class="ZfrOAuth2\Server\Repository\ClientRepositoryInterface" table="oauth_clients">
<id name="id" type="string" length="36"/>
<field name="name" type="string" length="60" nullable="false"/>
<field name="secret" type="string" length="60" nullable="false"/>
<field name="redirectUris" type="json_array" nullable="false" column="redirect_uris"/>
<field name="scopes" type="json_array" nullable="false">
<field name="redirectUris" type="json" nullable="false" column="redirect_uris"/>
<field name="scopes" type="json" nullable="false">
<options>
<option name="default">[]</option>
</options>
Expand Down
4 changes: 2 additions & 2 deletions config/doctrine/ZfrOAuth2.Server.Model.RefreshToken.dcm.xml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<?xml version="1.0"?>
<doctrine-mapping xmlns="http://doctrine-project.org/schemas/orm/doctrine-mapping" xsi="http://www.w3.org/2001/XMLSchema-instance" schemaLocation="http://doctrine-project.org/schemas/orm/doctrine-mapping.xsd">
<entity name="ZfrOAuth2\Server\Model\RefreshToken" extends="ZfrOAuth2\Server\Model\AbstractToken" repository-class="ZfrOAuth2\Server\Repository\AccessTokenRepositoryInterface" table="oauth_refresh_tokens">
<doctrine-mapping xmlns="http://doctrine-project.org/schemas/orm/doctrine-mapping" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://doctrine-project.org/schemas/orm/doctrine-mapping https://www.doctrine-project.org/schemas/orm/doctrine-mapping.xsd">
<entity name="ZfrOAuth2\Server\Model\RefreshToken" repository-class="ZfrOAuth2\Server\Repository\AccessTokenRepositoryInterface" table="oauth_refresh_tokens">
<attribute-overrides>
<attribute-override name="expiresAt">
<field nullable="true"/>
Expand Down
2 changes: 1 addition & 1 deletion config/doctrine/ZfrOAuth2.Server.Model.Scope.dcm.xml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
<?xml version="1.0"?>
<doctrine-mapping xmlns="http://doctrine-project.org/schemas/orm/doctrine-mapping" xsi="http://www.w3.org/2001/XMLSchema-instance" schemaLocation="http://doctrine-project.org/schemas/orm/doctrine-mapping.xsd">
<doctrine-mapping xmlns="http://doctrine-project.org/schemas/orm/doctrine-mapping" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://doctrine-project.org/schemas/orm/doctrine-mapping https://www.doctrine-project.org/schemas/orm/doctrine-mapping.xsd">
<entity name="ZfrOAuth2\Server\Model\Scope" repository-class="ZfrOAuth2\Server\Repository\ScopeRepositoryInterface" table="oauth_scopes">
<id name="id" type="integer">
<generator strategy="AUTO"/>
Expand Down
Binary file modified etc/Model.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

0 comments on commit 151c61f

Please sign in to comment.