Code Duplication    Length = 11-11 lines in 3 locations

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

@@ 357-367 (lines=11) @@
354
    /**
355
     * {@inheritdoc}
356
     */
357
    public function addColumn(Table $table, Column $column)
358
    {
359
        $sql = sprintf(
360
            'ALTER TABLE %s ADD %s %s',
361
            $this->quoteTableName($table->getName()),
362
            $this->quoteColumnName($column->getName()),
363
            $this->getColumnSqlDefinition($column)
364
        );
365
366
        $this->execute($sql);
367
    }
368
369
    /**
370
     * {@inheritdoc}

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

@@ 299-309 (lines=11) @@
296
    /**
297
     * {@inheritdoc}
298
     */
299
    public function addColumn(Table $table, Column $column)
300
    {
301
        $sql = sprintf(
302
            'ALTER TABLE %s ADD COLUMN %s %s',
303
            $this->quoteTableName($table->getName()),
304
            $this->quoteColumnName($column->getName()),
305
            $this->getColumnSqlDefinition($column)
306
        );
307
308
        $this->execute($sql);
309
    }
310
311
    /**
312
     * {@inheritdoc}

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

@@ 434-444 (lines=11) @@
431
    /**
432
     * {@inheritdoc}
433
     */
434
    public function addColumn(Table $table, Column $column)
435
    {
436
        $sql = sprintf(
437
            'ALTER TABLE %s ADD %s %s',
438
            $this->quoteTableName($table->getName()),
439
            $this->quoteColumnName($column->getName()),
440
            $this->getColumnSqlDefinition($column)
441
        );
442
443
        $this->execute($sql);
444
    }
445
446
    /**
447
     * {@inheritdoc}