change avatar/icon lengths in users/guilds
All checks were successful
ci/woodpecker/push/build-and-publish Pipeline was successful
ci/woodpecker/push/publish-docs Pipeline was successful

This commit is contained in:
Radical 2025-07-02 21:26:03 +02:00
parent e59f7b5a1f
commit b6df1e38ad
3 changed files with 8 additions and 2 deletions

View file

@ -0,0 +1,3 @@
-- This file should undo anything in `up.sql`
ALTER TABLE users ALTER COLUMN avatar TYPE varchar(100);
ALTER TABLE guilds ALTER COLUMN icon TYPE varchar(100);

View file

@ -0,0 +1,3 @@
-- Your SQL goes here
ALTER TABLE users ALTER COLUMN avatar TYPE varchar(8000);
ALTER TABLE guilds ALTER COLUMN icon TYPE varchar(8000);

View file

@ -49,7 +49,7 @@ diesel::table! {
name -> Varchar,
#[max_length = 300]
description -> Nullable<Varchar>,
#[max_length = 100]
#[max_length = 8000]
icon -> Nullable<Varchar>,
}
}
@ -124,7 +124,7 @@ diesel::table! {
email_verified -> Bool,
is_deleted -> Bool,
deleted_at -> Nullable<Int8>,
#[max_length = 100]
#[max_length = 8000]
avatar -> Nullable<Varchar>,
#[max_length = 32]
pronouns -> Nullable<Varchar>,