Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
10
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Open sidebar
project
drupal
Commits
eea6b164
Commit
eea6b164
authored
May 30, 2014
by
jhodgdon
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Issue
#2273337
by ducktape: Fix docs for add field methods for Schema and db_add_field()
parent
95e63c38
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
4 additions
and
4 deletions
+4
-4
core/includes/database.inc
core/includes/database.inc
+2
-2
core/lib/Drupal/Core/Database/Schema.php
core/lib/Drupal/Core/Database/Schema.php
+2
-2
No files found.
core/includes/database.inc
View file @
eea6b164
...
...
@@ -731,7 +731,7 @@ function db_drop_table($table) {
* will be set to the value of the key in all rows. This is most useful for
* creating NOT NULL columns with no default value in existing tables.
* @param $keys_new
*
O
ptional
k
eys and indexes specification to be created on the table along
*
(o
ptional
) K
eys and indexes specification to be created on the table along
* with adding the field. The format is the same as a table specification, but
* without the 'fields' element. If you are adding a type 'serial' field, you
* MUST specify at least one key or index including it in this array. See
...
...
@@ -911,7 +911,7 @@ function db_drop_index($table, $name) {
* @param $spec
* The field specification for the new field.
* @param $keys_new
*
O
ptional
k
eys and indexes specification to be created on the table along
*
(o
ptional
) K
eys and indexes specification to be created on the table along
* with changing the field. The format is the same as a table specification
* but without the 'fields' element.
*/
...
...
core/lib/Drupal/Core/Database/Schema.php
View file @
eea6b164
...
...
@@ -437,7 +437,7 @@ public function fieldExists($table, $column) {
* This is most useful for creating NOT NULL columns with no default
* value in existing tables.
* @param $keys_new
*
O
ptional
k
eys and indexes specification to be created on the
*
(o
ptional
) K
eys and indexes specification to be created on the
* table along with adding the field. The format is the same as a
* table specification but without the 'fields' element. If you are
* adding a type 'serial' field, you MUST specify at least one key
...
...
@@ -651,7 +651,7 @@ public function fieldExists($table, $column) {
* @param $spec
* The field specification for the new field.
* @param $keys_new
*
O
ptional
k
eys and indexes specification to be created on the
*
(o
ptional
) K
eys and indexes specification to be created on the
* table along with changing the field. The format is the same as a
* table specification but without the 'fields' element.
*
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment