Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fail migrate m161114_094902_add_url_column_to_comment_table #106

Open
lav45 opened this issue Nov 4, 2021 · 0 comments
Open

Fail migrate m161114_094902_add_url_column_to_comment_table #106

lav45 opened this issue Nov 4, 2021 · 0 comments

Comments

@lav45
Copy link

lav45 commented Nov 4, 2021

DB Postgresql 13

*** applying m161114_094902_add_url_column_to_comment_table
    > add column url text to table {{%comment}} ...Exception 'yii\db\Exception' with message 'SQLSTATE[42701]: Duplicate column: 7 ERROR:  column "url" of relation "comment" already exists
The SQL being executed was: ALTER TABLE "comment" ADD "url" text'

in /var/www/vendor/yiisoft/yii2/db/Schema.php:678

Error Info:
Array
(
    [0] => 42701
    [1] => 7
    [2] => ERROR:  column "url" of relation "comment" already exists
)

Caused by: Exception 'PDOException' with message 'SQLSTATE[42701]: Duplicate column: 7 ERROR:  column "url" of relation "comment" already exists'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant