Ticket #133 (new patch)

Opened 4 years ago

Last modified 4 years ago

Add custom index names for 'index_column' in createTable in AkInstaller.php

Reported by: suthern Assigned to:
Priority: minor Milestone: 1.0.1
Component: Installer Keywords:
Cc:

Description (Last modified by Kaste)

This adds the ability to define the names of custom indexes inside a createTable(). See http://forum.akelos.org/discussion/297/add-define-index-names-in-createtable-function for details.

Attachments

AkInstaller.php.diff (1.0 kB) - added by suthern on 03/07/08 12:36:34.
diff patch for AkInstaller?.php

Change History

03/07/08 12:36:34 changed by suthern

  • attachment AkInstaller.php.diff added.

diff patch for AkInstaller?.php

03/07/08 12:39:03 changed by suthern

I misspelled 'columns' in the ticket title, but can't figure out how to fix it. Oh well.

03/07/08 12:43:03 changed by Kaste

  • description changed.
  • summary changed from Add custom index names for 'index_columsn' in createTable in AkInstaller.php to Add custom index names for 'index_column' in createTable in AkInstaller.php.

03/07/08 12:47:56 changed by Kaste

proposed usage:

$this->createTable('index_name_test', 
            array('columns' =>
                    'id,'.              // reqular PRIMARY
                    'ListID,'.          // my UNIQUE ID
                    'wID',              // another UNIQUE
                  'index_columns' => array(
                    'ListID UNIQUE' => 'idx_ListID', 
                    'wID UNIQUE' => 'idx_wID'
                    )
                 )
            );

(copy pasted from the forum)