Skip to content

Commit

Permalink
migrate earnings table id to bigint
Browse files Browse the repository at this point in the history
  • Loading branch information
Kriptikz committed Dec 3, 2024
1 parent de4416e commit d0186d2
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
ALTER TABLE earnings MODIFY COLUMN id BIGINT NOT NULL AUTO_INCREMENT
1 change: 1 addition & 0 deletions migrations/2024-12-03-162732_earnings_id_to_bigint/up.sql
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
ALTER TABLE earnings MODIFY COLUMN id BIGINT NOT NULL AUTO_INCREMENT
2 changes: 1 addition & 1 deletion src/schema.rs
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ diesel::table! {

diesel::table! {
earnings (id) {
id -> Integer,
id -> Bigint,
miner_id -> Integer,
pool_id -> Integer,
challenge_id -> Integer,
Expand Down

0 comments on commit d0186d2

Please sign in to comment.