-
Bug
-
Resolution: Unresolved
-
Major
-
None
-
4.0.0-a1
-
None
Attempt to add autoincrement column to existing table, f.e.
public function update_schema(): array |
{
|
return [ |
'add_columns' => [ |
$this->table_prefix . 'user_notifications' => [ |
'id' => ['UINT', null, 'auto_increment'], |
],
|
],
|
];
|
}
|
causes uncaught exception:
An exception occurred while executing a query: SQLSTATE[42601]: Syntax error: 7 ERROR: syntax error (at or near: "{") LINE 1: ...TABLE phpbb_user_notifications ADD id INT DEFAULT {{placehol... ^
|
Resulting SQL running which causes that, is:
ALTER TABLE phpbb_user_notifications ADD id INT DEFAULT {{placeholder_sequence}}
|