make default avatar use the avatars table

This commit is contained in:
2025-05-22 02:30:59 +03:00
parent 16127983ab
commit 9438d3704b
8 changed files with 47 additions and 7 deletions

View File

@ -52,4 +52,10 @@ return {
[6] = function ()
schema.drop_column("post_history", "user_id")
end,
[7] = function ()
db.query('DROP INDEX "idx_users_avatar"')
schema.drop_column("users", "avatar_id")
schema.add_column("users", "avatar_id", "REFERENCES avatars(id) DEFAULT 1")
end
}