--- title: Data migrate tags: artify --- # Data migrate ## 目標 - 將所有資料流水號的 _id 都改成 Object_id 的型態 ## Data relation - collection product 紀錄 - nft_id (如果有的話) - entityArtwork_id - collection NFTs 紀錄 - product_id - collection entity_artworks - product_id ## artify 資料庫記錄 FiO 資料 - fio_id ## FiO 資料庫記錄 artify 資料 - artify 的 username - resume_hash (FiO) === token (artify) ## 接 FiO v2 api ? - 答案是不用 , api 裡面都是接 v1 api - 如果要接 FiO v2 api 就也要重寫一個 v2 api ## 預計作法 - 將 product 全部資料再上到資料庫一遍, 拿到 product_id 在把 nft 和 entity_artworks 裡面的 product_id 換成相對應新的 prodecut_id, 新增 prodect 裡的 nft_id 和 entityArtwork_id
×
Sign in
Email
Password
Forgot password
or
By clicking below, you agree to our
terms of service
.
Sign in via Facebook
Sign in via Twitter
Sign in via GitHub
Sign in via Dropbox
Sign in with Wallet
Wallet (
)
Connect another wallet
New to HackMD?
Sign up