-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Alter telegram_userid type from i64 to String (#12)
* alter database schema and prettify message Database originally stored telegram_userid as an i64 even though the return type was u64. Converted to varchar(20) to be able to store correctly. * Update Cargo.toml versions
- Loading branch information
1 parent
e4a229c
commit 0ebf2bd
Showing
9 changed files
with
26 additions
and
21 deletions.
There are no files selected for viewing
2 changes: 1 addition & 1 deletion
2
.sqlx/query-361cba2a4dfed276a1a1a5285d98faf9c4bc74f27309f7f4bd590fab0f2cf9c0.json
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
4 changes: 2 additions & 2 deletions
4
.sqlx/query-5a3d0c9d6fc2abb00f55f0815326ab31fcabe74adf4eb3d6d20af3ca7d6e54dd.json
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
2 changes: 1 addition & 1 deletion
2
.sqlx/query-6f89962823361c56de89197f98752f621258fc4360146302b812ad0385374ffa.json
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
2 changes: 1 addition & 1 deletion
2
.sqlx/query-fec91934b8594955965fadaf4c1bc0874e9e209b2dde1ef6515224561e477ede.json
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
-- Add migration script here | ||
ALTER TABLE users ALTER COLUMN telegram_userid TYPE varchar(20) USING telegram_userid::varchar(20); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters