Looking for fresh eyes on this, I'm running the command in sqlite3 interactive and can't see the problem. Here's the code:
CREATE TABLE Personas(
PersonID INTEGER NOT NULL PRIMARY KEY,
FirstNameAtBirth TEXT,
LastNameAtBirth TEXT,
MidNameAtBirth TEXT,
discordID TEXT,
githubID TEXT
);
^ Executes successfully,
CREATE TABLE Conversations(
ConvoID INTEGER NOT NULL PRIMARY KEY,
FOREIGN KEY(PersonID) REFERENCES Personas(PersonID),
BodyText TEXT,
Timestamp DATETIME DEFAULT CURRENT_TIMESTAMP,
Reactions TEXT
);
^ fails with Error: in prepare, unknown column "PersonID" in foreign key definition (1)
I'm in an active database, I've set PRAGMA foreign_keys=ON;
prior to any transactions, any idea where the problem is??