Skip to main content
Module

x/cotton/mod.ts>Schema#renameColumn

SQL Database Toolkit for Deno
Latest
method Schema.prototype.renameColumn
import { Schema } from "https://deno.land/x/cotton@v0.7.5/mod.ts";

Rename a column

Parameters

tableName: string

the table name where the column exists

columnName: string

the column you want to rename

newColumnName: string

the new column name