vendredi 29 mars 2019

Valid syntax for excludeTables using laravel-backup

Using laravel-backup("^6.1") for laravel 5.8

I failed to set excludeTables property in config file. I did it as :

'source' => [
...
    'databases' => [
        'mysql',
    ],


     'mysql' => [
         'dump' => [
             'excludeTables' => [
                 'activity_log', //Without prefix  vt2_activity_log
                 'migrations'
             ]
         ]
     ],

But I see that all tables including vt2_activity_log and vt2_migrations are in resulting file?

vt2_ that is an prefix defined in config/database.php :

'mysql' => [
    'driver' => 'mysql',
    'prefix' => 'vt2_',
    ...

I suppose that I do not have to set prefix in excludeTables array ? I tried both, but failed. Was it correct place/synatx for excludeTables?

Thanks!



via Chebli Mohamed

Aucun commentaire:

Enregistrer un commentaire