Comments (7)
- is referenced by DBAL-1063: Exceptions from SchemaTool when running with DBAL 2.5.0
- is referenced by DDC-3478: [GH-1239] Fix index duplication for unique association join columns
from dbal.
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.
Comment created by @beberlei:
i'll look into it.
from dbal.
Comment created by @beberlei:
Fixed in master, leading to several follow up bugs that all had to be fixed:
- generate identifier allowed first char to be a number
- postgresql composite foreign key detection left a space in the second (and more) column names
- 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.
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.
Issue was closed with resolution "Fixed"
from dbal.
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)
- [4.0] Query builder - how to reset `From` query part? HOT 10
- sql rename table :old_table to :new_table not working parameterised HOT 2
- Foreign key name change not picked up by schema comperator HOT 3
- Exception thrown when creating migration HOT 1
- sqlite id bigint HOT 4
- Incorrect PostgreSQL escaping for schema name exclusion in query HOT 1
- Validation schema failure after disabling DC2Type generation in Doctrine HOT 17
- Why some places you use throw new Exception and other static method? HOT 4
- Validation Error in doctrine:schema:validate After Merging PR #6418 HOT 17
- Unable to detect real driver for proper query type inference in phpstan-doctrine HOT 3
- `Connection::connect` triggers deprecation when `connect` is called from protected scope HOT 2
- BC: Extract EnumType from comment hint is broken ! HOT 2
- Unable to setup 'platform' in wrapper `Connection`, but still documented in 4.x HOT 5
- Cannot connect with mariaDB and SSL with pdo_mysql HOT 7
- Add ENUM type into DBAL 4 HOT 10
- Type Mapping Discrepancies Between DBAL3 and DBAL4 HOT 11
- Column precision is not specified 2 HOT 5
- Oracle `datetimetz` incorrectly parsed due to disagreement between `OraclePlatform`->`getDateTimeTzFormatString()` and Oracle driver's `InitializeSession`
- Transaction not failing on update on unique key constraint
- Unknown column type "uuid" requested. HOT 8
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from dbal.