Search for key

  1. Search 7.x for key
  2. Search 9.5.x for key
  3. Search 8.9.x for key
  4. Search 11.x for key
  5. Other projects
Title Object type File name Summary
Schema::addPrimaryKey function core/modules/pgsql/src/Driver/Database/pgsql/Schema.php Add a primary key.
Schema::addPrimaryKey function core/tests/fixtures/database_drivers/module/core_fake/src/Driver/Database/CoreFakeWithAllCustomClasses/Schema.php Add a primary key.
Schema::addPrimaryKey function core/lib/Drupal/Core/Database/Schema.php Add a primary key.
Schema::addUniqueKey function core/lib/Drupal/Core/Database/Schema.php Add a unique key.
Schema::addUniqueKey function core/modules/sqlite/src/Driver/Database/sqlite/Schema.php Add a unique key.
Schema::addUniqueKey function core/modules/mysql/src/Driver/Database/mysql/Schema.php Add a unique key.
Schema::addUniqueKey function core/modules/pgsql/src/Driver/Database/pgsql/Schema.php Add a unique key.
Schema::addUniqueKey function core/tests/fixtures/database_drivers/module/core_fake/src/Driver/Database/CoreFakeWithAllCustomClasses/Schema.php Add a unique key.
Schema::createKeySql function core/modules/sqlite/src/Driver/Database/sqlite/Schema.php Build the SQL expression for keys.
Schema::createKeySql function core/modules/mysql/src/Driver/Database/mysql/Schema.php
Schema::createKeysSql function core/modules/mysql/src/Driver/Database/mysql/Schema.php
Schema::createPrimaryKeySql function core/modules/pgsql/src/Driver/Database/pgsql/Schema.php Create the SQL expression for primary and unique keys.
Schema::dropPrimaryKey function core/modules/sqlite/src/Driver/Database/sqlite/Schema.php Drop the primary key.
Schema::dropPrimaryKey function core/modules/mysql/src/Driver/Database/mysql/Schema.php Drop the primary key.
Schema::dropPrimaryKey function core/modules/pgsql/src/Driver/Database/pgsql/Schema.php Drop the primary key.
Schema::dropPrimaryKey function core/tests/fixtures/database_drivers/module/core_fake/src/Driver/Database/CoreFakeWithAllCustomClasses/Schema.php Drop the primary key.
Schema::dropPrimaryKey function core/lib/Drupal/Core/Database/Schema.php Drop the primary key.
Schema::dropUniqueKey function core/lib/Drupal/Core/Database/Schema.php Drop a unique key.
Schema::dropUniqueKey function core/modules/sqlite/src/Driver/Database/sqlite/Schema.php Drop a unique key.
Schema::dropUniqueKey function core/modules/mysql/src/Driver/Database/mysql/Schema.php Drop a unique key.
Schema::dropUniqueKey function core/modules/pgsql/src/Driver/Database/pgsql/Schema.php Drop a unique key.
Schema::dropUniqueKey function core/tests/fixtures/database_drivers/module/core_fake/src/Driver/Database/CoreFakeWithAllCustomClasses/Schema.php Drop a unique key.
Schema::ensureNotNullPrimaryKey function core/lib/Drupal/Core/Database/Schema.php Ensures that all the primary key fields are correctly defined.
Schema::findPrimaryKeyColumns function core/lib/Drupal/Core/Database/Schema.php Finds the primary key columns of a table, from the database.
Schema::findPrimaryKeyColumns function core/modules/sqlite/src/Driver/Database/sqlite/Schema.php Finds the primary key columns of a table, from the database.
Schema::findPrimaryKeyColumns function core/modules/mysql/src/Driver/Database/mysql/Schema.php Finds the primary key columns of a table, from the database.
Schema::findPrimaryKeyColumns function core/modules/pgsql/src/Driver/Database/pgsql/Schema.php Finds the primary key columns of a table, from the database.
Schema::mapKeyDefinition function core/modules/sqlite/src/Driver/Database/sqlite/Schema.php Utility method: rename columns in an index definition according to a new mapping.
Schema::_createKeys function core/modules/pgsql/src/Driver/Database/pgsql/Schema.php
Schema::_createKeySql function core/modules/pgsql/src/Driver/Database/pgsql/Schema.php
SchemaTableKeyTooLargeException class core/lib/Drupal/Core/Database/Exception/SchemaTableKeyTooLargeException.php Exception thrown if a key is too large.
SchemaTableKeyTooLargeException.php file core/lib/Drupal/Core/Database/Exception/SchemaTableKeyTooLargeException.php
SchemaTest::testGeneratedInvisiblePrimaryKey function core/modules/mysql/tests/src/Kernel/mysql/SchemaTest.php Tests adding a primary key when sql_generate_invisible_primary_key is on.
SchemaTest::testReservedKeywordsForNaming function core/modules/pgsql/tests/src/Kernel/pgsql/SchemaTest.php Tests handling with reserved keywords for naming tables, fields and more.
SchemaTest::testSchemaTableKeyTooLargeException function core/modules/mysql/tests/src/Kernel/mysql/SchemaTest.php Tests SchemaTableKeyTooLargeException.
SchemaUniquePrefixedKeysIndexTest class core/modules/sqlite/tests/src/Kernel/sqlite/SchemaUniquePrefixedKeysIndexTest.php Tests adding UNIQUE keys to tables.
SchemaUniquePrefixedKeysIndexTest class core/modules/mysql/tests/src/Kernel/mysql/SchemaUniquePrefixedKeysIndexTest.php Tests adding UNIQUE keys to tables.
SchemaUniquePrefixedKeysIndexTest class core/modules/pgsql/tests/src/Kernel/pgsql/SchemaUniquePrefixedKeysIndexTest.php Tests adding UNIQUE keys to tables.
SchemaUniquePrefixedKeysIndexTest.php file core/modules/sqlite/tests/src/Kernel/sqlite/SchemaUniquePrefixedKeysIndexTest.php
SchemaUniquePrefixedKeysIndexTest.php file core/modules/mysql/tests/src/Kernel/mysql/SchemaUniquePrefixedKeysIndexTest.php
SchemaUniquePrefixedKeysIndexTest.php file core/modules/pgsql/tests/src/Kernel/pgsql/SchemaUniquePrefixedKeysIndexTest.php
SchemaUniquePrefixedKeysIndexTest::$columnValue property core/modules/sqlite/tests/src/Kernel/sqlite/SchemaUniquePrefixedKeysIndexTest.php Set the value used to test the schema unique prefixed keys index.
SchemaUniquePrefixedKeysIndexTest::$columnValue property core/modules/mysql/tests/src/Kernel/mysql/SchemaUniquePrefixedKeysIndexTest.php Set the value used to test the schema unique prefixed keys index.
SchemaUniquePrefixedKeysIndexTest::$columnValue property core/modules/pgsql/tests/src/Kernel/pgsql/SchemaUniquePrefixedKeysIndexTest.php Set the value used to test the schema unique prefixed keys index.
SchemaUniquePrefixedKeysIndexTestBase class core/tests/Drupal/KernelTests/Core/Database/SchemaUniquePrefixedKeysIndexTestBase.php Tests adding UNIQUE keys to tables.
SchemaUniquePrefixedKeysIndexTestBase.php file core/tests/Drupal/KernelTests/Core/Database/SchemaUniquePrefixedKeysIndexTestBase.php
SchemaUniquePrefixedKeysIndexTestBase::$columnValue property core/tests/Drupal/KernelTests/Core/Database/SchemaUniquePrefixedKeysIndexTestBase.php Set the value used to test the schema unique prefixed keys index.
SchemaUniquePrefixedKeysIndexTestBase::checkUniqueConstraintException function core/tests/Drupal/KernelTests/Core/Database/SchemaUniquePrefixedKeysIndexTestBase.php Verifies that inserting the same value/prefix twice causes an exception.
SchemaUniquePrefixedKeysIndexTestBase::testAddField function core/tests/Drupal/KernelTests/Core/Database/SchemaUniquePrefixedKeysIndexTestBase.php Tests adding a new field with UNIQUE key.
SchemaUniquePrefixedKeysIndexTestBase::testAddUniqueKey function core/tests/Drupal/KernelTests/Core/Database/SchemaUniquePrefixedKeysIndexTestBase.php Tests adding a UNIQUE key to an existing table.

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.