Test Setup Failed
Branch main (b06171)
by Jenny
25:39 queued 21:46
created

Version20250830120953::getDescription()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 3
Code Lines 1

Duplication

Lines 0
Ratio 0 %

Importance

Changes 1
Bugs 0 Features 0
Metric Value
cc 1
eloc 1
nc 1
nop 0
dl 0
loc 3
rs 10
c 1
b 0
f 0
1
<?php
2
3
declare(strict_types=1);
4
5
namespace DoctrineMigrations;
6
7
use Doctrine\DBAL\Schema\Schema;
8
use Doctrine\Migrations\AbstractMigration;
9
10
/**
11
 * Auto-generated Migration: Please modify to your needs!
12
 */
13
final class Version20250830120953 extends AbstractMigration
14
{
15
    public function getDescription(): string
16
    {
17
        return '';
18
    }
19
20
    public function up(Schema $schema): void
21
    {
22
        // this up() migration is auto-generated, please modify it to your needs
23
        $this->addSql(<<<'SQL'
24
            CREATE TABLE descriptions (id INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, indicator VARCHAR(255) NOT NULL, series_description VARCHAR(255) NOT NULL, source VARCHAR(255) NOT NULL)
25
        SQL);
26
        $this->addSql(<<<'SQL'
27
            CREATE TABLE texts (id INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, target VARCHAR(255) NOT NULL, header VARCHAR(255) NOT NULL, text VARCHAR(255) NOT NULL, source VARCHAR(255) NOT NULL)
28
        SQL);
29
        // $this->addSql(<<<'SQL'
30
        //     DROP TABLE TimeValuecsv
31
        // SQL);
32
    }
33
34
    public function down(Schema $schema): void
35
    {
36
        // this down() migration is auto-generated, please modify it to your needs
37
        $this->addSql(<<<'SQL'
38
            CREATE TABLE TimeValuecsv (target CLOB DEFAULT NULL COLLATE "BINARY", indicator CLOB DEFAULT NULL COLLATE "BINARY", year CLOB DEFAULT NULL COLLATE "BINARY", value CLOB DEFAULT NULL COLLATE "BINARY")
39
        SQL);
40
        $this->addSql(<<<'SQL'
41
            DROP TABLE descriptions
42
        SQL);
43
        // $this->addSql(<<<'SQL'
44
        //     DROP TABLE texts
45
        // SQL);
46
    }
47
}
48