src/Phinx/Db/Adapter/OracleAdapter.php 1 location
|
@@ 911-915 (lines=5) @@
|
| 908 |
|
$buffer[] = '(' . $column->getPrecision() . ',' . $column->getScale() . ')'; |
| 909 |
|
} |
| 910 |
|
|
| 911 |
|
if ($column->getDefault() === null && $column->isNull()) { |
| 912 |
|
$buffer[] = ' DEFAULT NULL'; |
| 913 |
|
} else { |
| 914 |
|
$buffer[] = $this->getDefaultValueDefinition($column->getDefault()); |
| 915 |
|
} |
| 916 |
|
|
| 917 |
|
if($setNullSql){ |
| 918 |
|
$buffer[] = $column->isNull() ? 'NULL' : 'NOT NULL'; |
src/Phinx/Db/Adapter/SqlServerAdapter.php 1 location
|
@@ 1036-1042 (lines=7) @@
|
| 1033 |
|
|
| 1034 |
|
$buffer[] = $column->isNull() ? 'NULL' : 'NOT NULL'; |
| 1035 |
|
|
| 1036 |
|
if ($create === true) { |
| 1037 |
|
if ($column->getDefault() === null && $column->isNull()) { |
| 1038 |
|
$buffer[] = ' DEFAULT NULL'; |
| 1039 |
|
} else { |
| 1040 |
|
$buffer[] = $this->getDefaultValueDefinition($column->getDefault()); |
| 1041 |
|
} |
| 1042 |
|
} |
| 1043 |
|
|
| 1044 |
|
if ($column->isIdentity()) { |
| 1045 |
|
$buffer[] = 'IDENTITY(1, 1)'; |