Transformative operations
They are the operations that change the data in the database.
-
RenameColumn(tableName schema.TableName, oldColumnName, newColumnName string)
-
RenameTable(tableName schema.TableName, newTableName string)
-
ChangeColumnType(tableName schema.TableName, columnName string, columnType schema.ColumnType, opts ...schema.ChangeColumnTypeOptions)
-
ChangeColumnDefault(tableName schema.TableName, columnName string, defaultValue string, opts ...schema.ChangeColumnDefaultOptions)
-
RenameEnum(oldName, newName string, opts ...schema.RenameEnumOptions)
-
RenameEnumValue(name, oldName, newName string, opts ...schema.RenameEnumValueOptions)