migrating from chibisafe to lolisafe results in missing columns
See original GitHub issuehello. i’ve been testing with migrating from the current version of chibisafe/lolisafe to your fork and after following the steps, it looks like several columns are missing. here’s a few examples:
SQLITE_ERROR: table users has no column named timestamp
SQLITE_ERROR: table users has no column named token
[Error: select count(`id`) as `count` from `albums` where (`enabled` = 1 and `userid` = 1) - SQLITE_ERROR: no such column: enabled]
[Error: select `id`, `name`, `original`, `userid`, `size`, `timestamp`, `expirydate`, `albumid` from `files` where (`userid` = 1) order by `id` desc limit 25 - SQLITE_ERROR: no such column: timestamp]
[Error: select count(`id`) as `count` from `albums` where (`enabled` = 1 and `userid` = 1) - SQLITE_ERROR: no such column: enabled]
i can manually make the columns but for ease of mind it’d be good to have docs updated. perhaps the migration was written for when chibisafe was in v3 (it went v4 of march this year).
Thanks again!
Issue Analytics
- State:
- Created 2 years ago
- Comments:5 (3 by maintainers)
Top Results From Across the Web
chibisafe/chibisafe: Blazing fast file uploader and ... - GitHub
Keep in mind the migration is a best-effort script and it's recommended to start from scratch. That being said the migration does work...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
went ahead with a fresh install instead, wasn’t worth all the extra work just for random screenshots. Thanks as always @BobbyWibowo !
You can probably infer which are which from chibisafe’s own v3 to v4 database migration script: https://github.com/WeebDev/chibisafe/blob/abd7a1ca2e058854e6335b54f4119f009961a5ab/src/api/scripts/databaseMigration.js
Just be aware that my fork isn’t exactly identical to the original v3, so you will still have to look up my fork’s database migration script which adds new columns on top of the original v3: https://github.com/BobbyWibowo/lolisafe/blob/98e6c59255b4aad785282be5c1e443e2fdd5b405/database/migration.js