9
9
10
10
trait PlatformTrait
11
11
{
12
- #[\Override]
12
+ /**
13
+ * @deprecated remove once DBAL 3.x support is dropped
14
+ */
13
15
public function getVarcharTypeDeclarationSQL (array $ column )
14
16
{
15
17
$ column ['length ' ] = ($ column ['length ' ] ?? 255 ) * 4 ;
@@ -19,7 +21,9 @@ public function getVarcharTypeDeclarationSQL(array $column)
19
21
20
22
// remove once https://github.com/doctrine/dbal/pull/4987 is fixed
21
23
// and also $this->markDoctrineTypeCommented('text') below
22
- #[\Override]
24
+ /**
25
+ * @deprecated remove once DBAL 3.x support is dropped
26
+ */
23
27
public function getClobTypeDeclarationSQL (array $ column )
24
28
{
25
29
$ res = parent ::getClobTypeDeclarationSQL ($ column );
@@ -36,7 +40,9 @@ public function getClobTypeDeclarationSQL(array $column)
36
40
$this->markDoctrineTypeCommented('text');
37
41
} */
38
42
39
- #[\Override]
43
+ /**
44
+ * @deprecated remove once DBAL 3.x support is dropped
45
+ */
40
46
public function getCurrentDatabaseExpression (bool $ includeSchema = false ): string
41
47
{
42
48
if ($ includeSchema ) {
@@ -46,7 +52,9 @@ public function getCurrentDatabaseExpression(bool $includeSchema = false): strin
46
52
return parent ::getCurrentDatabaseExpression ();
47
53
}
48
54
49
- #[\Override]
55
+ /**
56
+ * @deprecated remove once DBAL 3.x support is dropped
57
+ */
50
58
public function getCreateIndexSQL (Index $ index , $ table )
51
59
{
52
60
// workaround https://github.com/doctrine/dbal/issues/5507
@@ -62,7 +70,9 @@ public function getCreateIndexSQL(Index $index, $table)
62
70
// SQL Server DBAL platform has buggy identifier escaping, fix until fixed officially, see:
63
71
// https://github.com/doctrine/dbal/pull/4360
64
72
65
- #[\Override]
73
+ /**
74
+ * @deprecated remove once DBAL 3.x support is dropped
75
+ */
66
76
protected function getCreateColumnCommentSQL ($ tableName , $ columnName , $ comment )
67
77
{
68
78
if (str_contains ($ tableName , '. ' )) {
@@ -83,7 +93,9 @@ protected function getCreateColumnCommentSQL($tableName, $columnName, $comment)
83
93
);
84
94
}
85
95
86
- #[\Override]
96
+ /**
97
+ * @deprecated remove once DBAL 3.x support is dropped
98
+ */
87
99
protected function getAlterColumnCommentSQL ($ tableName , $ columnName , $ comment )
88
100
{
89
101
if (str_contains ($ tableName , '. ' )) {
@@ -104,7 +116,9 @@ protected function getAlterColumnCommentSQL($tableName, $columnName, $comment)
104
116
);
105
117
}
106
118
107
- #[\Override]
119
+ /**
120
+ * @deprecated remove once DBAL 3.x support is dropped
121
+ */
108
122
protected function getDropColumnCommentSQL ($ tableName , $ columnName )
109
123
{
110
124
if (str_contains ($ tableName , '. ' )) {
@@ -129,7 +143,9 @@ private function quoteSingleIdentifierAsStringLiteral(string $levelName): string
129
143
return $ this ->quoteStringLiteral (preg_replace ('~^\[|\]$~ ' , '' , $ levelName ));
130
144
}
131
145
132
- #[\Override]
146
+ /**
147
+ * @deprecated remove once DBAL 3.x support is dropped
148
+ */
133
149
public function getAddExtendedPropertySQL (
134
150
$ name ,
135
151
$ value = null ,
@@ -154,7 +170,9 @@ public function getAddExtendedPropertySQL(
154
170
);
155
171
}
156
172
157
- #[\Override]
173
+ /**
174
+ * @deprecated remove once DBAL 3.x support is dropped
175
+ */
158
176
public function getDropExtendedPropertySQL (
159
177
$ name ,
160
178
$ level0Type = null ,
@@ -178,7 +196,9 @@ public function getDropExtendedPropertySQL(
178
196
);
179
197
}
180
198
181
- #[\Override]
199
+ /**
200
+ * @deprecated remove once DBAL 3.x support is dropped
201
+ */
182
202
public function getUpdateExtendedPropertySQL (
183
203
$ name ,
184
204
$ value = null ,
@@ -203,7 +223,9 @@ public function getUpdateExtendedPropertySQL(
203
223
);
204
224
}
205
225
206
- #[\Override]
226
+ /**
227
+ * @deprecated remove once DBAL 3.x support is dropped
228
+ */
207
229
protected function getCommentOnTableSQL (string $ tableName , ?string $ comment ): string
208
230
{
209
231
if (str_contains ($ tableName , '. ' )) {
0 commit comments