Skip to main content
Hostdog docs
Documentation & API reference
Main menu
Drupal 7
Drupal 8
Drupal 9
You are here
Home
»
API reference
»
Drupal 7.x
»
database.inc
»
db_add_field
Search Drupal 7.x
Function, class, file, topic, etc.
*
Partial match search is supported
API Navigation
Drupal 7.x
Topics
Classes
Functions
Files
Namespaces
Constants
Globals
25 calls to db_add_field()
aggregator_update_7000
in drupal/
modules/
aggregator/
aggregator.install
Add hash column to aggregator_feed table.
aggregator_update_7002
in drupal/
modules/
aggregator/
aggregator.install
Add queued timestamp.
comment_update_7002
in drupal/
modules/
comment/
comment.install
Rename {comments} table to {comment} and upgrade it.
comment_update_7003
in drupal/
modules/
comment/
comment.install
Split {comment}.timestamp into 'created' and 'changed', improve indexing on {comment}.
comment_update_7004
in drupal/
modules/
comment/
comment.install
Upgrade the {node_comment_statistics} table.
field_sql_storage_update_7001
in drupal/
modules/
field/
modules/
field_sql_storage/
field_sql_storage.install
Remove the field_config_entity_type table and store 'entity_type' strings.
filter_update_7000
in drupal/
modules/
filter/
filter.install
Upgrade the {filter_formats} table and rename it to {filter_format}.
hook_update_N
in drupal/
modules/
system/
system.api.php
Perform a single update.
image_update_7005
in drupal/
modules/
image/
image.install
Add a column to the 'image_style' table to store administrative labels.
node_update_7000
in drupal/
modules/
node/
node.install
Upgrade the node type table and fix node type 'module' attribute to avoid name-space conflicts.
node_update_7005
in drupal/
modules/
node/
node.install
Add status/comment/promote and sticky columns to the {node_revision} table.
poll_update_7001
in drupal/
modules/
poll/
poll.install
Use the poll_choice primary key to record votes in poll_votes rather than the choice order. Rename chorder to weight.
poll_update_7002
in drupal/
modules/
poll/
poll.install
Add timestamp field to {poll_vote}.
SchemaTestCase::assertFieldAdditionRemoval
in drupal/
modules/
simpletest/
tests/
schema.test
Assert that a given field can be added and removed from a table.
SchemaTestCase::testSchema
in drupal/
modules/
simpletest/
tests/
schema.test
SchemaTestCase::testUnsignedColumns
in drupal/
modules/
simpletest/
tests/
schema.test
Tests creating unsigned columns and data integrity thereof.
system_update_7045
in drupal/
modules/
system/
system.install
Add expiration field to the {flood} table.
taxonomy_update_7002
in drupal/
modules/
taxonomy/
taxonomy.install
Add {vocabulary}.machine_name column.
taxonomy_update_7006
in drupal/
modules/
taxonomy/
taxonomy.install
Add {taxonomy_term_data}.format column.
update_fix_d7_requirements
in drupal/
includes/
update.inc
Perform Drupal 6.x to 7.x updates that are required for
update.php
to function properly.
UpgradePathTestCase::prepareD7Session
in drupal/
modules/
simpletest/
tests/
upgrade/
upgrade.test
Prepares the appropriate session for the release of Drupal being upgraded.
user_update_7006
in drupal/
modules/
user/
user.install
Add module data to {role_permission}.
user_update_7007
in drupal/
modules/
user/
user.install
Add a weight column to user roles.
user_update_7012
in drupal/
modules/
user/
user.install
Add the user's pictures to the {file_managed} table and make them managed files.
_image_update_7002_add_columns
in drupal/
modules/
image/
image.install
Add width and height columns to a specific table.