Skip to content
Discussion options

You must be logged in to vote

It's a float because that's just how it's been since it was first implemented way back in 2016.
Too long ago to honestly give a reason to why, but that's just the way it was and there was no real reason to change it.
If you're using files, your traffic wouldn't have ever really lead to a multiple-submissions-per-fraction-of-a-second collision.

Then when the eloquent driver came along, I guess it just inherited the id logic.

You could override the logic yourself with a migration and a custom Submission object. Something like this:

namespace App\Statamic\Forms;

use Illuminate\Support\Str;
use Statamic\Eloquent\Forms\Submission as EloquentSubmission;

class Submission extends EloquentSubmis…

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@faltjo
Comment options

Answer selected by faltjo
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
2 participants