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

Migrating from Nova 3 version #117

Closed
paperscissors opened this issue Jun 27, 2022 · 1 comment
Closed

Migrating from Nova 3 version #117

paperscissors opened this issue Jun 27, 2022 · 1 comment
Labels
tutorial Nothing's wrong, just a helpful tip on how to do something.

Comments

@paperscissors
Copy link

paperscissors commented Jun 27, 2022

Putting this issue here for posterity as well for anyone else that's upgrading from Nova 3 to 4.

Here's the query I used to migrate from the old database table nova_page_manager_pages to the new version used in the latest version of this package:

INSERT INTO pages (name, id, created_at, updated_at, template, parent_id, active, data, slug) select CONCAT('{"en":"', name, '"}'), id, created_at, updated_at, 'MyTemplateName' as template, parent_id, published as active, CONCAT('{"en":', data, '}'), CONCAT('{"en":"', slug, '"}') from nova_page_manager_pages

You'll want to of course create a corresponding new Template with php artisan npm:template {className}.

@Tarpsvo Tarpsvo added the tutorial Nothing's wrong, just a helpful tip on how to do something. label Jul 20, 2022
@Tarpsvo
Copy link
Collaborator

Tarpsvo commented Aug 15, 2022

Since I now started migrating an existing huge project from Nova 3 to Nova 4, I will also go through the process of migrating page manager's data.

I have a created a MIGRATING.md file that will include migrations and other details I went through to upgrade the version.

It currently only contains the database migration.

@Tarpsvo Tarpsvo closed this as completed Aug 15, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
tutorial Nothing's wrong, just a helpful tip on how to do something.
Projects
None yet
Development

No branches or pull requests

2 participants