From da6ae4a0ed0b1821a680171d3e54ea15e609ab3c Mon Sep 17 00:00:00 2001 From: Touhidur Rahman Date: Tue, 16 Jul 2024 17:40:02 +0600 Subject: [PATCH] pkp/pkp-lib#9892 DB float type precision added --- classes/migration/install/ControlledVocabMigration.php | 2 +- classes/migration/install/ReviewFormsMigration.php | 4 ++-- classes/migration/install/SubmissionsMigration.php | 4 ++-- 3 files changed, 5 insertions(+), 5 deletions(-) diff --git a/classes/migration/install/ControlledVocabMigration.php b/classes/migration/install/ControlledVocabMigration.php index a5fe646f618..1f7d8255690 100644 --- a/classes/migration/install/ControlledVocabMigration.php +++ b/classes/migration/install/ControlledVocabMigration.php @@ -43,7 +43,7 @@ public function up(): void $table->foreign('controlled_vocab_id')->references('controlled_vocab_id')->on('controlled_vocabs')->onDelete('cascade'); $table->index(['controlled_vocab_id'], 'controlled_vocab_entries_controlled_vocab_id'); - $table->float('seq', 8, 2)->nullable(); + $table->float('seq', 53)->nullable(); $table->index(['controlled_vocab_id', 'seq'], 'controlled_vocab_entries_cv_id'); }); diff --git a/classes/migration/install/ReviewFormsMigration.php b/classes/migration/install/ReviewFormsMigration.php index 90ab8fcbac3..e81345be87a 100644 --- a/classes/migration/install/ReviewFormsMigration.php +++ b/classes/migration/install/ReviewFormsMigration.php @@ -31,7 +31,7 @@ public function up(): void $table->bigInteger('review_form_id')->autoIncrement(); $table->bigInteger('assoc_type'); $table->bigInteger('assoc_id'); - $table->float('seq', 8, 2)->nullable(); + $table->float('seq', 53)->nullable(); $table->smallInteger('is_active')->nullable(); }); } @@ -64,7 +64,7 @@ public function up(): void $table->foreign('review_form_id', 'review_form_elements_review_form_id')->references('review_form_id')->on('review_forms')->onDelete('cascade'); $table->index(['review_form_id'], 'review_form_elements_review_form_id'); - $table->float('seq', 8, 2)->nullable(); + $table->float('seq', 53)->nullable(); $table->bigInteger('element_type')->nullable(); $table->smallInteger('required')->nullable(); $table->smallInteger('included')->nullable(); diff --git a/classes/migration/install/SubmissionsMigration.php b/classes/migration/install/SubmissionsMigration.php index ce70e50ae9b..6c67312cc1c 100644 --- a/classes/migration/install/SubmissionsMigration.php +++ b/classes/migration/install/SubmissionsMigration.php @@ -105,7 +105,7 @@ public function up(): void // The foreign key relationship on this table is defined with the publications table. $table->bigInteger('publication_id'); - $table->float('seq', 8, 2)->default(0); + $table->float('seq', 53)->default(0); $table->bigInteger('user_group_id')->nullable(); $table->foreign('user_group_id')->references('user_group_id')->on('user_groups')->onDelete('cascade'); @@ -205,7 +205,7 @@ public function up(): void $table->bigInteger('assoc_type'); $table->bigInteger('assoc_id'); $table->smallInteger('stage_id'); - $table->float('seq', 8, 2)->default(0); + $table->float('seq', 53)->default(0); $table->datetime('date_posted')->nullable(); $table->datetime('date_modified')->nullable(); $table->smallInteger('closed')->default(0);