mirror of
https://github.com/koel/koel
synced 2024-11-10 06:34:14 +00:00
Apply fixes from StyleCI (#824)
This commit is contained in:
parent
e4da901ce5
commit
9a42d98918
2 changed files with 6 additions and 7 deletions
|
@ -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');
|
||||
});
|
||||
|
|
|
@ -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');
|
||||
});
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
Loading…
Reference in a new issue