Skip to content

SQLSTATE[01000]: Warning: 1265 Data truncated for column 'indexable_id' #16

Answered by rhonstratos
rhonstratos asked this question in Q&A
Discussion options

You must be logged in to vote

welp, i found the answer.
i removed the $table->id(); in my schema, i thought that would be unnecessary for my setup
i changed the schema and now it works

Schema::create('rectify_users', function (Blueprint $table) {
            $table->id();
            $table->string('user_id',255)->unique();
            $table->string('name',255);
            $table->string('email',255)->unique();
            $table->timestamp('email_verified_at')->nullable();
            $table->string('password',255);
            $table->rememberToken();
            $table->timestamps();
        });

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by rhonstratos
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
1 participant