File tree Expand file tree Collapse file tree 4 files changed +3
-6
lines changed Expand file tree Collapse file tree 4 files changed +3
-6
lines changed Original file line number Diff line number Diff line change 5
5
http://doctrine-project.org/schemas/orm/doctrine-mapping.xsd" >
6
6
7
7
<mapped-superclass name =" FOS\OAuthServerBundle\Entity\AccessToken" >
8
- <field name =" token" column =" token" type =" string" />
8
+ <field name =" token" column =" token" type =" string" unique = " true " />
9
9
<field name =" expiresAt" column =" expires_at" type =" integer" nullable =" true" />
10
10
<field name =" scope" column =" scope" type =" string" nullable =" true" />
11
11
</mapped-superclass >
Original file line number Diff line number Diff line change 5
5
http://doctrine-project.org/schemas/orm/doctrine-mapping.xsd" >
6
6
7
7
<mapped-superclass name =" FOS\OAuthServerBundle\Entity\AuthCode" >
8
- <field name =" token" column =" token" type =" string" />
8
+ <field name =" token" column =" token" type =" string" unique = " true " />
9
9
<field name =" redirectUri" column =" redirect_uri" type =" text" />
10
10
<field name =" expiresAt" column =" expires_at" type =" integer" nullable =" true" />
11
11
<field name =" scope" column =" scope" type =" string" nullable =" true" />
Original file line number Diff line number Diff line change 5
5
http://doctrine-project.org/schemas/orm/doctrine-mapping.xsd" >
6
6
7
7
<mapped-superclass name =" FOS\OAuthServerBundle\Entity\RefreshToken" >
8
- <field name =" token" column =" token" type =" string" />
8
+ <field name =" token" column =" token" type =" string" unique = " true " />
9
9
<field name =" expiresAt" column =" expires_at" type =" integer" nullable =" true" />
10
10
<field name =" scope" column =" scope" type =" string" nullable =" true" />
11
11
</mapped-superclass >
Original file line number Diff line number Diff line change @@ -140,7 +140,6 @@ use Doctrine\ORM\Mapping as ORM;
140
140
141
141
/**
142
142
* @ORM\Entity
143
- * @ORM\Table(uniqueConstraints={@ORM\UniqueConstraint(columns={"token"})})
144
143
*/
145
144
class AccessToken extends BaseAccessToken
146
145
{
@@ -175,7 +174,6 @@ use Doctrine\ORM\Mapping as ORM;
175
174
176
175
/**
177
176
* @ORM\Entity
178
- * @ORM\Table(uniqueConstraints={@ORM\UniqueConstraint(columns={"token"})})
179
177
*/
180
178
class RefreshToken extends BaseRefreshToken
181
179
{
@@ -210,7 +208,6 @@ use Doctrine\ORM\Mapping as ORM;
210
208
211
209
/**
212
210
* @ORM\Entity
213
- * @ORM\Table(uniqueConstraints={@ORM\UniqueConstraint(columns={"token"})})
214
211
*/
215
212
class AuthCode extends BaseAuthCode
216
213
{
You can’t perform that action at this time.
0 commit comments