C
C
chincharovpc2021-08-10 18:39:20
PostgreSQL
chincharovpc, 2021-08-10 18:39:20

Line size error?

Returns an error for postgresql

value too long for type character varying(191)

although I specified a different size defaultStringLength also does not work How can I solve the problem?
$table->string('value', 300)

Answer the question

In order to leave comments, you need to log in

2 answer(s)
C
chincharovpc, 2021-08-10
@chincharovpc

It turns out that in another migration I already created such a column and nothing happened when adding a new column.

L
LaraLover, 2021-08-10
@LaraLover

string 255

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question