Skip to content

Commit f7ed24b

Browse files
committed
Refactor
1 parent 4339848 commit f7ed24b

File tree

2 files changed

+1
-3
lines changed

2 files changed

+1
-3
lines changed

src/lib/ColumnToCode.php

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -167,9 +167,6 @@ public function getCode(bool $quoted = false):string
167167
}
168168
if ($this->rawParts['default'] === null) {
169169
$default = '';
170-
} elseif (ApiGenerator::isPostgres() && $this->isEnum()) {
171-
$default =
172-
$this->rawParts['default'] !== null ? ' DEFAULT ' . trim($this->rawParts['default']) : '';
173170
} else {
174171
$default = $this->rawParts['default'] !== null ? ' DEFAULT ' . trim($this->rawParts['default']) : '';
175172
}

src/lib/migrations/MigrationRecordBuilder.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -227,6 +227,7 @@ public function addFk(string $fkName, string $tableAlias, string $fkCol, string
227227
$onUpdate
228228
);
229229
}
230+
return '';
230231
}
231232

232233
public function addUniqueIndex(string $tableAlias, string $indexName, array $columns):string

0 commit comments

Comments
 (0)