Giter Site home page Giter Site logo

Comments (7)

doctrinebot avatar doctrinebot commented on August 16, 2024

from dbal.

doctrinebot avatar doctrinebot commented on August 16, 2024

Comment created by petr_motejlek:

I'd just like to add that there's an even worse problem with this -- the indices are not created even for tables that Doctrine creates automatically -- for example the joining tables...

from dbal.

doctrinebot avatar doctrinebot commented on August 16, 2024

Comment created by @beberlei:

i'll look into it.

from dbal.

doctrinebot avatar doctrinebot commented on August 16, 2024

Comment created by @beberlei:

Fixed in master, leading to several follow up bugs that all had to be fixed:

  1. generate identifier allowed first char to be a number
  2. postgresql composite foreign key detection left a space in the second (and more) column names
  3. Index column names were not sanitized to lower-case, leading to comparison bugs.

There has been a major refactoring now such that, for each foreign key there is always an explicit index being created. On SQLite, Postgres and Oracle this can lead to quite some additional indexes being created now using SchemaTool --update. MySQL already did this implicitly.

There are now heuristics that detect duplicate indexes (based on columns indexed) and override rules (adding primary on columns foo, bar will delete index on columns foo bar).

from dbal.

doctrinebot avatar doctrinebot commented on August 16, 2024

Comment created by @beberlei:

Note, this commit will not get into Doctrine ORM master unless you update the git-submodule explicitly:

cd lib/vendor/doctrine-dbal
git checkout master

For RC-1 this will be visible to the ORM trunk/master also.

from dbal.

doctrinebot avatar doctrinebot commented on August 16, 2024

Issue was closed with resolution "Fixed"

from dbal.

github-actions avatar github-actions commented on August 16, 2024

This thread has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.

from dbal.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.