You've already forked AstralRinth
forked from didirus/AstralRinth
Testing bug fixes (#788)
* fixes * adds tests- fixes failures * changes * moved transaction commits/caches around * collections nullable * merge fixes * sqlx prepare * revs * lf fixes * made changes back * added collections update --------- Co-authored-by: Geometrically <18202329+Geometrically@users.noreply.github.com>
This commit is contained in:
16
migrations/20231205095400_remaining_loader_field_loaders.sql
Normal file
16
migrations/20231205095400_remaining_loader_field_loaders.sql
Normal file
@@ -0,0 +1,16 @@
|
||||
-- Adds loader_fields_loaders entries for all loaders
|
||||
-- (at this point, they are all Minecraft loaders, and thus have the same fields)
|
||||
-- These are loaders such as bukkit, minecraft, vanilla, waterfall, velocity... etc
|
||||
-- This also allows v2 routes (which have things such as client_side to remain to work with these loaders)
|
||||
INSERT INTO loader_fields_loaders
|
||||
SELECT l.id, lf.id FROM loaders l CROSS JOIN loader_fields lf
|
||||
WHERE lf.field=ANY(ARRAY['game_versions','client_and_server','server_only','client_only','singleplayer'])
|
||||
AND
|
||||
l.loader NOT IN ('vanilla', 'minecraft', 'optifine', 'iris', 'canvas')
|
||||
ON CONFLICT DO NOTHING;
|
||||
|
||||
-- All existing loader_project_types so far should have a games entry as minecraft
|
||||
INSERT INTO loaders_project_types_games
|
||||
SELECT lpt.joining_loader_id, lpt.joining_project_type_id, g.id FROM loaders_project_types lpt CROSS JOIN games g
|
||||
WHERE g.name='minecraft-java'
|
||||
ON CONFLICT DO NOTHING;
|
||||
@@ -0,0 +1 @@
|
||||
ALTER TABLE collections ALTER COLUMN description DROP NOT NULL;
|
||||
Reference in New Issue
Block a user