瀏覽代碼

revert ids type changes

Olivier Massot 9 月之前
父節點
當前提交
1fc2b0e6ae

+ 1 - 1
src/Entity/Access/FunctionType.php

@@ -20,7 +20,7 @@ class FunctionType
 {
     #[ORM\Id]
     #[ORM\GeneratedValue]
-    #[ORM\Column(type: "tinyint", options: ["unsigned" => true])]
+    #[ORM\Column]
     private ?int $id = null;
 
     #[ORM\Column(length: 50, enumType: TypeFunctionEnum::class)]

+ 1 - 1
src/Entity/Booking/EventGender.php

@@ -12,7 +12,7 @@ use Doctrine\ORM\Mapping as ORM;
 class EventGender
 {
     #[ORM\Id]
-    #[ORM\Column(type: "tinyint", options: ["unsigned" => true])]
+    #[ORM\Column]
     #[ORM\GeneratedValue]
     private ?int $id = null;
 

+ 1 - 1
src/Entity/Core/Country.php

@@ -24,7 +24,7 @@ use Doctrine\ORM\Mapping as ORM;
 class Country
 {
     #[ORM\Id]
-    #[ORM\Column(type: "smallint", options: ["unsigned" => true])]
+    #[ORM\Column]
     #[ORM\GeneratedValue]
     private ?int $id = null;
 

+ 1 - 1
src/Entity/Core/Department.php

@@ -15,7 +15,7 @@ use Doctrine\ORM\Mapping as ORM;
 class Department
 {
     #[ORM\Id]
-    #[ORM\Column(type: "smallint", options: ["unsigned" => true])]
+    #[ORM\Column]
     #[ORM\GeneratedValue]
     private ?int $id = null;
 

+ 1 - 1
src/Entity/Core/Familly.php

@@ -15,7 +15,7 @@ use Doctrine\ORM\Mapping as ORM;
 class Familly
 {
     #[ORM\Id]
-    #[ORM\Column(type: "tinyint", options: ["unsigned" => true])]
+    #[ORM\Column]
     #[ORM\GeneratedValue]
     private ?int $id = null;
 

+ 1 - 1
src/Entity/Core/Gender.php

@@ -15,7 +15,7 @@ use Doctrine\ORM\Mapping as ORM;
 class Gender
 {
     #[ORM\Id]
-    #[ORM\Column(type: "smallint", options: ["unsigned" => true])]
+    #[ORM\Column]
     #[ORM\GeneratedValue]
     private ?int $id = null;
 

+ 1 - 1
src/Entity/Core/Region.php

@@ -15,7 +15,7 @@ use Doctrine\ORM\Mapping as ORM;
 class Region
 {
     #[ORM\Id]
-    #[ORM\Column(type: "tinyint", options: ["unsigned" => true])]
+    #[ORM\Column]
     #[ORM\GeneratedValue]
     private ?int $id = null;
 

+ 1 - 1
src/Entity/Education/EducationNotationConfig.php

@@ -47,7 +47,7 @@ class EducationNotationConfig
     #[ORM\Column(type: 'text', nullable: true)]
     private ?string $description;
 
-    #[ORM\Column(type: "tinyint", options: ['default' => 1])]
+    #[ORM\Column(type: "integer", options: ['default' => 1])]
     #[Assert\Range(notInRangeMessage: 'between_{{ min }}_and_{{ max }}', min: 1, max: 10)]
     private int $coefficient = 1;
 

+ 1 - 1
src/Entity/Education/EducationTiming.php

@@ -63,7 +63,7 @@ class EducationTiming
     #[ORM\JoinColumn(nullable: false)]
     private Organization $organization;
 
-    #[ORM\Column(type: "smallint", options: ["unsigned" => true])]
+    #[ORM\Column]
     private int $timing;
 
     #[ORM\OneToMany(mappedBy: 'educationTiming', targetEntity: EducationStudent::class, orphanRemoval: true)]

+ 1 - 1
src/Entity/Network/Network.php

@@ -23,7 +23,7 @@ use Symfony\Component\Serializer\Annotation\Groups;
 class Network
 {
     #[ORM\Id]
-    #[ORM\Column(type: "tinyint", options: ["unsigned" => true])]
+    #[ORM\Column]
     #[ORM\GeneratedValue]
     #[Groups('network')]
     private ?int $id = null;

+ 1 - 1
src/Entity/Organization/ActivityType.php

@@ -15,7 +15,7 @@ use Doctrine\ORM\Mapping as ORM;
 class ActivityType
 {
     #[ORM\Id]
-    #[ORM\Column(type: "tinyint", options: ["unsigned" => true])]
+    #[ORM\Column]
     #[ORM\GeneratedValue]
     private ?int $id = null;
 

+ 1 - 1
src/Entity/Organization/TypeOfPractice.php

@@ -24,7 +24,7 @@ use Symfony\Component\Serializer\Annotation\Groups;
 class TypeOfPractice
 {
     #[ORM\Id]
-    #[ORM\Column(type: "tinyint", options: ["unsigned" => true])]
+    #[ORM\Column]
     #[ORM\GeneratedValue]
     #[Groups(['read'])]
     private ?int $id = null;

+ 1 - 1
src/Entity/Person/AllowedIp.php

@@ -13,7 +13,7 @@ use Symfony\Component\Validator\Constraints as Assert;
 class AllowedIp
 {
     #[ORM\Id]
-    #[ORM\Column(type: "smallint", options: ["unsigned" => true])]
+    #[ORM\Column]
     #[ORM\GeneratedValue]
     private int $id;