-
Notifications
You must be signed in to change notification settings - Fork 198
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Bump version to 3.2-dev to prompt upgrades
- Loading branch information
1 parent
5194bb3
commit 76bcf1c
Showing
3 changed files
with
23 additions
and
2 deletions.
There are no files selected for viewing
20 changes: 20 additions & 0 deletions
20
application/migrations/20240709181800_addElementTextIndex.php
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
<?php | ||
/** | ||
* Omeka | ||
* | ||
* @copyright Copyright 2007-2020 Roy Rosenzweig Center for History and New Media | ||
* @license http://www.gnu.org/licenses/gpl-3.0.txt GNU GPLv3 | ||
*/ | ||
|
||
/** | ||
* Add better index for sorting/filtering element texts by specific element | ||
* | ||
* @package Omeka\Db\Migration | ||
*/ | ||
class addElementTextIndex extends Omeka_Db_Migration_AbstractMigration | ||
{ | ||
public function up() | ||
{ | ||
$this->db->query("ALTER TABLE {$this->db->ElementText} ADD INDEX `record_element_text` (`record_type`, `record_id`, `element_id`, `text`(20))"); | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters