Rename set-column-types action to et-column-type

Refs https://github.com/simonw/datasette/pull/2674#issuecomment-4085015792
This commit is contained in:
Simon Willison 2026-03-18 12:18:48 -07:00
commit 2b06da29a1
7 changed files with 18 additions and 20 deletions

View file

@ -86,9 +86,9 @@ def register_actions():
resource_class=TableResource,
),
Action(
name="set-column-types",
name="set-column-type",
abbr="sct",
description="Set column types",
description="Set column type",
resource_class=TableResource,
),
Action(

View file

@ -682,7 +682,7 @@ class TableSetColumnTypeView(BaseView):
table_name = resolved.table
if not await self.ds.allowed(
action="set-column-types",
action="set-column-type",
resource=TableResource(database=database_name, table=table_name),
actor=request.actor,
):