yral-dapp / hot-or-not-backend-canister

Other
9 stars 6 forks source link

test upgrade of slot_id in separate repo #338

Open harshita-srivastava-yral opened 4 months ago

abhishek-tripathi-yral commented 4 months ago

https://github.com/TwistingTwists/test_u8_upgrade

Update: 2024-07-12

The upgrade process is now complete and tested. Serde to rescue! Cheers!

abhishek-tripathi-yral commented 4 months ago

room ids are tied closely with slots. So, we need slot_ids to determine room_ids Slot_ids is u8. Since, slots are infinite, slot numbers will not fit in u8. Two ways to approach this : either use u32 slots or continue with u8 and let overflow happen with the slots. (this will overwrite the slot data every 10-11 days). preferable choice:

resize slot_ids from u8 to u32