home / github / issue_comments

Menu
  • Search all tables
  • GraphQL API

issue_comments: 1685096129

This data as json

html_url issue_url id node_id user created_at updated_at author_association body reactions issue performed_via_github_app
https://github.com/simonw/sqlite-utils/issues/587#issuecomment-1685096129 https://api.github.com/repos/simonw/sqlite-utils/issues/587 1685096129 IC_kwDOCGYnMM5kcIbB 9599 2023-08-19T20:03:00Z 2023-08-19T20:03:00Z OWNER

Simplest possible recreation of the bug: bash python -c ' import sqlite_utils db = sqlite_utils.Database(memory=True) db.execute(""" CREATE TABLE "logs" ( [id] INTEGER PRIMARY KEY, [chat_id] INTEGER REFERENCES [log]([id]), [reply_to_id] INTEGER ); """) db["logs"].add_foreign_key("reply_to_id", "logs", "id") ' That chat_id line is the line that causes the problem - because it is defining a reference to a table that no longer exists!

{
    "total_count": 0,
    "+1": 0,
    "-1": 0,
    "laugh": 0,
    "hooray": 0,
    "confused": 0,
    "heart": 0,
    "rocket": 0,
    "eyes": 0
}
1857851384  
Powered by Datasette · Queries took 0.83ms · About: github-to-sqlite