Closed smell-of-curry closed 3 months ago
Hi, I answered to an issue similar to this one recently, can you see if it helps?
Thank you @heyjorgedev however in that post, no solution was sent?
Like I mentioned on the other issue, this message is weird since we are creating a table (so no data exists) and mysql is complaining about a default value on a non-nullable column, but since we are not inserting data it doesn't make any sense.
@Rijoanul-Shanto did you end up understanding what the problem was on your issue?
Can't reproduce. Happy to have a new look with clear steps to reproduce.
I have the same problem on the fresh install on Laravel. Solved by customizing built-in migraiton:
php artisan vendor:publish --tag="lemon-squeezy-migrations"
and modified the ordered_at definition in lemon_squeezy_orders table
$table->timestamp('ordered_at')->nullable()->default(DB::raw('CURRENT_TIMESTAMP'));
also can't understand why this happens on table creation, but needed some solution to start working live
Like I mentioned on the other issue, this message is weird since we are creating a table (so no data exists) and mysql is complaining about a default value on a non-nullable column, but since we are not inserting data it doesn't make any sense.
@Rijoanul-Shanto did you end up understanding what the problem was on your issue?
I didn't have a chance to look into the issue later, but I'll definitely look into it and try to reproduce.
Lemon Squeezy for Laravel Version
1.5.4
Laravel Version
10.48.7
PHP Version
8.1
Description
After installing lmsqueezy, I run the migrations and I get an error when creating the orders table
So I commented out the line for
ordered_at
and it fixed it. But I feel like this might break things.Steps To Reproduce
Install a fresh install, and run migrations.