db
db copied to clipboard
New concept of columns for version 2.0
Main changes:
- [x] 1. Realize
TypeColumnclasses (IntegerColumn,StringColumn, etc) #752 - [x] 2. Realize
ColumnFactory - [x] 3. Realize
ColumnBuilderIt also fixes yiisoft/db-mysql#249 - [ ] 4. ~Add
ColumnSchema::getDefinitionType()method to get full name of db type, e.g.varchar(20)~ #695 - [x] 5. Realize
ColumnDefinitionBuilder#599 - [ ] 6. ~Remove
pkabstract type constantsColumnSchemaInterface::...pkuseColumnBuilder::...pk()instead~ yiisoft/db-migration#6 - [ ] 7. Replace
ColumnSchema::name()with immutableColumnSchema::withName() - [ ] 8. Remove
ColumnSchema::precision()(useColumnSchema::size()instead) - [ ] 9. ~Rename
ColumnSchema::enumValues()toColumnSchema::values()~ This allows use it for https://github.com/yiisoft/db-mysql/issues/330 - [x] 10. Rename
ColumnSchema::allowNull()toColumnSchema::notNull()to be compatible with oldColumn::notNull() - [x] 11. Add
isUnique(),check()andreference()to ColumnSchema to be compatible with oldColumnclass - [ ] 12. Rename
AbstractColumnSchematoColumn(combineColumnandColumnSchemaclasses)
The changes will solve few issues and after related improvements it will solve few more issues. It will allow customize typecasting for table column.
There is a draft #808