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

Clean up migrations #11

Closed
wants to merge 1 commit into from
Closed

Conversation

ninjaparade
Copy link

@ninjaparade ninjaparade commented Oct 12, 2018

This PR just cleans up the migration. When running it (Postgres) I received the following errors.

 1   Doctrine\DBAL\Driver\PDOException::("SQLSTATE[42830]: Invalid foreign key: 7 ERROR:  there is no unique constraint matching given keys for referenced table "telescope_entries"")

  2   PDOException::("SQLSTATE[42830]: Invalid foreign key: 7 ERROR:  there is no unique constraint matching given keys for referenced table "telescope_entries"")

I resolved it by inlining the unique() constraint.
I also got rid of a couple duplications for indexing columns.

This PR just cleans up the migration. When running it (Postgres) I received the following errors. I resolved it by inlining the `unique()` constraint.
I also got rid of a couple duplications for indexing columns.


```
 1   Doctrine\DBAL\Driver\PDOException::("SQLSTATE[42830]: Invalid foreign key: 7 ERROR:  there is no unique constraint matching given keys for referenced table "telescope_entries"")

  2   PDOException::("SQLSTATE[42830]: Invalid foreign key: 7 ERROR:  there is no unique constraint matching given keys for referenced table "telescope_entries"")
```
@taylorotwell
Copy link
Member

taylorotwell commented Oct 12, 2018

This isn't the same. The indexes were multi-column.

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

Successfully merging this pull request may close these issues.

None yet

2 participants