Fixed variable access curly brackets deprecations in migrations

This commit is contained in:
Jan Böhmer 2023-11-03 23:04:55 +01:00
parent 3ac82cf76a
commit eabd03dc53
2 changed files with 3 additions and 3 deletions

View file

@ -160,7 +160,7 @@ EOD;
21840,21840,21840,21840,21840,21520,21520,21520,20480,21520,20480, 21840,21840,21840,21840,21840,21520,21520,21520,20480,21520,20480,
20480,20480,20480,20480,21504,20480), 20480,20480,20480,20480,21504,20480),
( (
2,'admin', '${admin_pw}','','', 2,'admin', '$admin_pw','','',
'','',1,1,21845,21845,21845,21,85,21,349525,21845,21845,21845,21845 '','',1,1,21845,21845,21845,21,85,21,349525,21845,21845,21845,21845
,21845,21845,21845,21845,21845,21845,21845,21845,21845,21845,21845, ,21845,21845,21845,21845,21845,21845,21845,21845,21845,21845,21845,
21845,21845,21845,21845,21845,21845); 21845,21845,21845,21845,21845,21845);

View file

@ -234,8 +234,8 @@ final class Version20190902140506 extends AbstractMultiPlatformMigration
'orderdetails', 'pricedetails', 'storelocations', 'suppliers', ]; 'orderdetails', 'pricedetails', 'storelocations', 'suppliers', ];
foreach ($tables as $table) { foreach ($tables as $table) {
$this->addSql("UPDATE ${table} SET datetime_added = NOW() WHERE datetime_added = '0000-00-00 00:00:00'"); $this->addSql("UPDATE $table SET datetime_added = NOW() WHERE datetime_added = '0000-00-00 00:00:00'");
$this->addSql("UPDATE ${table} SET last_modified = datetime_added WHERE last_modified = '0000-00-00 00:00:00'"); $this->addSql("UPDATE $table SET last_modified = datetime_added WHERE last_modified = '0000-00-00 00:00:00'");
} }
//Set the dbVersion to a high value, to prevent the old Part-DB versions to upgrade DB! //Set the dbVersion to a high value, to prevent the old Part-DB versions to upgrade DB!