diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/Components/AlterOperation.php | 7 |
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 |