From e329fb5d474b5a05e0ee44d6cfab5f47f0ca5b0b Mon Sep 17 00:00:00 2001 From: Vladimir Barinov Date: Sun, 12 Nov 2023 00:34:40 +0300 Subject: [PATCH] Update and rename gamma-00000-disco.sql to 00041-music.sql --- install/sqls/{gamma-00000-disco.sql => 00041-music.sql} | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) rename install/sqls/{gamma-00000-disco.sql => 00041-music.sql} (98%) diff --git a/install/sqls/gamma-00000-disco.sql b/install/sqls/00041-music.sql similarity index 98% rename from install/sqls/gamma-00000-disco.sql rename to install/sqls/00041-music.sql index f219a59a..6a5c9784 100644 --- a/install/sqls/gamma-00000-disco.sql +++ b/install/sqls/00041-music.sql @@ -1,3 +1,7 @@ +-- Remote line 2 on 3 if it causes errors +DROP TABLE `audios`; +DROP TABLE `audio_relations`; + CREATE TABLE IF NOT EXISTS `audios` ( `id` bigint unsigned NOT NULL AUTO_INCREMENT, `owner` bigint unsigned NOT NULL, @@ -93,4 +97,4 @@ CREATE TABLE IF NOT EXISTS `playlist_relations` ( ALTER TABLE `groups` ADD `everyone_can_upload_audios` TINYINT(1) NOT NULL DEFAULT '0' AFTER `backdrop_2`; ALTER TABLE `profiles` ADD `last_played_track` BIGINT(20) UNSIGNED NULL DEFAULT NULL AFTER `client_name`, ADD `audio_broadcast_enabled` TINYINT(1) UNSIGNED NOT NULL DEFAULT '0' AFTER `last_played_track`; -ALTER TABLE `groups` ADD `last_played_track` BIGINT(20) UNSIGNED NULL DEFAULT NULL AFTER `everyone_can_upload_audios`, ADD `audio_broadcast_enabled` TINYINT(1) UNSIGNED NOT NULL DEFAULT '0' AFTER `last_played_track`; \ No newline at end of file +ALTER TABLE `groups` ADD `last_played_track` BIGINT(20) UNSIGNED NULL DEFAULT NULL AFTER `everyone_can_upload_audios`, ADD `audio_broadcast_enabled` TINYINT(1) UNSIGNED NOT NULL DEFAULT '0' AFTER `last_played_track`;