in my laravel app I have a Post "body" field of text type, I'm trying to give the field a default value like "This sis the default text for a blog post, feel free to change it" but mysql is throwing an error.
$table->text('body')->default('This is the default text for a blog post, feel free to change it.');
This isn't working...
According to docs BLOB/TEXT fields CAN'T have default values, this is pretty weird tbh.
https://dev.mysql.com/doc/refman/5.7/en/blob.html
I guess I could change the field type from text to string but afaik string won't have as many characters as string type and I knpw for certain that my Blog posts will be loooong. How could I approach this?
Thanks in advance.