(schema: string, columnName: string, tableName: string)
| 706 | |
| 707 | // columns |
| 708 | export const dropColumnQuery = (schema: string, columnName: string, tableName: string): string => |
| 709 | `ALTER TABLE "${schema}"."${modelToTableName(tableName)}" DROP COLUMN IF EXISTS ${columnName};`; |
| 710 | |
| 711 | export const createColumnQuery = (schema: string, table: string, columnName: string, attributes: string): string => |
| 712 | `ALTER TABLE ${escapedName(schema, table)} ADD COLUMN IF NOT EXISTS "${columnName}" ${attributes};`; |
no test coverage detected