What is Nostr?
Mo :ferris: :tux: @ FOSDEM /
npub1j7f…mapy
2023-09-21 01:22:01
in reply to nevent1q…wnkc

Mo :ferris: :tux: @ FOSDEM on Nostr: bigserial has the default of auto-incrementing. So it was trying to fill the new ...

bigserial has the default of auto-incrementing. So it was trying to fill the new column with incremental values starting with 1. But there is no row with id 1 in the referrers table.

I thought that the error message is telling me that referrer_id doesn't exist in the referrers table and I went trying every other possibility to specify this constraint but the solution is to just use `bigint` instead.
Author Public Key
npub1j7fc87rk03whjh72mphc9hrm8zecfsdywdcscsesznwzcrasudvs75mapy