Skip to main content
backdrop Documentation
Documentation and API source code for Backdrop CMS.
  • Welcome!
    • Login

Search for schema

  1. Home »
  2. API reference »
  3. 1.x
Name Type Location Description
DatabaseSchemaObjectExistsException class core/includes/database/schema.inc Exception thrown if an object being created already exists.
DatabaseSchema_mysql::addPrimaryKey function core/includes/database/mysql/schema.inc Add a primary key.
DatabaseSchema_mysql::dropUniqueKey function core/includes/database/mysql/schema.inc Drop a unique key.
DatabaseSchema_mysql::createTableSql function core/includes/database/mysql/schema.inc Generate an array of query strings suitable for creating a table.
DatabaseSchema_mysql::createFieldSql function core/includes/database/mysql/schema.inc Create a SQL string for a field to be used in table creation or alteration.
DatabaseSchema_mysql::dropPrimaryKey function core/includes/database/mysql/schema.inc Drop the primary key.
DatabaseSchema_mysql::prepareComment function core/includes/database/mysql/schema.inc Prepare a table or column comment for database query.
backdrop_get_installed_schema_version function core/includes/install.inc Returns the currently installed schema version for a module.
backdrop_set_installed_schema_version function core/includes/install.inc Update the installed version information for a module.
field_permission_example_field_schema function modules/examples/field_permission_example/field_permission_example.install Implements hook_field_schema().
DatabaseSchema_mysql::getFieldTypeMap function core/includes/database/mysql/schema.inc Returns a mapping of Backdrop schema field names to DB-native field types.
DatabaseSchema_mysql::fieldSetDefault function core/includes/database/mysql/schema.inc Set the default value for a field.
DatabaseSchema::buildTableNameCondition function core/includes/database/schema.inc Build a condition to match a table name against the information_schema.
DatabaseSchema_mysql::COMMENT_MAX_TABLE constant core/includes/database/mysql/schema.inc Maximum length of a table comment in MySQL.
DatabaseSchema_mysql::fieldSetNoDefault function core/includes/database/mysql/schema.inc Set a field to have no default value.
DatabaseSchema_mysql::COMMENT_MAX_COLUMN constant core/includes/database/mysql/schema.inc Maximum length of a column comment in MySQL.
DatabaseSchemaObjectDoesNotExistException class core/includes/database/schema.inc Exception thrown if an object being modified doesn't exist yet.
field_test_schema_alter_field_schema_alter function core/modules/field/tests/field_test_schema_alter/field_test_schema_alter.install Implements hook_field_schema_alter().
SchemaTestCase::assertFieldAdditionRemoval function core/modules/simpletest/tests/schema.test Assert that a given field can be added and removed from a table.
SchemaTestCase::assertFieldCharacteristics function core/modules/simpletest/tests/schema.test Assert that a newly added field has the correct characteristics.
EntityReferenceBehaviorHandler::schema_alter function core/modules/entityreference/plugins/behavior/EntityReferenceBehaviorHandler.inc Alter the field schema.
DatabaseSchema_mysql::buildTableNameCondition function core/includes/database/mysql/schema.inc MySQL uses databases like schemas rather than catalogs so when we build a condition to query the information_schema.tables, we set the default database as the schema unless specified otherwise, and exclude table_catalog from the condition criteria.
ViewsHandlerFilterStringTest::schemaDefinition function core/modules/views/tests/handlers/views_handler_filter_string.test The schema definition.
ViewsHandlerFilterCombineTest::schemaDefinition function core/modules/views/tests/handlers/views_handler_filter_combine.test Allow {views_test}.job to be NULL.
ViewsHandlerFieldBulkFormTest::schemaDefinition function core/modules/views/tests/handlers/views_handler_field_bulk_form.test Overrides the schema definition of the views_test table to add nid.
FieldSchemaAlterTestCase::testImageFieldSchemaAlter function core/modules/field/tests/field.test Tests a hook_field_schema_alter() implementation.
PathPatternUnitTestCase::testGetSchemaAliasMaxLength function core/modules/path/tests/path_pattern.test Test _path_get_schema_alias_maxlength().
EntityReferenceBehaviorHandlerInterface::schema_alter function core/modules/entityreference/plugins/behavior/EntityReferenceBehaviorHandler.inc Alter the field schema.
FieldSqlStorageTestCase::testUpdateFieldSchemaWithData function core/modules/field/modules/field_sql_storage/tests/field_sql_storage.test Test trying to update a field with data.

Pages

  • « first
  • ‹ previous
  • 1
  • 2
  • 3
  • 4

Directory

  • Getting started
    • Installing
    • Updates vs upgrades
    • Hosting/deploying
  • Upgrading from Drupal
    • Introduction
    • Upgrade overview
    • Converting Drupal code
  • User guide
    • Quick start guide
    • Using Backdrop
  • Add-On Documentation
  • Developing for Backdrop
    • Developing modules
    • Developing themes
    • Developing layouts
    • Using libraries
    • Local development
    • Writing secure code
    • Using JavaScript
  • Contributors guide
    • Contribute to Backdrop core
      • How to use the core issue queue
      • Adding labels to issues
      • Adding milestones to issues
    • Contribute Backdrop add-ons
    • Contribute to documentation
  • Developer API
    • Topics
    • Functions
    • Classes
    • Files
    • Globals
    • Icon API
    • Database API
    • Theme functions
    • Form API reference
  • Appendix/reference
    • Change records
    • Glossary
    • Coding & documentation standards
    • Contrib permissions policy

Stay connected

Sign up for our newsletter

Powered by Backdrop CMS

Footer Menu

  • documentation
  • localization
  • events
  • forum
  • backdropcms.org