diff options
author | Andrew Dolgov <[email protected]> | 2021-02-28 21:37:25 +0300 |
---|---|---|
committer | Andrew Dolgov <[email protected]> | 2021-02-28 21:37:25 +0300 |
commit | 16dca36d4bde502dce88b4578e149d958e57dacb (patch) | |
tree | a7d6f4c22f8cfb827ecdd1e9fe2fbb51d8cb637f | |
parent | 4b90e6c0e152c2ee4ce3045ec13c29c9117470fc (diff) |
also cast uid in guid to integer on export
-rw-r--r-- | init.php | 3 |
1 files changed, 3 insertions, 0 deletions
@@ -206,6 +206,9 @@ class Data_Migration extends Plugin { while ($row = $sth->fetch(PDO::FETCH_ASSOC)) { + // deal with mysql string literal uid + $row["guid"] = $this->convert_guid($row["guid"], $owner_uid); + foreach ($row as $k => $v) { if (is_bool($v)) { $row[$k] = (int)$v; |