Code Duplication    Length = 11-11 lines in 3 locations

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

@@ 310-320 (lines=11) @@
307
    /**
308
     * {@inheritdoc}
309
     */
310
    public function addColumn(Table $table, Column $column)
311
    {
312
        $sql = sprintf(
313
            'ALTER TABLE %s ADD COLUMN %s %s',
314
            $this->quoteTableName($table->getName()),
315
            $this->quoteColumnName($column->getName()),
316
            $this->getColumnSqlDefinition($column)
317
        );
318
319
        $this->execute($sql);
320
    }
321
322
    /**
323
     * {@inheritdoc}

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

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

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

@@ 374-384 (lines=11) @@
371
    /**
372
     * {@inheritdoc}
373
     */
374
    public function addColumn(Table $table, Column $column)
375
    {
376
        $sql = sprintf(
377
            'ALTER TABLE %s ADD %s %s',
378
            $this->quoteTableName($table->getName()),
379
            $this->quoteColumnName($column->getName()),
380
            $this->getColumnSqlDefinition($column)
381
        );
382
383
        $this->execute($sql);
384
    }
385
386
    /**
387
     * {@inheritdoc}