question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

migrating from chibisafe to lolisafe results in missing columns

See original GitHub issue

hello. 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:closed
  • Created 2 years ago
  • Comments:5 (3 by maintainers)

github_iconTop GitHub Comments

1reaction
jamiew0wcommented, Sep 2, 2021

went ahead with a fresh install instead, wasn’t worth all the extra work just for random screenshots. Thanks as always @BobbyWibowo !

1reaction
BobbyWibowocommented, Aug 26, 2021

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

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found