1.3 - Getting to Green

This commit is contained in:
Adam Wathan
2016-11-01 17:53:51 -04:00
parent e257fdd512
commit b49dcfabe3
7 changed files with 83 additions and 3 deletions

View File

@@ -0,0 +1,41 @@
<?php
use Illuminate\Support\Facades\Schema;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Database\Migrations\Migration;
class CreateConcertsTable extends Migration
{
/**
* Run the migrations.
*
* @return void
*/
public function up()
{
Schema::create('concerts', function (Blueprint $table) {
$table->increments('id');
$table->string('title');
$table->string('subtitle');
$table->datetime('date');
$table->integer('ticket_price');
$table->string('venue');
$table->string('venue_address');
$table->string('city');
$table->string('state');
$table->string('zip');
$table->text('additional_information');
$table->timestamps();
});
}
/**
* Reverse the migrations.
*
* @return void
*/
public function down()
{
Schema::dropIfExists('concerts');
}
}