1
|
|
|
<?php |
2
|
|
|
|
3
|
|
|
declare(strict_types=1); |
4
|
|
|
|
5
|
|
|
namespace Doctrine\Migrations\Metadata\Storage; |
6
|
|
|
|
7
|
|
|
final class TableMetadataStorageConfiguration implements MetadataStorageConfiguration |
8
|
|
|
{ |
9
|
|
|
/** @var string */ |
10
|
|
|
private $tableName = 'doctrine_migration_versions'; |
11
|
|
|
|
12
|
|
|
/** @var string */ |
13
|
|
|
private $versionColumnName = 'version'; |
14
|
|
|
|
15
|
|
|
/** @var int */ |
16
|
|
|
private $versionColumnLength = 1024; |
17
|
|
|
|
18
|
|
|
/** @var string */ |
19
|
|
|
private $executedAtColumnName = 'executed_at'; |
20
|
|
|
|
21
|
|
|
/** @var string */ |
22
|
|
|
private $executionTimeColumnName = 'execution_time'; |
23
|
|
|
|
24
|
67 |
|
public function getTableName() : string |
25
|
|
|
{ |
26
|
67 |
|
return $this->tableName; |
27
|
|
|
} |
28
|
|
|
|
29
|
13 |
|
public function setTableName(string $tableName) : void |
30
|
|
|
{ |
31
|
13 |
|
$this->tableName = $tableName; |
32
|
13 |
|
} |
33
|
|
|
|
34
|
64 |
|
public function getVersionColumnName() : string |
35
|
|
|
{ |
36
|
64 |
|
return $this->versionColumnName; |
37
|
|
|
} |
38
|
|
|
|
39
|
10 |
|
public function setVersionColumnName(string $versionColumnName) : void |
40
|
|
|
{ |
41
|
10 |
|
$this->versionColumnName = $versionColumnName; |
42
|
10 |
|
} |
43
|
|
|
|
44
|
64 |
|
public function getVersionColumnLength() : int |
45
|
|
|
{ |
46
|
64 |
|
return $this->versionColumnLength; |
47
|
|
|
} |
48
|
|
|
|
49
|
10 |
|
public function setVersionColumnLength(int $versionColumnLength) : void |
50
|
|
|
{ |
51
|
10 |
|
$this->versionColumnLength = $versionColumnLength; |
52
|
10 |
|
} |
53
|
|
|
|
54
|
64 |
|
public function getExecutedAtColumnName() : string |
55
|
|
|
{ |
56
|
64 |
|
return $this->executedAtColumnName; |
57
|
|
|
} |
58
|
|
|
|
59
|
10 |
|
public function setExecutedAtColumnName(string $executedAtColumnName) : void |
60
|
|
|
{ |
61
|
10 |
|
$this->executedAtColumnName = $executedAtColumnName; |
62
|
10 |
|
} |
63
|
|
|
|
64
|
64 |
|
public function getExecutionTimeColumnName() : string |
65
|
|
|
{ |
66
|
64 |
|
return $this->executionTimeColumnName; |
67
|
|
|
} |
68
|
|
|
|
69
|
10 |
|
public function setExecutionTimeColumnName(string $executionTimeColumnName) : void |
70
|
|
|
{ |
71
|
10 |
|
$this->executionTimeColumnName = $executionTimeColumnName; |
72
|
10 |
|
} |
73
|
|
|
} |
74
|
|
|
|