Path

ez projects / update_class_from_command_line


Update class from command line

UNIX name Owner Status Version Compatible with
update_class_from_command_line Ole Morten Halvorsen planning 0.11 3.x

Script for adding attributes from command line

If you got an existing class with a lot of objects, adding a new
attribute to the class will trigger an update of all objects. If the
object count of this class is too big this process will time out
causing database inconsistency. This script will do this process from
the command line instead.
Usage:
1. Download the script and put in the root of your eZ publish
installation
2. Edit a class
3. Do the wanted changes
4. When editing a class a new temporary version of class is made. Make
sure this is stored by either moving an attribute up and then down or
by clicking the 'remove selected attributes' button without having
selected any attributes.
5. Edit the script and insert your class id in the updateClass( N )
call at the bottom of the script.
6. Run the script: $ php addmissingobjectattributes.php

 

Screenshot

This project has no reviews yet. Be the first one to review it!

No forum messages yet.