diff --git a/phpBB/phpbb/db/migration/schema_generator.php b/phpBB/phpbb/db/migration/schema_generator.php index 90cfddbe5a..1153f4c67e 100644 --- a/phpBB/phpbb/db/migration/schema_generator.php +++ b/phpBB/phpbb/db/migration/schema_generator.php @@ -185,6 +185,7 @@ class schema_generator 'drop_columns' => 'COLUMNS', 'change_columns' => 'COLUMNS', 'add_index' => 'KEYS', + 'add_primary_keys' => 'PRIMARY_KEY', 'add_unique_index' => 'KEYS', 'drop_keys' => 'KEYS', 'rename_index' => 'KEYS', diff --git a/phpBB/phpbb/db/tools/doctrine.php b/phpBB/phpbb/db/tools/doctrine.php index 2675c59e30..2d8908c9bc 100644 --- a/phpBB/phpbb/db/tools/doctrine.php +++ b/phpBB/phpbb/db/tools/doctrine.php @@ -398,7 +398,7 @@ class doctrine implements tools_interface return $this->alter_schema( function (Schema $schema) use ($table_name, $column): void { - $this->schema_create_primary_key($schema, $column, $table_name); + $this->schema_create_primary_key($schema, $table_name, $column); } ); } @@ -990,7 +990,6 @@ class doctrine implements tools_interface /** * Creates primary key for a table * - * @param $column * @param Schema $schema * @param string $table_name * @param array|string $column_name