3.2 - Adding Tickets to Concerts

This commit is contained in:
Adam Wathan
2016-11-13 19:18:52 -05:00
parent ce22ff1ec6
commit 53a69777ea
3 changed files with 42 additions and 3 deletions

View File

@@ -15,7 +15,8 @@ class CreateTicketsTable extends Migration
{
Schema::create('tickets', function (Blueprint $table) {
$table->increments('id');
$table->unsignedInteger('order_id');
$table->unsignedInteger('concert_id');
$table->unsignedInteger('order_id')->nullable();
$table->timestamps();
});
}