Skip to content

Setting dbType to enum is not totally correct #45

Closed
@SOHELAHMED7

Description

@SOHELAHMED7

Resolve below TODO:

File: src/lib/migrations/MysqlMigrationBuilder.php

L33

protected function buildColumnChanges(ColumnSchema $current, ColumnSchema $desired, array $changed):void
    {
        $newColumn = clone $current;
        foreach ($changed as $attr) {
            $newColumn->$attr = $desired->$attr;
        }
        if (static::isEnum($newColumn)) {
            $newColumn->dbType = 'enum'; // TODO this is concretely not correct
        }

Part of #10

and

Part of cebe#180

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions