Hi all,
I am running flarum 1.6.1 and started to upgrade to 1.6.3.
composer update --prefer-dist --no-dev -a -W
Works fine and:
composer show flarum/core
Shows that it is updated to 1.6.3
The problem is migrate:
php flarum migrate
The error I get is:
flarum.ERROR: PDOException: SQLSTATE[42S01]: Base table or view already exists: 1050 Table 'IBC_access_tokens' already exists in /var/www/html/forum/flarum/vendor/doctrine/dbal/lib/Doctrine/DBAL/Driver/PDOStatement.php:117
I even tried to remove the table but I just continue to get the same error for the next table.
I found a post (which I do not seem to find again) that mentioned that if you add a table you have to manually register this table in migrations table and you should not get the problem that the table already exists. I tried to add all tables to this table but it made no difference.
This is the first time I upgrade the system, I installed 1.6.1 from the beginning and migrated posts with a tool from a Vanilla forum. As this tool did not fully migrated everything I had to manually add some stuff to the tables.
I do not know if this migration tool somehow "destroyed" the tables so flarum thinks that it is a new installation or something.
Flarum information
Flarum core 1.6.1
PHP version: 7.4.33
MySQL version: 5.5.5-10.5.15-MariaDB-0+deb11u1
Loaded extensions: Core, date, libxml, openssl, pcre, zlib, filter, hash, pcntl, Reflection, SPL, session, standard, sodium, mysqlnd, PDO, xml, calendar, ctype, curl, dom, mbstring, FFI, fileinfo, ftp, gd, gettext, iconv, json, exif, mysqli, pdo_mysql, Phar, posix, readline, shmop, SimpleXML, sockets, sysvmsg, sysvsem, sysvshm, tokenizer, xmlreader, xmlwriter, xsl, zip, Zend OPcache
+----------------------+---------+--------+
| Flarum Extensions | | |
+----------------------+---------+--------+
| ID | Version | Commit |
+----------------------+---------+--------+
| flarum-flags | v1.6.1 | |
| flarum-approval | v1.6.1 | |
| flarum-subscriptions | v1.6.1 | |
| flarum-tags | v1.6.1 | |
| fof-upload | 1.2.3 | |
| fof-impersonate | 1.1.0 | |
| fof-follow-tags | 1.1.7 | |
| flarum-suspend | v1.6.1 | |
| flarum-sticky | v1.6.1 | |
| flarum-statistics | v1.6.1 | |
| flarum-mentions | v1.6.1 | |
| flarum-markdown | v1.6.1 | |
| flarum-lock | v1.6.1 | |
| flarum-likes | v1.6.1 | |
| flarum-lang-english | v1.6.0 | |
| flarum-emoji | v1.6.1 | |
| flarum-bbcode | v1.6.0 | |
+----------------------+---------+--------+
Base URL: https://forum.interbull.org
Installation path: /var/www/html/forum/flarum
Queue driver: sync
Session driver: file
Mail driver: mail
Debug mode: off
Need advice on this matter!
Many thanks in advance!!