Doctrine DBAL
  1. Doctrine DBAL
  2. DBAL-220

Some platforms require specific index handling

    Details

    • Type: New Feature New Feature
    • Status: Resolved
    • Priority: Major Major
    • Resolution: Fixed
    • Affects Version/s: 2.2
    • Fix Version/s: 2.3
    • Component/s: None
    • Security Level: All
    • Labels:
      None

      Description

      • SQL Server/Azure for example requires strict differentiation between CLUSTERED/NON-CLUSTERED indexes.
      • MySQL can create full text indexes
      • etcetc.

        Activity

        Hide
        Benjamin Eberlei added a comment -

        Implemented.

        Show
        Benjamin Eberlei added a comment - Implemented.
        Hide
        Benjamin Eberlei added a comment -

        SQL Server can now create clustered or non-clustered indexes like:

        $table->setPrimaryKey(array("id"));
        $table->getIndex('primary')->addFlag('nonclustered');
        $table->addIndex(array("column1"), "name");
        $table->getIndex("name")->addFlag("clustered");
        
        Show
        Benjamin Eberlei added a comment - SQL Server can now create clustered or non-clustered indexes like: $table->setPrimaryKey(array( "id" )); $table->getIndex('primary')->addFlag('nonclustered'); $table->addIndex(array( "column1" ), "name" ); $table->getIndex( "name" )->addFlag( "clustered" );
        Hide
        Steve Müller added a comment -

        Is there any way to define the flags via class metadata? Shouldn't there be the possibility to pass the flags to a class metadata index/id definition?

        Show
        Steve Müller added a comment - Is there any way to define the flags via class metadata? Shouldn't there be the possibility to pass the flags to a class metadata index/id definition?

          People

          • Assignee:
            Benjamin Eberlei
            Reporter:
            Benjamin Eberlei
          • Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved: