Version20200316192653   A
last analyzed

Complexity

Total Complexity 3

Size/Duplication

Total Lines 17
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 1

Test Coverage

Coverage 0%

Importance

Changes 0
Metric Value
wmc 3
lcom 0
cbo 1
dl 0
loc 17
ccs 0
cts 7
cp 0
rs 10
c 0
b 0
f 0

3 Methods

Rating   Name   Duplication   Size   Complexity  
A getDescription() 0 4 1
A up() 0 5 1
A down() 0 3 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 Version20200316192653 extends AbstractMigration
14
{
15
    public function getDescription() : string
16
    {
17
        return 'Made short description as long text';
18
    }
19
20
    public function up(Schema $schema) : void
21
    {
22
        $this->addSql('ALTER TABLE posts MODIFY shortDescription LONGTEXT;');
23
24
    }
25
26
    public function down(Schema $schema) : void
27
    {
28
    }
29
}
30