Skip to content

Project Dump Invalid Escaping #846

@petritz

Description

PHP Version

irrelevant

Shopware Version

irrelevant

Plugin Version

0.10.4

Actual behaviour

If I try to import the dump into the database, I get the error Unknown command '''. from the mysql command

Expected behaviour

A successful import of the database

Steps to Reproduce?

Create a dump: shopware-cli project dump --username db --password db --host db db
Try to import the dump: mysql -udb -pdb db < dump.sql

It is basically the plugin table that is not properly functioning:

CREATE TABLE `b2b_components_pending_order` (
  (...)
  `tax_status` varchar(255) GENERATED ALWAYS AS (json_unquote(json_extract(`price`,_utf8mb4\'$.taxStatus\'))) VIRTUAL,
  (...)

b2b_components_pending_order.sql

(maybe relevance to #433)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions