mirror of
https://github.com/ParadiseSS13/Paradise.git
synced 2026-07-18 18:44:48 +01:00
Complete Library Overhaul Part 1 (#17832)
* first edits * more commits yay * more changes * Update paradise.dme * changes * more edits * more edits * changes * more changes * changes * more stuff stuff Update tgui.bundle.js * FUCK * Many UI changes * Update Lib Computer UI and Correct Map Issues * squashed commits :) Guts Old Book/Manual Code and Reworks it final (almost) touches * this should pass tests now * fixes random ruin having a removed object * adds review suggestions Co-authored-by: Luc <89928798+lewcc@users.noreply.github.com> * squashed commits :) update schema adds python requested changes implements proper python & sql scripts applies some requested changes + minor fixes bump SQL version to 40 Co-Authored-By: AffectedArc07 <25063394+AffectedArc07@users.noreply.github.com> * Apply suggestions from code review Co-authored-by: AffectedArc07 <25063394+AffectedArc07@users.noreply.github.com> * applies requested changes from code review * lets pass some tests today more fixes * Apply suggestions from code review Co-authored-by: Farie82 <farie82@users.noreply.github.com> * more requested changes fulfilled * should fix map issues + a couple other things * fixes & sanitization stuff * Apply suggestions from code review Co-authored-by: SteelSlayer <42044220+SteelSlayer@users.noreply.github.com> * updates UI and implements more requested changes * mother of bug fixes & UI cleanup * removes unused code * Apply suggestions from code review Co-authored-by: Farie82 <farie82@users.noreply.github.com> * fixes * adds GC checks * Apply suggestions from code review Co-authored-by: Farie82 <farie82@users.noreply.github.com> * requested changes + TGUI Cleanup and Styling Co-authored-by: Luc <89928798+lewcc@users.noreply.github.com> Co-authored-by: AffectedArc07 <25063394+AffectedArc07@users.noreply.github.com> Co-authored-by: Farie82 <farie82@users.noreply.github.com> Co-authored-by: SteelSlayer <42044220+SteelSlayer@users.noreply.github.com>
This commit is contained in:
@@ -0,0 +1,26 @@
|
||||
# Updates DB from 37 to 38 -Sirryan2002
|
||||
# Creates new tables in preparation for library table conversion
|
||||
|
||||
#Renames old table
|
||||
ALTER TABLE library RENAME TO library_old;
|
||||
|
||||
# Create new table to track library books
|
||||
CREATE TABLE `library` (
|
||||
`id` INT(11) NOT NULL AUTO_INCREMENT,
|
||||
`author` MEDIUMTEXT NOT NULL COLLATE 'utf8mb4_unicode_ci',
|
||||
`title` MEDIUMTEXT NOT NULL COLLATE 'utf8mb4_unicode_ci',
|
||||
`content` MEDIUMTEXT NOT NULL COLLATE 'utf8mb4_unicode_ci',
|
||||
`ckey` VARCHAR(32) NULL DEFAULT '' COLLATE 'utf8mb4_unicode_ci',
|
||||
`reports` MEDIUMTEXT NOT NULL COLLATE 'utf8mb3_general_ci',
|
||||
`summary` MEDIUMTEXT NOT NULL COLLATE 'utf8mb3_general_ci',
|
||||
`rating` DOUBLE NULL DEFAULT '0',
|
||||
`raters` MEDIUMTEXT NOT NULL COLLATE 'utf8mb3_general_ci',
|
||||
`primary_category` INT(11) NULL DEFAULT '0',
|
||||
`secondary_category` INT(11) NOT NULL DEFAULT '0',
|
||||
`tertiary_category` INT(11) NULL DEFAULT '0',
|
||||
PRIMARY KEY (`id`) USING BTREE,
|
||||
INDEX `ckey` (`ckey`) USING BTREE,
|
||||
INDEX `flagged` (`reports`(1024)) USING BTREE
|
||||
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;
|
||||
|
||||
# YOU MUST NOW RUN 38-39.py
|
||||
Reference in New Issue
Block a user