Uploaded image for project: 'Ibexa IBX'
  1. Ibexa IBX
  2. IBX-8031

Missing --complete flag while executing doctrine:schema:update command

    XMLWordPrintable

Details

    • Icon: Bug Bug
    • Resolution: Unresolved
    • Icon: Medium Medium
    • None
    • None
    • None
    • None

    Description

      The following warning is displayed while running ibexa:install command:

      [WARNING] Not passing the "--complete" option to "doctrine:schema:update" is deprecated and will not be supported when using doctrine/dbal 4 

      However be aware that

      --complete option is passed, this
        task will drop all database assets (e.g. tables, etc) that are *not* described
        by the current metadata. In other words, without this option, this task leaves
        untouched any "extra" tables that exist in the database, but which aren't
        described by any metadata. Not passing that option is deprecated.
        
        Hint: If you have a database with tables that should not be managed
        by the ORM, you can use a DBAL functionality to filter the tables and sequences down
        on a global level:
        
            $config->setSchemaAssetsFilter(function (string|AbstractAsset $assetName): bool {
                if ($assetName instanceof AbstractAsset) {
                    $assetName = $assetName->getName();
                }
        
                return !str_starts_with($assetName, 'audit_');
            });
      

       

       

       

      Designs

        Attachments

          Activity

            People

              Unassigned Unassigned
              adam.wojs@ibexa.co Adam Wójs
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated: