mirror of
https://github.com/Part-DB/Part-DB-server.git
synced 2025-06-20 17:15:51 +02:00
Fixed variable access curly brackets deprecations in migrations
This commit is contained in:
parent
3ac82cf76a
commit
eabd03dc53
2 changed files with 3 additions and 3 deletions
|
@ -160,7 +160,7 @@ EOD;
|
|||
21840,21840,21840,21840,21840,21520,21520,21520,20480,21520,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
|
||||
,21845,21845,21845,21845,21845,21845,21845,21845,21845,21845,21845,
|
||||
21845,21845,21845,21845,21845,21845);
|
||||
|
|
|
@ -234,8 +234,8 @@ final class Version20190902140506 extends AbstractMultiPlatformMigration
|
|||
'orderdetails', 'pricedetails', 'storelocations', 'suppliers', ];
|
||||
|
||||
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 last_modified = datetime_added WHERE last_modified = '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'");
|
||||
}
|
||||
|
||||
//Set the dbVersion to a high value, to prevent the old Part-DB versions to upgrade DB!
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue