summaryrefslogtreecommitdiff
path: root/libs/picodb/tests/SchemaFixture.php
blob: fe4b5031c0cbecca5d20fc85095222bb4d002bc6 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
<?php

namespace Schema;

use PDO;

function version_1(PDO $pdo)
{
    $pdo->exec('CREATE TABLE test1 (column1 TEXT)');
}

function version_2(PDO $pdo)
{
    $pdo->exec('CREATE TABLE test2 (column2 TEXT)');
}

function version_3(PDO $pdo)
{
    // Simulate an error
    $pdo->exec('CREATE TABL');
}