We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 21fc623 commit 7b8f7b2Copy full SHA for 7b8f7b2
database/migrations/create_nps_tables.php.stub
@@ -20,7 +20,7 @@ return new class extends Migration
20
21
Schema::create('nps_answers', function (Blueprint $table) {
22
$table->foreignId('nps_id')->constrained('nps')->cascadeOnUpdate()->cascadeOnDelete();
23
- $table->foreignId('user_id')->constrained()->cascadeOnUpdate()->nullOnDelete();
+ $table->foreignId('user_id')->nullable()->constrained()->cascadeOnUpdate()->nullOnDelete();
24
$table->integer('value')->nullable();
25
$table->text('answer')->nullable();
26
$table->timestamps();
0 commit comments