Skip to content

Commit

Permalink
Item14376: minor doc update
Browse files Browse the repository at this point in the history
  • Loading branch information
cdot committed Apr 17, 2017
1 parent aa97194 commit 1d7d423
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 7 deletions.
10 changes: 5 additions & 5 deletions data/System/DBIStoreContrib.txt
Expand Up @@ -147,19 +147,19 @@ Columns are defined in a Perl hash containing attributes:
* =type= (required) specifies the SQL type for the column
* =basetype= optionally specifies a column type declaration to base
this type on (local attributes override those in the base type)
* =index= if true, then an index will be created for the column
* =truncate_to= if set to a length, then the value of that field
stored in the DB will be truncated to that length. This only
affects searching. If =truncate=_to is not set, then trying to
store a value longer than the field accepts will be an error.
* =default= can be used to provide a default for the column. For
most DBs this isn't required, but it may be needed with SQL
Server.
* =default= can be used to provide a default for the column. If you
don't give a =default=, one will automatically be chosen from
the column type.
* =unique= may be set to the name of a uniqueness constraint (see
below)
* =primary= if true, the column will be the PRIMARY KEY for the
table. This automatically enforces a uniqueness constraint on the
column.
* =index= if true, then an index will be created for the column

For example,
<verbatim>
Expand Down Expand Up @@ -197,7 +197,7 @@ the =web= is different). Note that =primary= columns are automatically
unique and don't need a =unique= attribute.

---++++ =_DEFAULT=
The column type declaration =_DEFAULT= must exist and must be a text
The column type declaration =_DEFAULT= *must* exist and must be a text
type, ideally supporting arbitrary length text strings, if either of
the ={AutoloadUnknownMETA}= or ={AutoAddUnknownFields}= options are
enabled in =configure=.
Expand Down
3 changes: 1 addition & 2 deletions lib/Foswiki/Contrib/DBIStoreContrib/Config.spec
Expand Up @@ -67,9 +67,8 @@ $Foswiki::cfg{Extensions}{DBIStoreContrib}{DBIAttributes} = {};
# Specify how to construct the database. Some databases may require a
# different schema, or plugins may require an extension to the schema.
# See http://foswiki.org/Extensions/DBIStoreContrib for a detailed discussion.
# Note especially the function of the FILEATTACHMENT.text field.
$Foswiki::cfg{Extensions}{DBIStoreContrib}{Schema} = {
_DEFAULT => { type => 'TEXT', default => '' },
_DEFAULT => { type => 'TEXT' },
_INDEXED => { type => 'TEXT', index => 1 },
FIELD => {
tid => { type => 'INT' },
Expand Down

0 comments on commit 1d7d423

Please sign in to comment.