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