Data too long for column before_path #1

Closed
opened 2025-02-19 09:53:26 +01:00 by sven.seeberg · 4 comments

A user reports that a backup cannot be restored and sees the following error message:

An exception occurred while executing a query: SQLSTATE[22001]: String data, right truncated: 1406 Data too long for column `before_path` at row 1

image

A user reports that a backup cannot be restored and sees the following error message: ``` An exception occurred while executing a query: SQLSTATE[22001]: String data, right truncated: 1406 Data too long for column `before_path` at row 1 ``` ![image](/attachments/f46075e0-8ce3-4d97-91a2-e1d4e9ad51fa)
150 KiB
Owner
https://helpdesk.verdigado.com/#ticket/zoom/208292
Owner

$table->addColumn('before_path', 'string', [

			$table->addColumn('before_path', 'string', [
				'notnull' => false,
				'default' => '',
				'length' => 200,
			]);

Ich hatte die maximal Länge des Pfads einer gescannten Datei (relativ zur Gruppe) auf 200 beschränkt und nicht gedacht, dass wir da je drüber kommen. Aber OK, dann müssen wir das wohl anheben.

TODO:

  • Migration schreiben
  • Release erstellen
  • Release in app store hochladen
  • App in Wolke aktualisieren
https://git.verdigado.com/verdigado-public/nextcloud_groupfolder_filesystem_snapshots/src/commit/19362233f5482f0eea5ac3db0bdf89d6ccc634a7/lib/Migration/Version100Date20230822153000.php#L73 ``` $table->addColumn('before_path', 'string', [ 'notnull' => false, 'default' => '', 'length' => 200, ]); ``` Ich hatte die maximal Länge des Pfads einer gescannten Datei (relativ zur Gruppe) auf 200 beschränkt und nicht gedacht, dass wir da je drüber kommen. Aber OK, dann müssen wir das wohl anheben. TODO: - [x] Migration schreiben - [x] Release erstellen - [x] Release in app store hochladen - [ ] App in Wolke aktualisieren
Owner

Waeren dass 200 pro verzeichnis oder 200 fuer alle verzeichnisse?

Waeren dass 200 pro verzeichnis oder 200 fuer alle verzeichnisse?
TreJo closed this issue 2025-02-19 16:40:36 +01:00
Owner

@JunWi wrote in #1 (comment):

Waeren dass 200 pro verzeichnis oder 200 fuer alle verzeichnisse?

Pro Datei der relativer Pfad, also die Namen aller überliegenden Verzeichnisse mit "/" dazwischen.

@JunWi wrote in https://git.verdigado.com/verdigado-public/nextcloud_groupfolder_filesystem_snapshots/issues/1#issuecomment-39656: > Waeren dass 200 pro verzeichnis oder 200 fuer alle verzeichnisse? Pro Datei der relativer Pfad, also die Namen aller überliegenden Verzeichnisse mit "/" dazwischen.
Sign in to join this conversation.
No labels
No milestone
No project
No assignees
3 participants
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference: verdigado-public/nextcloud_groupfolder_filesystem_snapshots#1
No description provided.