Skip to content

Commit

Permalink
Fix database license type (#2393)
Browse files Browse the repository at this point in the history
  • Loading branch information
ildyria authored Apr 19, 2024
1 parent 93b221c commit c2dde73
Showing 1 changed file with 23 additions and 0 deletions.
23 changes: 23 additions & 0 deletions database/migrations/2024_04_19_141432_fix_license.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
<?php

use Illuminate\Database\Migrations\Migration;
use Illuminate\Support\Facades\DB;

return new class() extends Migration {
/**
* Run the migrations.
*/
public function up(): void
{
DB::table('albums')->where('license', '=', 'CC-BY')->update(['license' => 'CC-BY-4.0']);
DB::table('albums')->where('license', '=', 'CC-BY-ND')->update(['license' => 'CC-BY-ND-4.0']);
DB::table('albums')->where('license', '=', 'CC-BY-NC-ND')->update(['license' => 'CC-BY-NC-ND-4.0']);
}

/**
* Reverse the migrations.
*/
public function down(): void
{
}
};

0 comments on commit c2dde73

Please sign in to comment.