このリポジトリは2023-09-09にアーカイブされています。 ファイルの閲覧とクローンは可能ですが、プッシュ、イシューの作成、プルリクエストはできません。
076server/database/migrations/2021_10_15_230320_create_ja...

37 行
900 B
PHP

<?php
use Illuminate\Database\Migrations\Migration;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Support\Facades\Schema;
class CreateJapanCityWardsTable extends Migration
{
/**
* Run the migrations.
*
* @return void
*/
public function up()
{
Schema::create('japan_city_wards', function (Blueprint $table) {
$table->id();
$table->unsignedBigInteger('city_id');
$table->foreign('city_id')->references('id')->on('japan_cities');
$table->string('name', 255)->nullable();
$table->string('nameKana', 255)->nullable();
$table->string('nameEng', 255)->nullable();
$table->timestamps();
});
}
/**
* Reverse the migrations.
*
* @return void
*/
public function down()
{
Schema::dropIfExists('japan_city_wards');
}
}