Skip to content

PHP Fatal error: Uncaught PDOException: SQLSTATE[HY000]: General error: 1 duplicate column name: source_id in /var/www/411/phplib/DB.php:81 #175

Closed
@papaharry

Description

The latest version gives the following error upon running the migration.php script:

PHP Fatal error:  Uncaught PDOException: SQLSTATE[HY000]: General error: 1 duplicate column name: source_id in /var/www/411/phplib/DB.php:81
Stack trace:
#0 /var/www/411/phplib/DB.php(81): PDO->prepare('ALTER TABLE `al...')
#1 /var/www/411/bin/migration.php(85): FOO\DB::query('ALTER TABLE `al...')
#2 {main}
  thrown in /var/www/411/phplib/DB.php on line 81

By excluding the lines 84-87 on the migration.php file, the error does not appear and the application runs ok (more like work around rather than fix.

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions