Skip to content

Commit

Permalink
change datatype so unpadded datatypes are used in db (#173)
Browse files Browse the repository at this point in the history
Background: postgres pads those columns with spaces, which are not removed when queries, leading to broken redirects.
Mysql also pads this datatype, but removes the spaces by default when queried.
  • Loading branch information
faltjo authored May 4, 2024
1 parent cee19b0 commit f96b22e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions database/migrations/create_redirect_redirects_table.php.stub
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,8 @@ class CreateRedirectRedirectsTable extends Migration
$table->uuid('id')->unique()->index();
$table->string('source')->index();
$table->string('destination');
$table->char('match_type', 10);
$table->char('type', 10);
$table->string('match_type', 10);
$table->string('type', 10);
$table->string('site')->index();
$table->integer('order')->nullable();
$table->boolean('enabled');
Expand Down

0 comments on commit f96b22e

Please sign in to comment.