Indexes and foreign keys added
This commit is contained in:
parent
2cd0c1d30d
commit
96f07c7288
73 changed files with 1366 additions and 8 deletions
|
@ -3,8 +3,31 @@ Table {{$name}}
|
|||
|
||||
{{$comment}}
|
||||
|
||||
Fields
|
||||
------
|
||||
|
||||
{{foreach $fields as $field}}
|
||||
| {{$field.name}} | {{$field.comment}} | {{$field.type}} | {{$field.null}} | {{$field.primary}} | {{$field.default}} | {{$field.extra}} |
|
||||
{{/foreach}}
|
||||
|
||||
Indexes
|
||||
------------
|
||||
|
||||
| Name | Fields |
|
||||
|------|---------|
|
||||
{{foreach $indexes as $index}}
|
||||
| {{$index.name}} | {{$index.fields}} |
|
||||
{{/foreach}}
|
||||
|
||||
{{if $foreign}}
|
||||
Foreign Keys
|
||||
------------
|
||||
|
||||
| Field | Target Table | Target Field |
|
||||
|-------|--------------|--------------|
|
||||
{{foreach $foreign as $key}}
|
||||
| {{$key.field}} | [{{$key.targettable}}](help/database/db_{{$key.targettable}}) | {{$key.targetfield}} |
|
||||
{{/foreach}}
|
||||
{{/if}}
|
||||
|
||||
Return to [database documentation](help/database)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue