Skip to content

add set type support #155

Description

@Lucifer20211202

FYI
I'm using mysql,the here is my DDL

CREATE TABLE `game` (
  `id` bigint unsigned NOT NULL AUTO_INCREMENT,
  `os` set('Android','iOS','Windows','Mac') CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL COMMENT 'os',
  PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4;

but when I run ./vendor/bin/phalcon-migrations generate,it generate like this

...
new Column(
                    'os',
                    [
                        'type' => Column::TYPE_VARCHAR,
                        'notNull' => true,
                        'size' => 1,
                        'comment' => "os",
                        'after' => 'version'
                    ]
                ),

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

Status
Backlog

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions