import Since from '@components/shared/Since.astro' import RailroadDiagram from '@components/RailroadDiagram.astro' import Tabs from '@components/Tabs/Tabs.astro' import TabItem from '@components/Tabs/TabItem.astro'

ALTER BUCKET statement

The ALTER BUCKET statement can be used to modify an existing defined bucket.

Statement syntax

SurrealQL Syntax

ALTER BUCKET [ IF EXISTS ] @name
[ READONLY | DROP READONLY ]
[ BACKEND @string | DROP BACKEND ]
[ PERMISSIONS @expression ]
[ COMMENT @string | DROP COMMENT ]

Example usage

DEFINE BUCKET my_bucket BACKEND "memory";

ALTER BUCKET my_bucket COMMENT "Should we make this read-only too??";