-- phpMyAdmin SQL Dump
-- version 5.2.3
-- https://www.phpmyadmin.net/
--
-- Host: chordian.net.mysql.service.one.com:3306
-- Generation Time: Mar 28, 2026 at 08:42 AM
-- Server version: 10.6.23-MariaDB-ubu2204
-- PHP Version: 8.1.2-1ubuntu2.23

SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO";
START TRANSACTION;
SET time_zone = "+00:00";


/*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */;
/*!40101 SET @OLD_CHARACTER_SET_RESULTS=@@CHARACTER_SET_RESULTS */;
/*!40101 SET @OLD_COLLATION_CONNECTION=@@COLLATION_CONNECTION */;
/*!40101 SET NAMES utf8mb4 */;

--
-- Database: `chordian_net_deepsid`
--

-- --------------------------------------------------------

--
-- Table structure for table `admin_scripts`
--

CREATE TABLE `admin_scripts` (
  `id` mediumint(8) UNSIGNED NOT NULL,
  `section` varchar(32) NOT NULL,
  `name` varchar(128) NOT NULL,
  `description` text DEFAULT NULL,
  `script` varchar(128) DEFAULT NULL
) ENGINE=MyISAM DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

--
-- Dumping data for table `admin_scripts`
--

INSERT INTO `admin_scripts` (`id`, `section`, `name`, `description`, `script`) VALUES
(1, 'General', 'Check missing database info', 'Detect missing rows in the <code>hvsc_files</code> table and check for missing or invalid fields. No database changes are made.', 'check_missing_info.php'),
(2, 'General', 'Test running a script', 'Display a few paragraphs of \"Lorem Ipsum\" text. Used for testing this page.', 'test_script.php'),
(3, 'General', 'Count all files', 'Walks all collections and counts files. Each count is stored in <code>files</code> in the <code>hvsc_folders</code> row.', 'update_counts_all.php'),
(4, 'Update HVSC', 'Update groups', 'Update all the file counts in the <code>GROUPS</code> member folders. Each count is stored in <code>files</code> in the <code>hvsc_folders</code> row.', 'update_groups.php'),
(5, 'Update HVSC', 'Update activity', 'Find the latest year each composer was active and store it in the <code>active</code> column in the <code>composers</code> table.', 'update_activity.php'),
(6, 'Update CGSC', 'Update database', 'Update the <code>hvsc_files</code> table according to the original update batch file. It parses the move lines for <code>.mus</code> files from an adapted text file.', 'update_cgsc_db.php'),
(7, 'Update HVSC', 'Update database', 'Update the database according to the original <code>.hvs</code> update script. Affects both the <code>hvsc_files</code> and <code>hvsc_folders</code> tables.', 'update_hvsc_db.php'),
(8, 'Update HVSC', 'Update song lengths', 'Take all the time lengths in <code>hvsc_files</code> and split them up into subtune parts, then save them in the <code>hvsc_lengths</code> table.', 'update_songlengths.php'),
(9, 'Update HVSC', 'Update special patching', 'Read SQL query lines from <code>utility/special_updating.sql</code> and update the database accordingly.', 'update_special.php'),
(10, 'Update HVSC', 'Update tags', 'Add a specific tag to all files according to evidence that reveals when it should have it. See the list of tags in the PHP file.', 'update_tags.php'),
(11, 'Update HVSC', 'Update total count<code>DEPRECATED</code>', 'Find all composers in MUSICIANS that have sub folders, add file counts up, then update <code>files</code> in <code>hvsc_folders</code>.', 'update_total_count.php'),
(12, 'General', 'Import symlist (full HVSC path)', 'This version works on a CSV file with full HVSC paths to the SID files. Updates <code>symlists</code> and <code>files</code> in <code>hvsc_folders</code>.', 'import_symlist_hvsc.php'),
(14, 'General', 'Test DB: GameBase64', 'Test that we can read from the separate GameBase64 database.', 'test_gb64.php'),
(13, 'General', 'Import symlist (SIDinfo)', 'This version works on a CSV file generated with SIDinfo. Updates <code>symlists</code> and <code>files</code> in <code>hvsc_folders</code>.', 'import_symlist_sidinfo.php'),
(15, 'General', 'Test API: Remix64', 'Test that we can read from the Remix64 API.', 'test_remix.php'),
(16, 'General', 'Create CSDb links', 'Generate CSDb links for every composer with a page on CSDb. Updates the <code>composers_links</code> table.', 'transfer_csdb_links.php'),
(17, 'General', 'Transfer ratings', 'Transfer all ratings from one user ID to another. You must set this up in the PHP file itself. Updates the <code>ratings</code> table.', 'transfer_ratings.php'),
(19, 'General', 'Test web service: CSDb', 'Test that we can read from the CSDb web service.', 'test_csdb.php');

--
-- Indexes for dumped tables
--

--
-- Indexes for table `admin_scripts`
--
ALTER TABLE `admin_scripts`
  ADD PRIMARY KEY (`id`);

--
-- AUTO_INCREMENT for dumped tables
--

--
-- AUTO_INCREMENT for table `admin_scripts`
--
ALTER TABLE `admin_scripts`
  MODIFY `id` mediumint(8) UNSIGNED NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=20;
COMMIT;

/*!40101 SET CHARACTER_SET_CLIENT=@OLD_CHARACTER_SET_CLIENT */;
/*!40101 SET CHARACTER_SET_RESULTS=@OLD_CHARACTER_SET_RESULTS */;
/*!40101 SET COLLATION_CONNECTION=@OLD_COLLATION_CONNECTION */;
