feat: added online_status column to users table
All checks were successful
ci/woodpecker/push/build-and-publish Pipeline was successful
All checks were successful
ci/woodpecker/push/build-and-publish Pipeline was successful
This commit is contained in:
parent
3816af56e3
commit
314b9ee011
3 changed files with 5 additions and 0 deletions
2
migrations/2025-08-04-180235_add_status_to_user/down.sql
Normal file
2
migrations/2025-08-04-180235_add_status_to_user/down.sql
Normal file
|
@ -0,0 +1,2 @@
|
|||
-- This file should undo anything in `up.sql`
|
||||
ALTER TABLE users DROP COLUMN online_status;
|
2
migrations/2025-08-04-180235_add_status_to_user/up.sql
Normal file
2
migrations/2025-08-04-180235_add_status_to_user/up.sql
Normal file
|
@ -0,0 +1,2 @@
|
|||
-- Your SQL goes here
|
||||
ALTER TABLE users ADD COLUMN online_status INT2 NOT NULL DEFAULT 0;
|
|
@ -157,6 +157,7 @@ diesel::table! {
|
|||
pronouns -> Nullable<Varchar>,
|
||||
#[max_length = 200]
|
||||
about -> Nullable<Varchar>,
|
||||
online_status -> Int2,
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue