Migrating from sqlite to pgsql #261
Replies: 4 comments 1 reply
-
The actual database migration is not something Chyrp Lite can help with. Assuming you've already done the database migration and you've now got a PostgreSQL database with a copy of the SQLite data... You need to manually edit your includes/config.json.php file, replacing the values in the |
Beta Was this translation helpful? Give feedback.
-
yes, thanks I only needed to know where to configure the new db in chyrp-lite
haven't migrated yet but it's not the first time for me doing that, so there's hope I can succeed
Il 9 giugno 2024 23:38:33 CEST, Daniel Pimley ***@***.***> ha scritto:
…The actual database migration is not something Chyrp Lite can help with. Assuming you've already done the database migration and you've now got a PostgreSQL database with a copy of the SQLite data...
You need to manually edit your _includes/config.json.php_ file, replacing the values in the `"sql"` object with your new values for host, port, username, database, and prefix. Change the `"adapter"` key to `"adapter": "pgsql"`. That should be all.
--
Reply to this email directly or view it on GitHub:
#261 (comment)
You are receiving this because you authored the thread.
Message ID: ***@***.***>
|
Beta Was this translation helpful? Give feedback.
-
Good morning. using "pgloader" to do the conversion
|
Beta Was this translation helpful? Give feedback.
-
Okay but I'm not that confident in doing such operations. Everything will stay as it is currently. |
Beta Was this translation helpful? Give feedback.
-
Hello,
If I wanted to migrate db from sqlite to postgres, what should I change in chyrp-lite config to reflect this change? Assuming that's feasible.
Thanks
Beta Was this translation helpful? Give feedback.
All reactions