Skip to content

Commit

Permalink
Set the default for tickets_sold to 0
Browse files Browse the repository at this point in the history
Mentioned in issue #1004, I added '0' as the default for tickets_sold
  • Loading branch information
jochemp264 authored Aug 15, 2022
1 parent cfcd998 commit f44783e
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ public function up()
$table->increments('id');
$table->string('name', 125);
$table->integer('visits');
$table->integer('tickets_sold');
$table->integer('tickets_sold')->default(0);
$table->decimal('sales_volume', 10, 2)->default(0);
$table->timestamp('last_visit');
$table->unsignedInteger('account_id')->index();
Expand Down

0 comments on commit f44783e

Please sign in to comment.