This repository has been archived by the owner on Oct 19, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 75
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* plugins; datapacks * merge fixes/changes --------- Co-authored-by: Geometrically <[email protected]>
- Loading branch information
1 parent
945935f
commit 4f3b7d6
Showing
9 changed files
with
163 additions
and
90 deletions.
There are no files selected for viewing
44 changes: 0 additions & 44 deletions
44
.sqlx/query-a796587302ae98d1af5f41696e401174fbeb9e8399bdcc78ffe8f80181b217a4.json
This file was deleted.
Oops, something went wrong.
50 changes: 50 additions & 0 deletions
50
.sqlx/query-cdb2f18f826097f0f17a1f7295d7c45eb1987b63c1a21666c6ca60c52217ba4d.json
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,46 @@ | ||
ALTER TABLE loaders ADD COLUMN metadata jsonb NOT NULL DEFAULT '{}'::jsonb; | ||
|
||
-- Set 'platform' to 'true' for all plugin loaders | ||
-- From knossos v2 | ||
-- pluginLoaders: ['bukkit', 'spigot', 'paper', 'purpur', 'sponge', 'folia'], | ||
-- pluginPlatformLoaders: ['bungeecord', 'waterfall', 'velocity'], | ||
-- allPluginLoaders: [ | ||
-- 'bukkit', | ||
-- 'spigot', | ||
-- 'paper', | ||
-- 'purpur', | ||
-- 'sponge', | ||
-- 'bungeecord', | ||
-- 'waterfall', | ||
-- 'velocity', | ||
-- 'folia', | ||
-- ], | ||
-- dataPackLoaders: ['datapack'], | ||
-- modLoaders: ['forge', 'fabric', 'quilt', 'liteloader', 'modloader', 'rift', 'neoforge'], | ||
UPDATE loaders SET metadata = jsonb_set(metadata, '{platform}', 'false'::jsonb) WHERE loader in ('bukkit', 'spigot', 'paper', 'purpur', 'sponge', 'folia'); | ||
UPDATE loaders SET metadata = jsonb_set(metadata, '{platform}', 'true'::jsonb) WHERE loader in ('bungeecord', 'waterfall', 'velocity'); | ||
|
||
INSERT INTO project_types (name) VALUES ('plugin'); | ||
INSERT INTO project_types (name) VALUES ('datapack'); | ||
|
||
INSERT INTO loaders_project_types (joining_loader_id, joining_project_type_id) | ||
SELECT l.id, pt.id | ||
FROM loaders l | ||
CROSS JOIN project_types pt | ||
WHERE l.loader in ('datapack') | ||
AND pt.name = 'datapack'; | ||
|
||
INSERT INTO loaders_project_types (joining_loader_id, joining_project_type_id) | ||
SELECT l.id, pt.id | ||
FROM loaders l | ||
CROSS JOIN project_types pt | ||
WHERE l.loader in ('bukkit', 'spigot', 'paper', 'purpur', 'sponge', 'bungeecord', 'waterfall', 'velocity', 'folia') | ||
AND pt.name = 'plugin'; | ||
|
||
INSERT INTO loaders_project_types_games (loader_id, project_type_id, game_id) | ||
SELECT joining_loader_id, joining_project_type_id, g.id | ||
FROM loaders_project_types lpt | ||
INNER JOIN project_types pt ON pt.id = lpt.joining_project_type_id | ||
CROSS JOIN games g | ||
WHERE g.name = 'minecraft' | ||
AND pt.name in ('plugin', 'datapack'); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters