Update polls migration, add group support

This commit is contained in:
Daniel Supernault 2021-08-10 22:25:42 -06:00
parent 7709220074
commit bc53ac2af8
No known key found for this signature in database
GPG key ID: 0DEF1C662C9033F7

View file

@ -17,6 +17,7 @@ class CreatePollsTable extends Migration
$table->bigInteger('id')->unsigned()->primary(); $table->bigInteger('id')->unsigned()->primary();
$table->bigInteger('story_id')->unsigned()->nullable()->index(); $table->bigInteger('story_id')->unsigned()->nullable()->index();
$table->bigInteger('status_id')->unsigned()->nullable()->index(); $table->bigInteger('status_id')->unsigned()->nullable()->index();
$table->bigInteger('group_id')->unsigned()->nullable()->index();
$table->bigInteger('profile_id')->unsigned()->index(); $table->bigInteger('profile_id')->unsigned()->index();
$table->json('poll_options')->nullable(); $table->json('poll_options')->nullable();
$table->json('cached_tallies')->nullable(); $table->json('cached_tallies')->nullable();