Skip to content

Instantly share code, notes, and snippets.

/*
* This script migrate model data from SimpleTree to NestedTree
*
* @see \October\Rain\Database\Traits\SimpleTree
* @see \October\Rain\Database\Traits\NestedTree
*
* Before executing this ensure that your model implement SimpleTree
* and switch to NestedTree only when the process is complete
*/