4
Laravel Schema onDelete set null
Laravel'de bir tabloda uygun onDelete kısıtlamasının nasıl ayarlanacağını çözemiyorum. (SqLite ile çalışıyorum) $table->...->onDelete('cascade'); // works $table->...->onDelete('null || set null'); // neither of them work Galeri tablosunu oluştururken 3 taşımam var: Schema::create('galleries', function($table) { $table->increments('id'); $table->string('name')->unique(); $table->text('path')->unique(); $table->text('description')->nullable(); $table->timestamps(); $table->engine = 'InnoDB'; }); Resimler tablosunun oluşturulması: Schema::create('pictures', function($table) { $table->increments('id'); $table->text('path'); …