Skip to content
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

Merged
merged 12 commits into from
Aug 12, 2024

Conversation

touhidurabir
Copy link
Member

Copy link
Member

@asmecher asmecher left a 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);
Copy link
Member

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.

Copy link
Member Author

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);
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@touhidurabir touhidurabir force-pushed the i9892_main branch 3 times, most recently from 21a2f92 to 35c840c Compare August 5, 2024 14:00
@asmecher asmecher merged commit 799cc73 into pkp:main Aug 12, 2024
8 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants