This is something they (CF) are working on, programmatically creating/binding. Needed for the other
This is something they (CF) are working on, programmatically creating/binding. Needed for the other services also


is the only answer we can provide atm/accounts/{account-identifier}/d1/database)WNAM region but I'd prefer Europe DB.prepare('select * from blog').all() But the stored frontmatter is returning json as string instead of automatically parsing it out as json. [[d1_databases]]
binding = "DB"
database_name = "mydb"
database_id = "main-id"
preview_database_id = "preview-id"/*
SQLite does not support "Changing existing column type" out of the box, we do not generate automatic migration for that, so it has to be done manually
Please refer to: https://www.techonthenet.com/sqlite/tables/alter_table.php
https://www.sqlite.org/lang_altertable.html
https://stackoverflow.com/questions/2083543/modify-a-columns-type-in-sqlite3
Due to that we don't generate migration automatically and it has to be done manually
*/CREATE TABLE blog (
id TEXT PRIMARY KEY,
created_at DATETIME DEFAULT CURRENT_TIMESTAMP,
content_url TEXT,
frontmatter JSON,
slug TEXT UNIQUE,
title TEXT,
website_ref_id TEXT,
FOREIGN KEY (website_ref_id) REFERENCES website(id)
);