diff --git a/misc/my-migrations/20250619000000_artist_usage_pkey.php b/misc/my-migrations/20250619000000_artist_usage_pkey.php new file mode 100644 index 000000000..83350d55e --- /dev/null +++ b/misc/my-migrations/20250619000000_artist_usage_pkey.php @@ -0,0 +1,25 @@ +query(" + alter table artist_usage + drop primary key, + add primary key (artist_id, artist_role_id), + modify role enum ('1','2','3','4','5','6','7','8') + "); + } + + public function down(): void { + $this->query(" + alter table artist_usage + drop primary key, + add primary key (artist_id, role), + modify role enum ('1','2','3','4','5','6','7','8') NOT NULL + "); + } +}