Skip to content

Commit

Permalink
pkp#9892 DB float type precision added
Browse files Browse the repository at this point in the history
  • Loading branch information
touhidurabir committed Jul 16, 2024
1 parent 4a44144 commit d3335dc
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion classes/migration/install/ControlledVocabMigration.php
Original file line number Diff line number Diff line change
Expand Up @@ -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');
});

Expand Down
4 changes: 2 additions & 2 deletions classes/migration/install/ReviewFormsMigration.php
Original file line number Diff line number Diff line change
Expand Up @@ -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();
});
}
Expand Down Expand Up @@ -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();
Expand Down
4 changes: 2 additions & 2 deletions classes/migration/install/SubmissionsMigration.php
Original file line number Diff line number Diff line change
Expand Up @@ -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');
Expand Down Expand Up @@ -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);
Expand Down

0 comments on commit d3335dc

Please sign in to comment.