4
Laravel Schema onDelete set null
Não consigo descobrir como definir a restrição onDelete adequada em uma tabela no Laravel. (Estou trabalhando com SqLite) $table->...->onDelete('cascade'); // works $table->...->onDelete('null || set null'); // neither of them work Tenho 3 migrações, criando a tabela da galeria: 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'; }); …