FriendsOfSulu / SuluImportExportBundle

Simple Import/Export Bundle for Sulu 2 CMS
MIT License
13 stars 6 forks source link

Base table or view not found: 1146 Table 'phpcr_workspaces' doesn't exist #12

Open stollr opened 6 months ago

stollr commented 6 months ago

The import into a completely empty database fail with the exception

Base table or view not found: 1146 Table 'phpcr_workspaces' doesn't exist

I have done bin/console sulu:export at the live system, copied the files of var/export/ into var/import/ of my local dev system, dropped and recreated my local database (without schema) and then executed bin/console sulu:import.

The reason is that importPHPCR is called before importDatabase in the import command.

I found the command doctrine:phpcr:init:dbal that I executed. Then I tried sulu:import again and got

[PHPCR\NodeType\NoSuchNodeTypeException]
sulu:home

Is sulu:import not intended to be run on an empty database?