I tried both, and they both returned a "not authorized". ```sql ALTER TABLE <table> DROP COLUMN <col
I tried both, and they both returned a "not authorized".
ALTER TABLE <table> DROP COLUMN <column>;
ALTER TABLE <table> DROP <column>;ALTER TABLE did work already 
e68dccd4-7bf7-4860-ba18-17978966ec10

6/12/23, 3:05 PM


success: true on UPDATE
is that on purpose?

npm i @cloudflare/d1. There are no other projects in the npm registry using @cloudflare/d1.
wrangler, so you shouldn't need to install it for it to workctx.env object. wrangler.toml for Pages, you pass bindings via the CLI
ALTER TABLEe68dccd4-7bf7-4860-ba18-17978966ec10npm i @cloudflare/d1ctx.env[[d1_databases]]
binding = "DataB"
database_name = "thing"
database_id = "dwadwadwad3213dsfasfdaeiu2"export default {
async fetch(req, env) {
// ...
const result = await env.D1.exec("SELECT * FROM db;");
// ...
}
}export const onRequestGet = ctx => {
const result = await ctx.env.D1.exec("SELECT * FROM db;");
// ...
};