Skip to content

Commit

Permalink
Merge pull request #14 from vermaysha/fix/bugs
Browse files Browse the repository at this point in the history
Fix/bugs
  • Loading branch information
vermaysha authored Mar 4, 2023
2 parents 38d2826 + 555acdd commit 8139440
Show file tree
Hide file tree
Showing 6 changed files with 91,253 additions and 91,253 deletions.
4 changes: 2 additions & 2 deletions database/migrations/create_cities_table.php.stub
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,8 @@ return new class extends Migration
{
Schema::create($this->tableName(), function (Blueprint $table) {
$table->id();
$table->char('code', 2)->unique();
$table->char('province_code');
$table->char('code', 4)->unique();
$table->char('province_code', 2);
$table->string('name');
$table->timestamps();

Expand Down
4 changes: 2 additions & 2 deletions database/migrations/create_districts_table.php.stub
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,8 @@ return new class extends Migration
{
Schema::create($this->tableName(), function (Blueprint $table) {
$table->id();
$table->char('code', 2)->unique();
$table->char('city_code');
$table->char('code', 6)->unique();
$table->char('city_code', 4);
$table->string('name');
$table->timestamps();

Expand Down
4 changes: 2 additions & 2 deletions database/migrations/create_village_table.php.stub
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,8 @@ return new class extends Migration
{
Schema::create($this->tableName(), function (Blueprint $table) {
$table->id();
$table->char('code', 2)->unique();
$table->char('district_code');
$table->char('code', 10)->unique();
$table->char('district_code', 6);
$table->string('name');
$table->timestamps();

Expand Down
Loading

0 comments on commit 8139440

Please sign in to comment.