Toxyy wrote: ↑Sat Jun 16, 2018 8:21 am
That's a strange issue. It almost seems like migration didn't add the column at all.
The error occurs in
ext.php
and that's were the column is add
in the first step:
Code: Select all
/**
* @param mixed $old_state
* @return mixed false after last step, otherwise temporary state
*/
public function enable_step($old_state)
{
$db = $this->container->get('dbal.conn');
$posts_table = $this->container->getParameter('tables.posts');
$topics_table = $this->container->getParameter('tables.topics');
$users_table = $this->container->getParameter('tables.users');
if (!$old_state)
{
$db_tools = $this->container->get('dbal.tools');
// the user_topic_count column has to be present
$db_tools->perform_schema_changes([
'add_columns' => [
$users_table => [
'user_topic_count' => ['UINT', 0],
],
],
]);
// ...
Maybe it has something to do with a difference between MySQL and SQLite3 (what I am using). That's why I ask if anyone (with another database than me and especially MySQL or MariaDB) is experiencing this.