winter icon indicating copy to clipboard operation
winter copied to clipboard

Base File model sort order error when not using numerical ids

Open Denoder opened this issue 4 years ago • 2 comments

Winter CMS Build

dev-develop

PHP Version

8.0

Database engine

MySQL/MariaDB

Plugins installed

No response

Issue description

Whn extending the base file class Winter\Storm\Database\Attach\File with ids other than numerical (eg uuids) the sort order trait located in Winter\Storm\Database\Attach\File will not work with the id because it isnt numerical.

this is the error i end up encountering:

Text: PDOException: SQLSTATE[01000]: Warning: 1265 Data truncated for column 'sort_order' at row 1 in /home/ubuntu/manga/vendor/laravel/framework/src/Illuminate/Database/Connection.php:488

Steps to replicate

  1. Create a new class extending Winter\Storm\Database\Attach\File
  2. make the id uuids or non-numerical.
  3. try to create attachments

Workaround

No response

Denoder avatar Jan 22 '22 01:01 Denoder

This issue will be closed and archived in 3 days, as there has been no activity in the last 60 days. If this issue is still relevant or you would like to see it actioned, please respond and we will re-open this issue. If this issue is critical to your business, consider joining the Premium Support Program where a Service Level Agreement is offered.

github-actions[bot] avatar Mar 24 '22 00:03 github-actions[bot]

This issue will be closed and archived in 3 days, as there has been no activity in the last 60 days. If this issue is still relevant or you would like to see it actioned, please respond and we will re-open this issue. If this issue is critical to your business, consider joining the Premium Support Program where a Service Level Agreement is offered.

github-actions[bot] avatar May 24 '22 00:05 github-actions[bot]

This issue will be closed and archived in 3 days, as there has been no activity in this issue for the last 6 months. If this issue is still relevant or you would like to see it actioned, please respond within 3 days. If this issue is critical for your business, please reach out to us at [email protected].

github-actions[bot] avatar Nov 23 '22 00:11 github-actions[bot]

This issue will be closed and archived in 3 days, as there has been no activity in this issue for the last 6 months. If this issue is still relevant or you would like to see it actioned, please respond within 3 days. If this issue is critical for your business, please reach out to us at [email protected].

github-actions[bot] avatar May 25 '23 00:05 github-actions[bot]

This issue will be closed and archived in 3 days, as there has been no activity in this issue for the last 6 months. If this issue is still relevant or you would like to see it actioned, please respond within 3 days. If this issue is critical for your business, please reach out to us at [email protected].

github-actions[bot] avatar Nov 27 '23 00:11 github-actions[bot]