Skip to content

Commit

Permalink
- create_keyword_positions_table.php: Increases the maximum length …
Browse files Browse the repository at this point in the history
…of the `country` and `language` columns from 20 to 5 characters.

- `create_languages_table.php`: Increases the maximum length of the `code` column from 2 to 5 characters.
- `create_countries_table.php`: Increases the maximum length of the `code` column from 2 to 5 characters.
  • Loading branch information
yasinkuyu committed Jun 11, 2024
1 parent cd6cb46 commit 80a9bdc
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -18,8 +18,10 @@ public function up(): void
Schema::create('keyword_positions', function (Blueprint $table) {
$table->id();
$table->integer('position')->nullable();
$table->string('country', 20)->nullable();
$table->string('language', 20)->nullable();

$table->string('country', 5)->nullable();
$table->string('language', 5)->nullable();

$table->foreignId('service_id')->nullable();
$table->foreignId('keyword_id')->nullable()->constrained()->onDelete('cascade');
$table->foreignId('domain_id')->nullable()->constrained()->onDelete('cascade');
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ public function up()
{
Schema::create('languages', function (Blueprint $table) {
$table->id();
$table->string('code', 2)->unique();
$table->string('code', 5)->unique();
$table->string('name');
});

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ public function up()
{
Schema::create('countries', function (Blueprint $table) {
$table->id();
$table->string('code', 2)->unique();
$table->string('code', 5)->unique();
$table->string('name');
});

Expand Down

0 comments on commit 80a9bdc

Please sign in to comment.