mirror of
https://github.com/simonw/datasette.git
synced 2026-06-15 05:26:59 +02:00
Rename set-column-types action to et-column-type
Refs https://github.com/simonw/datasette/pull/2674#issuecomment-4085015792
This commit is contained in:
parent
d440c20984
commit
2b06da29a1
7 changed files with 18 additions and 20 deletions
|
|
@ -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(
|
||||
|
|
|
|||
|
|
@ -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,
|
||||
):
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue