protected function TransactionTest::executeDDLStatement in Zircon Profile 8
Same name and namespace in other branches
- 8.0 core/modules/system/src/Tests/Database/TransactionTest.php \Drupal\system\Tests\Database\TransactionTest::executeDDLStatement()
 
Executes a DDL statement.
1 call to TransactionTest::executeDDLStatement()
- TransactionTest::testTransactionWithDdlStatement in core/
modules/ system/ src/ Tests/ Database/ TransactionTest.php  - Tests the compatibility of transactions with DDL statements.
 
File
- core/
modules/ system/ src/ Tests/ Database/ TransactionTest.php, line 328  - Contains \Drupal\system\Tests\Database\TransactionTest.
 
Class
- TransactionTest
 - Tests the transaction abstraction system.
 
Namespace
Drupal\system\Tests\DatabaseCode
protected function executeDDLStatement() {
  static $count = 0;
  $table = array(
    'fields' => array(
      'id' => array(
        'type' => 'serial',
        'unsigned' => TRUE,
        'not null' => TRUE,
      ),
    ),
    'primary key' => array(
      'id',
    ),
  );
  db_create_table('database_test_' . ++$count, $table);
}