Module

x/kysely_postgrs_js_dialect/mod.ts>kysely.SchemaModule#alterTable

Kysely dialect for PostgreSQL using the Postgres.js client.
Latest
method kysely.SchemaModule.prototype.alterTable
import { kysely } from "https://dotland.deno.dev/x/kysely_postgrs_js_dialect@v0.27.4/mod.ts";
const { SchemaModule } = kysely;

Alter a table.

Examples

await db.schema
  .alterTable('person')
  .alterColumn('first_name', (ac) => ac.setDataType('text'))
  .execute()

Parameters

table: string