[DDC-747] Add support for table, column and indexes comments Created: 13/Aug/10 Updated: 14/Aug/10 |
|
| Status: | Open |
| Project: | Doctrine 2 - ORM |
| Component/s: | Mapping Drivers |
| Affects Version/s: | None |
| Fix Version/s: | None |
| Security Level: | All |
| Type: | New Feature | Priority: | Minor |
| Reporter: | s9e | Assignee: | Roman S. Borschel |
| Resolution: | Unresolved | Votes: | 4 |
| Labels: | None | ||
| Description |
|
It would be nice to add support for table comments, column comments and indexes comments, i.e. @Table(
name="ecommerce_products",
comment="Contains products",
indexes={@index(name="search_idx", comment="Makes finding people by name easier", columns={"name", "email"})}
)
@Column(type="integer", comment="Stores the user's age, in years")
MySQL supports comments via ALTER TABLE since 4.1. For databases that don't support those persistent comments, you could use normal SQL comments in the table definition. Of course they wouldn't be stored by the database, but at least they would appear in the generated schema, that's better than nothing. |