Elgg
Version master
Main Page
Related Pages
Namespaces
Classes
Files
Examples
File List
File Members
engine
schema
migrations
20181107091651_add_entities_subtype_index.php
Go to the documentation of this file.
1
<?php
2
3
use
Phinx\Migration\AbstractMigration
;
4
5
class
AddEntitiesSubtypeIndex
extends
AbstractMigration
6
{
28
public
function
change
() {
29
$table
= $this->table(
'entities'
);
30
if
(
$table
->hasIndexByName(
'subtype'
)) {
31
return
;
32
}
33
34
$table
->addIndex([
'subtype'
], [
35
'name'
=>
"subtype"
,
36
'unique'
=>
false
,
37
'limit'
=> 50,
38
]);
39
40
$table
->save();
41
}
42
}
AddEntitiesSubtypeIndex\change
change()
Change Method.
Definition:
20181107091651_add_entities_subtype_index.php:28
$table
$table
Definition:
user.php:37
AbstractMigration
AddEntitiesSubtypeIndex
Definition:
20181107091651_add_entities_subtype_index.php:5
Generated on Sat Dec 21 2024 00:02:53 for Elgg by
1.8.11