Apply fixes from StyleCI (#824)

This commit is contained in:
Phan An 2018-10-06 12:45:01 +02:00 committed by GitHub
parent e4da901ce5
commit 9a42d98918
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 6 additions and 7 deletions

View file

@ -17,7 +17,6 @@ class CreateVariousArtists extends Migration
Schema::table('albums', function (Blueprint $table) {
if (DB::getDriverName() !== 'sqlite') {
$table->dropForeign('albums_artist_id_foreign');
}
$table->foreign('artist_id')->references('id')->on('artists')->onUpdate('cascade')->onDelete('cascade');
});

View file

@ -12,13 +12,13 @@ class CascadeDeleteUser extends Migration
*/
public function up()
{
Schema::table('playlists', function (Blueprint $table) {
if (DB::getDriverName() !== 'sqlite') {
$table->dropForeign('playlists_user_id_foreign');
}
Schema::table('playlists', function (Blueprint $table) {
if (DB::getDriverName() !== 'sqlite') {
$table->dropForeign('playlists_user_id_foreign');
}
$table->foreign('user_id')->references('id')->on('users')->onUpdate('cascade')->onDelete('cascade');
});
$table->foreign('user_id')->references('id')->on('users')->onUpdate('cascade')->onDelete('cascade');
});
}
/**