Skip to content

Commit dc77132

Browse files
committed
automation: update schema dump
1 parent 6d3ea3c commit dc77132

File tree

1 file changed

+14
-0
lines changed

1 file changed

+14
-0
lines changed

database/schema/mysql-schema.sql

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1179,6 +1179,16 @@ CREATE TABLE `personal_freeleeches` (
11791179
CONSTRAINT `personal_freeleech_user_id_foreign` FOREIGN KEY (`user_id`) REFERENCES `users` (`id`) ON UPDATE CASCADE
11801180
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;
11811181
/*!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 */;
11821192
DROP TABLE IF EXISTS `playlist_torrents`;
11831193
/*!40101 SET @saved_cs_client = @@character_set_client */;
11841194
/*!50503 SET character_set_client = utf8mb4 */;
@@ -1203,6 +1213,7 @@ DROP TABLE IF EXISTS `playlists`;
12031213
/*!50503 SET character_set_client = utf8mb4 */;
12041214
CREATE TABLE `playlists` (
12051215
`id` bigint unsigned NOT NULL AUTO_INCREMENT,
1216+
`playlist_category_id` int unsigned NOT NULL,
12061217
`user_id` int unsigned NOT NULL,
12071218
`name` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL,
12081219
`description` text CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL,
@@ -1218,6 +1229,8 @@ CREATE TABLE `playlists` (
12181229
KEY `playlists_is_pinned_index` (`is_pinned`),
12191230
KEY `playlists_is_featured_index` (`is_featured`),
12201231
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,
12211234
CONSTRAINT `playlists_user_id_foreign` FOREIGN KEY (`user_id`) REFERENCES `users` (`id`) ON UPDATE CASCADE
12221235
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;
12231236
/*!40101 SET character_set_client = @saved_cs_client */;
@@ -2973,3 +2986,4 @@ INSERT INTO `migrations` (`id`, `migration`, `batch`) VALUES (340,'2025_03_16_18
29732986
INSERT INTO `migrations` (`id`, `migration`, `batch`) VALUES (341,'2025_03_17_122748_add_tmdb_prefix_to_metadata_tables',3);
29742987
INSERT INTO `migrations` (`id`, `migration`, `batch`) VALUES (342,'2025_03_23_203227_add_automatically_unbookmark_torrents_user_setting',4);
29752988
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

Comments
 (0)