Test Setup Failed
Push — main ( 38dc31...b06171 )
by Jenny
26:47
created

Version20250830120953   A

Complexity

Total Complexity 3

Size/Duplication

Total Lines 28
Duplicated Lines 0 %

Importance

Changes 1
Bugs 0 Features 0
Metric Value
eloc 14
dl 0
loc 28
rs 10
c 1
b 0
f 0
wmc 3

3 Methods

Rating   Name   Duplication   Size   Complexity  
A getDescription() 0 3 1
A down() 0 7 1
A up() 0 7 1
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