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.php7
1 files changed, 6 insertions, 1 deletions
diff --git a/src/Components/AlterOperation.php b/src/Components/AlterOperation.php
index b3f8e26..e3a3f9f 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)
{
@@ -339,7 +340,11 @@ class AlterOperation extends Component
'COMMENT',
'DEFAULT',
'CHARACTER SET',
- 'COLLATE'
+ '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