Opened 14 years ago
Closed 13 years ago
#4232 closed enhancement (fixed)
Doctrineのスキーマ定義にテーブル・カラムのコメントを記述する
Reported by: | fukamachi | Owned by: | fukamachi |
---|---|---|---|
Priority: | minor | Milestone: | OpenPNE3.1.2 |
Component: | core | Version: | 3.1.x |
Keywords: | Cc: |
Description
■ 概要
Doctrineのスキーマ定義(config/data/doctrine/schema.yml)にDBのテーブルやカラムのコメントを追記する。
■ 仕様
YAMLのスキーマ定義でのコメントの記述方法は以下のようになる。
カラムのコメント
Member: columns: id: { type: integer(4), primary: true, autoincrement: true, comment: "Serial number" }
テーブルのコメント
Member: columns: ... options: comment: "Saves informations of members"
■ 関連情報
Change History (2)
comment:1 Changed 14 years ago by
Keywords: | 確認中 added |
---|---|
Status: | new → assigned |
comment:2 Changed 13 years ago by
Keywords: | 確認中 removed |
---|---|
Resolution: | → fixed |
Status: | assigned → closed |
Version: | → 3.1.x |
とりあえず OK とします。英語の間違いなどは適宜直していきましょう。
Note: See
TracTickets for help on using
tickets.
r12541でschema.ymlにコメントを追記しました。