(ctx context.Context, table *schema.Table)
| 167 | } |
| 168 | |
| 169 | func (c *Client) recreateTable(ctx context.Context, table *schema.Table) error { |
| 170 | sql := "drop table if exists " + sanitizeID(table.Name) |
| 171 | if err := c.exec(ctx, sql); err != nil { |
| 172 | return err |
| 173 | } |
| 174 | return c.createTableIfNotExist(ctx, table.Name, table, false) |
| 175 | } |
| 176 | |
| 177 | func (c *Client) addColumn(ctx context.Context, tableName string, columnName string, columnType string) error { |
| 178 | sql := "alter table " + sanitizeID(tableName) + " add column " + sanitizeID(columnName) + " " + columnType |
no test coverage detected