Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Пример миграции существующей таблицы в документацию #15

Open
matperez opened this issue Aug 9, 2019 · 1 comment

Comments

@matperez
Copy link

matperez commented Aug 9, 2019

Добрый день,

В документации не помешал бы пример адаптации уже существующей таблицы с данными к расширению. Что-то вроде:

Для дерева с одним корнем выполнить UPDATE table_name SET lft = 1, rgt = 2, depth = 1.

Для дерева с множеством корней UPDATE table_name SET tree = id, lft = 1, rgt = 2, depth = 1.

@matperez matperez changed the title Добавить пример миграции существующей таблицы в документацию Пример миграции существующей таблицы в документацию Aug 9, 2019
@mintsuro
Copy link

Поддерживаю, очень бы пригодилось

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants