You've already forked AstralRinth
forked from didirus/AstralRinth
Implement more database methods and basic API routes (#50)
* feat: Implement more database methods & add mod and version routes * feat: Implement deleting mods/versions & implement categories * feat: Implement routes for categories, game versions & loaders * feat: Reorganize API routes in a (hopefully) usable way
This commit is contained in:
6
migrations/20200730223151_more-not-null.sql
Normal file
6
migrations/20200730223151_more-not-null.sql
Normal file
@@ -0,0 +1,6 @@
|
||||
-- Add migration script here
|
||||
ALTER TABLE versions
|
||||
ALTER COLUMN mod_id SET NOT NULL;
|
||||
|
||||
ALTER TABLE release_channels
|
||||
ALTER COLUMN channel SET NOT NULL;
|
||||
5
migrations/20200812183213_unique-loaders.sql
Normal file
5
migrations/20200812183213_unique-loaders.sql
Normal file
@@ -0,0 +1,5 @@
|
||||
ALTER TABLE game_versions
|
||||
ADD UNIQUE(version);
|
||||
|
||||
ALTER TABLE loaders
|
||||
ADD UNIQUE(loader);
|
||||
Reference in New Issue
Block a user