I did an upgrade from seafile 9 to 10, did the convertion from sqlite to mysql, and the upgrade to seafile 11.
After this, I noticed that most of my share links are missing. The missing links are in seahub-db.sql in a way like:
INSERT INTO share_fileshare VALUES(886,'a.b@c.ath.cx','a0a2d6d0-7c8b-4e76-adff-b2cdfe51cbd0','/dir/file.ext','1234567890abcdefghij','2024-01-09 21:14:50.493424',9,'f',NULL,NULL,'view_download');
If I try to add the entry manually via mysql:
MariaDB [seahub_db]> INSERT INTO share_fileshare VALUES(886,'a.b@c.ath.cx','a0a2d6d0-7c8b-4e76-adff-b2cdfe51cbd0','/dir/file.ext','1234567890abcdefghij','2024-01-09 21:14:50.493424',9,'f',NULL,NULL,'view_download');
ERROR 1406 (22001): Data too long for column 'token' at row 1
MariaDB [seahub_db]> DESCRIBE share_fileshare;
+-------------+--------------+------+-----+---------------+----------------+
| Field | Type | Null | Key | Default | Extra |
+-------------+--------------+------+-----+---------------+----------------+
| id | int(11) | NO | PRI | NULL | auto_increment |
| username | varchar(255) | NO | MUL | NULL | |
| repo_id | varchar(36) | NO | MUL | NULL | |
| path | longtext | NO | | NULL | |
| token | varchar(10) | NO | UNI | NULL | |
| ctime | datetime | NO | | NULL | |
| view_cnt | int(11) | NO | | NULL | |
| s_type | varchar(2) | NO | MUL | NULL | |
| password | varchar(128) | YES | | NULL | |
| expire_date | datetime | YES | | NULL | |
| permission | varchar(50) | NO | | view_download | |
+-------------+--------------+------+-----+---------------+----------------+
11 rows in set (0.005 sec)
fails, because the token does not fit the table definition.
Is there a way to restore the share links?