Skip to content

Commit c2dde73

Browse files
authored
Fix database license type (#2393)
1 parent 93b221c commit c2dde73

File tree

1 file changed

+23
-0
lines changed

1 file changed

+23
-0
lines changed
Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
<?php
2+
3+
use Illuminate\Database\Migrations\Migration;
4+
use Illuminate\Support\Facades\DB;
5+
6+
return new class() extends Migration {
7+
/**
8+
* Run the migrations.
9+
*/
10+
public function up(): void
11+
{
12+
DB::table('albums')->where('license', '=', 'CC-BY')->update(['license' => 'CC-BY-4.0']);
13+
DB::table('albums')->where('license', '=', 'CC-BY-ND')->update(['license' => 'CC-BY-ND-4.0']);
14+
DB::table('albums')->where('license', '=', 'CC-BY-NC-ND')->update(['license' => 'CC-BY-NC-ND-4.0']);
15+
}
16+
17+
/**
18+
* Reverse the migrations.
19+
*/
20+
public function down(): void
21+
{
22+
}
23+
};

0 commit comments

Comments
 (0)