Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
D
Developer Documentation
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package registry
Container registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
brienne
Developer Documentation
Commits
b8a6e285
Unverified
Commit
b8a6e285
authored
7 years ago
by
Seamus Lee
Committed by
GitHub
7 years ago
Browse files
Options
Downloads
Plain Diff
Merge pull request #504 from eileenmcnaughton/patch-3
Add serialize to schema
parents
6c6d0ae7
e663911a
Branches
Branches containing commit
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
docs/framework/database/schema-definition.md
+3
-0
3 additions, 0 deletions
docs/framework/database/schema-definition.md
with
3 additions
and
0 deletions
docs/framework/database/schema-definition.md
+
3
−
0
View file @
b8a6e285
...
...
@@ -104,11 +104,14 @@ Tags acceptable within `<table>` / `<field>`
|
`<collate>`
| text |
`utf8_bin`
| 0 or 1 | Only needs to be set if you want something other than
`utf8_unicode_ci`
|
|
`<html>`
|
[
tags
](
#table-field-html
)
| | 0 or 1 | Settings for the form element to use for this field |
|
`<pseudoconstant>`
|
[
tags
](
#table-field-pseudoconstant
)
| | 0 or 1 | See
[
notes below
](
#table-field-pseudoconstant
)
|
|
`<serialize>`
| text| | 0 or 1 | Method to serialize array data. For new fields use JSON |
`<type>`
should be one of the following values which correspond to
[
MySQL data types
](
https://dev.mysql.com/doc/refman/en/data-types.html
)
*
`blob`
,
`boolean`
,
`char`
,
`datetime`
,
`date`
,
`decimal`
,
`float`
,
`int`
,
`int unsigned`
,
`longtext`
,
`mediumblob`
,
`text`
,
`timestamp`
,
`varchar`
`<serialize>`
can be one of the following values
`PHP`
,
`JSON`
,
`SEPARATOR_BOOKEND`
,
`SEPARATOR_TRIMMED`
,
`COMMA`
. The Accepted values can be found in
`CRM_Core_DAO`
Class
## `<table>` / `<field>` / `<html>` {:#table-field-html}
Tags acceptable within
`<table>`
/
`<field>`
/
`<html>`
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment