1 database_test.test | protected DatabaseTransactionTestCase::executeDDLStatement() |
Execute a DDL statement.
File
- core/
modules/ simpletest/ tests/ database_test.test, line 3589 - Database tests.
Class
- DatabaseTransactionTestCase
- Test transaction support, particularly nesting.
Code
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);
}