This repository was archived by the owner on Jun 4, 2024. It is now read-only.
This repository was archived by the owner on Jun 4, 2024. It is now read-only.
List of general enhancements #122
Open
Description
- enum for PGSQL should be rename to
enum_<TABLE_NAME>_<COLUMN_NAME>
instead of currentenum_<COLUMN_NAME>
- change in Enum values (rename, add, drop values) - alter column. Enum column once created, it is not very simple to edit existing enum values, re-order it, add new enum values in between, drop in-between enum values. E.g. if ENUM(TELEVISION, CELL, LAPTOP) needed to be changed to ENUM(MOBILE, COMPUTER, TV) then it cannot be done in single SQL statement
- default value by constant and expression in CRUD, models, faker, controllers etc parts. If
x-db-default-expression
is present then ensure it is present in\yii\db\Expression(...)
in model validationrules()
- alter the column position migration generation in MySQL and MariaDB if a field position(of existing field/column) is changed in YAML. If a column position is changed in OpenAPI and nothing else then its MySQL/Maria migration should be generated to alter column position
- Enhance all code generation for
x-db-type
Enhance all code generation for x-db-type #119 . E.g.x-db-type
should be reflected in model validationrules()
+ faker and other place where relevant. PR: Resolve - Consider x-db-type in validation rules and faker and more if any SOHELAHMED7/yii2-openapi#17 - alter column data type by just x-db-default-expression change (this can be fixed if upstream issue Default expression is not loaded into ColumnSchema yiisoft/yii2#19747 is fixed)
Metadata
Metadata
Assignees
Labels
Projects
Status
📋 Backlog