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

Public Member Functions

 validate ()
 Validates that there are no duplicate names in datalist and config tables. More...
 
 up ()
 Migrates legacy 2.x datalists values to config table. More...
 
 down ()
 Recreate datalists table. More...
 

Detailed Description

Definition at line 7 of file 20170728020000_migrate_datalists_to_config.php.

Member Function Documentation

MigrateDatalistsToConfig::down ( )

Recreate datalists table.

Warning
Note that the datalists values will not be populated back into the table There is no way of telling which config values have come from datalists table

CREATE TABLE prefix_datalists ( name varchar(255) NOT NULL, value text NOT NULL, PRIMARY KEY (name) ) ENGINE=MyISAM DEFAULT CHARSET=utf8;

Definition at line 80 of file 20170728020000_migrate_datalists_to_config.php.

MigrateDatalistsToConfig::up ( )

Migrates legacy 2.x datalists values to config table.

Definition at line 40 of file 20170728020000_migrate_datalists_to_config.php.

MigrateDatalistsToConfig::validate ( )

Validates that there are no duplicate names in datalist and config tables.

Exceptions
InstallationException

Definition at line 14 of file 20170728020000_migrate_datalists_to_config.php.


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