Skip to content

Commit be26ed5

Browse files
committed
Fix style
1 parent dbcf4a9 commit be26ed5

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/lib/ColumnToCode.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -346,7 +346,7 @@ private function resolve():void
346346
$rawSize = $this->column->size ? '(' . $this->column->size . ')' : '';
347347
$this->rawParts['nullable'] = $this->column->allowNull ? 'NULL' : 'NOT NULL';
348348
// if (!ApiGenerator::isPostgres()) {
349-
$this->fluentParts['nullable'] = $this->column->allowNull === true ? 'null()' : 'notNull()';
349+
$this->fluentParts['nullable'] = $this->column->allowNull === true ? 'null()' : 'notNull()';
350350
// }
351351
if (array_key_exists($dbType, self::INT_TYPE_MAP)) {
352352
$this->fluentParts['type'] = self::INT_TYPE_MAP[$dbType] . $fluentSize;

src/lib/migrations/PostgresMigrationBuilder.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -72,7 +72,7 @@ protected function buildColumnChanges(ColumnSchema $current, ColumnSchema $desir
7272
$this->migration->addDownCode($this->recordBuilder->alterColumnTypeFromDb($tableName, $current, $addUsing));
7373
}
7474
if (in_array('allowNull', $changed, true)) {
75-
// TODO if last up code contains `null()` string then do execute below statement, same for notNull() and same in down code
75+
// TODO if last up code contains `null()` string then do execute below statement, same for notNull() and same in down code
7676
if ($desired->allowNull === true) {
7777
$this->migration->addUpCode($this->recordBuilder->dropColumnNotNull($tableName, $desired));
7878
$this->migration->addDownCode($this->recordBuilder->setColumnNotNull($tableName, $current), true);

0 commit comments

Comments
 (0)