Transaction not working in D1 execute --file command
Original message was deleted
npx wrangler d1 execute ACCOUNT_D1_TEST --file ./schema.sqlBEGIN TRANSACTION and COMMIT commands I get:execute command?BEGIN TRANSACTION command.executed 1 command results in, but it doesn't create the tables or indexes. The executed 6 commands i.e no transaction/commit does. It would be nice to see if the first one produced an error.npx wrangler d1 execute ACCOUNT_D1_TEST --file ./schema.sqlš Mapping SQL input into an array of statements
š Parsing 8 statements
š Executing on ACCOUNT_D1_TEST (...):
š£ Executed 1 command in 0.02170097827911377msBEGIN TRANSACTIONBEGIN TRANSACTIONCOMMITš Mapping SQL input into an array of statements
š Parsing 6 statements
š Executing on ACCOUNT_D1_TEST (...):
š£ Executed 6 commands in 31.02824902534485msexecuteexecuted 1 commandexecuted 6 commandsBEGIN TRANSACTION;
DROP TABLE IF EXISTS ...;
CREATE TABLE IF NOT EXISTS ...;
DROP TABLE IF EXISTS ...;
CREATE TABLE IF NOT EXISTS ...;
CREATE INDEX IF NOT EXISTS ...;
CREATE UNIQUE INDEX IF NOT EXISTS ...;
COMMIT;