-
Notifications
You must be signed in to change notification settings - Fork 916
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
pkp/pkp-lib#9892 upgrade to laravel 11 and PHP 8.2+ #4367
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks, I've suggested a few changes!
@@ -318,14 +324,14 @@ public function up(): void | |||
$table->foreign('journal_id', 'subscription_types_journal_id')->references('journal_id')->on('journals')->onDelete('cascade'); | |||
$table->index(['journal_id'], 'subscription_types_journal_id'); | |||
|
|||
$table->float('cost', 8, 2); | |||
$table->float('cost', 53); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The cost
column should definitely be converted over to a decimal
now that we're losing the precision and scale.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Right . In that case, we should have a migration also, added .
@@ -415,7 +421,7 @@ public function up(): void | |||
$table->index(['user_id'], 'completed_payments_user_id'); | |||
|
|||
$table->bigInteger('assoc_id')->nullable(); | |||
$table->float('amount', 8, 2); | |||
$table->float('amount', 53); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
21a2f92
to
35c840c
Compare
62c0439
to
ed304fa
Compare
pkp/pkp-lib#9892