My initial installation of Strapi v4.3.2 with a “quickstart” option on localhost, so the database is default to SQLite. I was asked to switch to Postgres database to be consistent with our company policy. What is the easiest to switch over from the existing SQLite database to a new Postgres database. I don’t care if I lose my data since we do not have too much of content right now.
I am curious what table in the database (PostgreSQL) does Strapi saves its content to? I can see all of my components tables, but not clear where the content is saved in which table.
Yes. I even query the tables for all components. I only saw keys, and I even joined the tables to get a complete list. I don’t know where the actual content of each collection type is saved to which tables.
…But it’s not working as expected. Maybe the DB is not the same for SQLite and Postgresql. I ended up using npm run strapi export (on my SQLite setup) then npm run strapi import (on my Postgresql setup); see documentation here.