Code Duplication    Length = 11-11 lines in 3 locations

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

@@ 367-377 (lines=11) @@
364
    /**
365
     * {@inheritdoc}
366
     */
367
    public function addColumn(Table $table, Column $column)
368
    {
369
        $sql = sprintf(
370
            'ALTER TABLE %s ADD %s %s',
371
            $this->quoteTableName($table->getName()),
372
            $this->quoteColumnName($column->getName()),
373
            $this->getColumnSqlDefinition($column)
374
        );
375
376
        $this->execute($sql);
377
    }
378
379
    /**
380
     * {@inheritdoc}

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

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

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

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