#Question: Is users_sessions table created or renamed from another table?

5 messages · Page 1 of 1 (latest)

spiral lynx
#

Can somebody help me understand this?
This log happens when I enter /admin for the first time.
I installed Payload on my existing Next.js project that uses Supabase.
The log listed 3 tables from my Supabase public schema (yokohama, profiles, and tokyo).
What am I supposed to do in this process?

 ○ Compiling /admin/[[...segments]] ...
 ✓ Compiled /admin/[[...segments]] in 5.7s (4418 modules)
[✓] Pulling schema from database...

Is users_sessions table created or renamed from another table?
❯ + users_sessions                  create table
  ~ yokohama_table › users_sessions rename table
  ~ profiles › users_sessions       rename table
  ~ tokyo_table › users_sessions    rename table
copper peakBOT
#
spiral lynx
#

Note that I have been through this road before and I ended up wiping all my existing tables in Supabase.

What to do so that the existing tables stay the same?

spiral lynx
#

I ended up exited out from that and went back to payload.config.tf to specify schemaName according to this docs:
https://payloadcms.com/docs/database/postgres#options

It seems to be a good choice to separate payload to a different schema. I'll go with this for now 🙂

tough wave