File tree Expand file tree Collapse file tree 5 files changed +50
-56
lines changed
Expand file tree Collapse file tree 5 files changed +50
-56
lines changed Original file line number Diff line number Diff line change @@ -146,6 +146,8 @@ class AlterOperation extends Component
146146 2 ,
147147 'var ' ,
148148 ],
149+ 'UNIQUE ' => 2 ,
150+ 'UNIQUE KEY ' => 2 ,
149151
150152 'CHARACTER SET ' => 3 ,
151153 'TO ' => [
Original file line number Diff line number Diff line change 325325 "options": {
326326 "@type": "PhpMyAdmin\\SqlParser\\Components\\OptionsArray",
327327 "options": {
328- "1": "ADD"
328+ "1": "ADD",
329+ "2": "UNIQUE KEY"
329330 }
330331 },
331- "field": null,
332+ "field": {
333+ "@type": "PhpMyAdmin\\SqlParser\\Components\\Expression",
334+ "database": null,
335+ "table": null,
336+ "column": "functional_index",
337+ "expr": "`functional_index`",
338+ "alias": null,
339+ "function": null,
340+ "subquery": null
341+ },
332342 "partitions": null,
333343 "unknown": [
334- {
335- "@type": "@10"
336- },
337- {
338- "@type": "@11"
339- },
340- {
341- "@type": "@12"
342- },
343- {
344- "@type": "@13"
345- },
346344 {
347345 "@type": "@14"
348346 },
Original file line number Diff line number Diff line change 217217 "options": {
218218 "@type": "PhpMyAdmin\\SqlParser\\Components\\OptionsArray",
219219 "options": {
220- "1": "ADD"
220+ "1": "ADD",
221+ "2": "UNIQUE KEY"
221222 }
222223 },
223- "field": null,
224+ "field": {
225+ "@type": "PhpMyAdmin\\SqlParser\\Components\\Expression",
226+ "database": null,
227+ "table": null,
228+ "column": "name_of_the_unique_constraint",
229+ "expr": "name_of_the_unique_constraint",
230+ "alias": null,
231+ "function": null,
232+ "subquery": null
233+ },
224234 "partitions": null,
225235 "unknown": [
226- {
227- "@type": "@10"
228- },
229- {
230- "@type": "@11"
231- },
232- {
233- "@type": "@12"
234- },
235- {
236- "@type": "@13"
237- },
238236 {
239237 "@type": "@14"
240238 },
Original file line number Diff line number Diff line change 217217 "options": {
218218 "@type": "PhpMyAdmin\\SqlParser\\Components\\OptionsArray",
219219 "options": {
220- "1": "ADD"
220+ "1": "ADD",
221+ "2": "UNIQUE"
221222 }
222223 },
223- "field": null,
224+ "field": {
225+ "@type": "PhpMyAdmin\\SqlParser\\Components\\Expression",
226+ "database": null,
227+ "table": null,
228+ "column": "name_of_the_unique_constraint",
229+ "expr": "name_of_the_unique_constraint",
230+ "alias": null,
231+ "function": null,
232+ "subquery": null
233+ },
224234 "partitions": null,
225235 "unknown": [
226- {
227- "@type": "@10"
228- },
229- {
230- "@type": "@11"
231- },
232- {
233- "@type": "@12"
234- },
235- {
236- "@type": "@13"
237- },
238236 {
239237 "@type": "@14"
240238 },
Original file line number Diff line number Diff line change 54015401 "options": {
54025402 "@type": "PhpMyAdmin\\SqlParser\\Components\\OptionsArray",
54035403 "options": {
5404- "1": "ADD"
5404+ "1": "ADD",
5405+ "2": "UNIQUE KEY"
54055406 }
54065407 },
5407- "field": null,
5408+ "field": {
5409+ "@type": "PhpMyAdmin\\SqlParser\\Components\\Expression",
5410+ "database": null,
5411+ "table": null,
5412+ "column": "idServer",
5413+ "expr": "`idServer`",
5414+ "alias": null,
5415+ "function": null,
5416+ "subquery": null
5417+ },
54085418 "partitions": null,
54095419 "unknown": [
5410- {
5411- "@type": "@394"
5412- },
5413- {
5414- "@type": "@395"
5415- },
5416- {
5417- "@type": "@396"
5418- },
5419- {
5420- "@type": "@397"
5421- },
54225420 {
54235421 "@type": "@398"
54245422 },
You can’t perform that action at this time.
0 commit comments