diff options
Diffstat (limited to 'database/migrations/2020_06_18_155355_create_teams_table.php')
-rw-r--r-- | database/migrations/2020_06_18_155355_create_teams_table.php | 34 |
1 files changed, 34 insertions, 0 deletions
diff --git a/database/migrations/2020_06_18_155355_create_teams_table.php b/database/migrations/2020_06_18_155355_create_teams_table.php new file mode 100644 index 0000000..3e0d58f --- /dev/null +++ b/database/migrations/2020_06_18_155355_create_teams_table.php @@ -0,0 +1,34 @@ +<?php + +use Illuminate\Database\Migrations\Migration; +use Illuminate\Database\Schema\Blueprint; +use Illuminate\Support\Facades\Schema; + +class CreateTeamsTable extends Migration +{ + /** + * Run the migrations. + * + * @return void + */ + public function up() + { + Schema::create( + 'teams', function (Blueprint $table) { + $table->id(); + $table->string('name'); + $table->timestamps(); + } + ); + } + + /** + * Reverse the migrations. + * + * @return void + */ + public function down() + { + Schema::dropIfExists('teams'); + } +} |