mysql??
This commit is contained in:
parent
641821f6f1
commit
60cfa5d6c2
1 changed files with 6 additions and 1 deletions
|
@ -40,5 +40,10 @@ $user = User::by_id($config->get_int("anon_id", 0));
|
|||
$userPage = new UserPage();
|
||||
$userPage->onUserCreation(new UserCreationEvent("demo", "demo", "demo", "demo@demo.com", false));
|
||||
$userPage->onUserCreation(new UserCreationEvent("test", "test", "test", "test@test.com", false));
|
||||
// in mysql, CREATE TABLE commits transactions, so after the database
|
||||
// upgrade we may or may not be inside a transaction depending on if
|
||||
// any tables were created.
|
||||
if(!$database->is_transaction_open()) {
|
||||
$database->commit();
|
||||
}
|
||||
$_tracer->end();
|
||||
|
|
Reference in a new issue