summaryrefslogtreecommitdiffstats
path: root/src/Components/AlterOperation.php
diff options
context:
space:
mode:
Diffstat (limited to 'src/Components/AlterOperation.php')
-rw-r--r--src/Components/AlterOperation.php5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/Components/AlterOperation.php b/src/Components/AlterOperation.php
index 2540521..b3de878 100644
--- a/src/Components/AlterOperation.php
+++ b/src/Components/AlterOperation.php
@@ -331,6 +331,7 @@ class AlterOperation extends Component
* between column and table alteration
*
* @param string $tokenValue Value of current token
+ * @return bool
*/
private static function checkIfColumnDefinitionKeyword($tokenValue)
{
@@ -340,6 +341,10 @@ class AlterOperation extends Component
'DEFAULT',
'CHARACTER SET',
'COLLATE',
+ 'PRIMARY',
+ 'UNIQUE',
+ 'PRIMARY KEY',
+ 'UNIQUE KEY',
];
// Since these options can be used for
// both table as well as a specific column in the table