A more pressing question is why you would use the text format when saving only integers?
A more pressing question is why you would use the text format when saving only integers?
The request is malformed: failed to decode idhttps://api.cloudflare.com/client/v4/accounts/account_id/d1/database/db_id/query
{
"params": [],
"sql": "DROP TABLE IF EXISTS comments; CREATE TABLE IF NOT EXISTS comments ( id integer PRIMARY KEY AUTOINCREMENT, author text NOT NULL, body text NOT NULL, post_slug text NOT NULL ); CREATE INDEX idx_comments_post_slug ON comments (post_slug);"
}CREATE TABLE IF NOT EXISTS comments ( id integer PRIMARY KEY, author text NOT NULL, body text NOT NULL, post_slug text NOT NULL ); CREATE INDEX idx_comments_post_slug ON comments (post_slug)