Elgg  Version 5.1
Public Member Functions | List of all members
DenormalizeMetastrings Class Reference
Inheritance diagram for DenormalizeMetastrings:

Public Member Functions

 up ()
 Denormalize metastrings. More...
 down ()
 Normalize metastrings. More...

Detailed Description

Definition at line 6 of file 20170728030000_denormalize_metastrings.php.

Member Function Documentation

DenormalizeMetastrings::down ( )

Normalize metastrings.

CREATE TABLE prefix_metastrings ( id int(11) NOT NULL AUTO_INCREMENT, string text NOT NULL, PRIMARY KEY (id), KEY string (string(50)) ) ENGINE=MyISAM AUTO_INCREMENT=1 DEFAULT CHARSET=utf8;

Definition at line 109 of file 20170728030000_denormalize_metastrings.php.

DenormalizeMetastrings::up ( )

Denormalize metastrings.

  • Add "name" and "value" columns to "metadata" table
  • Populate these new columns from metastrings table by id
  • Add indexes
  • Drop "metastrings" table

Definition at line 15 of file 20170728030000_denormalize_metastrings.php.

The documentation for this class was generated from the following file: