You've already forked AstralRinth
forked from didirus/AstralRinth
Move descriptions to database, switch to SHA-512 hashes, fix declining invites not working, allow user deletion, fix broken permission checks for many things, security fixes
This commit is contained in:
15
migrations/20210113202021_add-descriptions.sql
Normal file
15
migrations/20210113202021_add-descriptions.sql
Normal file
@@ -0,0 +1,15 @@
|
||||
ALTER TABLE mods
|
||||
ADD COLUMN body varchar(65536) NOT NULL DEFAULT '';
|
||||
ALTER TABLE mods
|
||||
ALTER COLUMN body_url DROP NOT NULL;
|
||||
ALTER TABLE versions
|
||||
ADD COLUMN changelog varchar(65536) NOT NULL DEFAULT '';
|
||||
|
||||
INSERT INTO users (
|
||||
id, github_id, username, name, email,
|
||||
avatar_url, bio, created
|
||||
)
|
||||
VALUES (
|
||||
127155982985829, 10137, 'Ghost', NULL, NULL,
|
||||
'https://avatars2.githubusercontent.com/u/10137', 'A deleted user', NOW()
|
||||
);
|
||||
Reference in New Issue
Block a user