Hi there! Are you looking for the official Deno documentation? Try docs.deno.com for all your Deno learning needs.

SetTablePrimaryKey

import type { SetTablePrimaryKey } from "https://googleapis.deno.dev/v1/datamigration:v1.ts";

Options to configure rule type SetTablePrimaryKey. The rule is used to specify the columns and name to configure/alter the primary key of a table. The rule filter field can refer to one entity. The rule scope can be one of: Table.

interface SetTablePrimaryKey {
primaryKey?: string;
primaryKeyColumns?: string[];
}

§Properties

§
primaryKey?: string
[src]

Optional. Name for the primary key

§
primaryKeyColumns?: string[]
[src]

Required. List of column names for the primary key