Code Duplication    Length = 10-10 lines in 2 locations

src/Phinx/Db/Adapter/PostgresAdapter.php 1 location

@@ 198-207 (lines=10) @@
195
            $options['id'] = 'id';
196
        }
197
198
        if (isset($options['id']) && is_string($options['id'])) {
199
            // Handle id => "field_name" to support AUTO_INCREMENT
200
            $column = new Column();
201
            $column->setName($options['id'])
202
                   ->setType('integer')
203
                   ->setIdentity(true);
204
205
            array_unshift($columns, $column);
206
            $options['primary_key'] = $options['id'];
207
        }
208
209
        // TODO - process table options like collation etc
210
        $sql = 'CREATE TABLE ';

src/Phinx/Db/Adapter/SqlServerAdapter.php 1 location

@@ 219-228 (lines=10) @@
216
            $options['id'] = 'id';
217
        }
218
219
        if (isset($options['id']) && is_string($options['id'])) {
220
            // Handle id => "field_name" to support AUTO_INCREMENT
221
            $column = new Column();
222
            $column->setName($options['id'])
223
                   ->setType('integer')
224
                   ->setIdentity(true);
225
226
            array_unshift($columns, $column);
227
            $options['primary_key'] = $options['id'];
228
        }
229
230
        $sql = 'CREATE TABLE ';
231
        $sql .= $this->quoteTableName($table->getName()) . ' (';