@@ -1179,6 +1179,16 @@ CREATE TABLE `personal_freeleeches` (
1179
1179
CONSTRAINT ` personal_freeleech_user_id_foreign` FOREIGN KEY (` user_id` ) REFERENCES ` users` (` id` ) ON UPDATE CASCADE
1180
1180
) ENGINE= InnoDB DEFAULT CHARSET= utf8mb4 COLLATE= utf8mb4_unicode_ci;
1181
1181
/* !40101 SET character_set_client = @saved_cs_client */ ;
1182
+ DROP TABLE IF EXISTS ` playlist_categories` ;
1183
+ /* !40101 SET @saved_cs_client = @@character_set_client */ ;
1184
+ /* !50503 SET character_set_client = utf8mb4 */ ;
1185
+ CREATE TABLE `playlist_categories ` (
1186
+ ` id` int unsigned NOT NULL AUTO_INCREMENT,
1187
+ ` position` smallint NOT NULL ,
1188
+ ` name` varchar (255 ) COLLATE utf8mb4_unicode_ci NOT NULL ,
1189
+ PRIMARY KEY (` id` )
1190
+ ) ENGINE= InnoDB DEFAULT CHARSET= utf8mb4 COLLATE= utf8mb4_unicode_ci;
1191
+ /* !40101 SET character_set_client = @saved_cs_client */ ;
1182
1192
DROP TABLE IF EXISTS ` playlist_torrents` ;
1183
1193
/* !40101 SET @saved_cs_client = @@character_set_client */ ;
1184
1194
/* !50503 SET character_set_client = utf8mb4 */ ;
@@ -1203,6 +1213,7 @@ DROP TABLE IF EXISTS `playlists`;
1203
1213
/* !50503 SET character_set_client = utf8mb4 */ ;
1204
1214
CREATE TABLE `playlists ` (
1205
1215
` id` bigint unsigned NOT NULL AUTO_INCREMENT,
1216
+ ` playlist_category_id` int unsigned NOT NULL ,
1206
1217
` user_id` int unsigned NOT NULL ,
1207
1218
` name` varchar (255 ) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL ,
1208
1219
` description` text CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL ,
@@ -1218,6 +1229,8 @@ CREATE TABLE `playlists` (
1218
1229
KEY ` playlists_is_pinned_index` (` is_pinned` ),
1219
1230
KEY ` playlists_is_featured_index` (` is_featured` ),
1220
1231
KEY ` playlists_user_id_foreign` (` user_id` ),
1232
+ KEY ` playlists_playlist_category_id_foreign` (` playlist_category_id` ),
1233
+ CONSTRAINT ` playlists_playlist_category_id_foreign` FOREIGN KEY (` playlist_category_id` ) REFERENCES ` playlist_categories` (` id` ) ON UPDATE CASCADE,
1221
1234
CONSTRAINT ` playlists_user_id_foreign` FOREIGN KEY (` user_id` ) REFERENCES ` users` (` id` ) ON UPDATE CASCADE
1222
1235
) ENGINE= InnoDB DEFAULT CHARSET= utf8mb4 COLLATE= utf8mb4_unicode_ci;
1223
1236
/* !40101 SET character_set_client = @saved_cs_client */ ;
@@ -2973,3 +2986,4 @@ INSERT INTO `migrations` (`id`, `migration`, `batch`) VALUES (340,'2025_03_16_18
2973
2986
INSERT INTO ` migrations` (` id` , ` migration` , ` batch` ) VALUES (341 ,' 2025_03_17_122748_add_tmdb_prefix_to_metadata_tables' ,3 );
2974
2987
INSERT INTO ` migrations` (` id` , ` migration` , ` batch` ) VALUES (342 ,' 2025_03_23_203227_add_automatically_unbookmark_torrents_user_setting' ,4 );
2975
2988
INSERT INTO ` migrations` (` id` , ` migration` , ` batch` ) VALUES (343 ,' 2025_03_25_093436_update_metadata_id_default_to_null' ,5 );
2989
+ INSERT INTO ` migrations` (` id` , ` migration` , ` batch` ) VALUES (344 ,' 2025_03_29_215845_create_playlist_categories' ,6 );
0 commit comments