summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndrew Dolgov <[email protected]>2021-02-28 21:37:25 +0300
committerAndrew Dolgov <[email protected]>2021-02-28 21:37:25 +0300
commit16dca36d4bde502dce88b4578e149d958e57dacb (patch)
treea7d6f4c22f8cfb827ecdd1e9fe2fbb51d8cb637f
parent4b90e6c0e152c2ee4ce3045ec13c29c9117470fc (diff)
also cast uid in guid to integer on export
-rw-r--r--init.php3
1 files changed, 3 insertions, 0 deletions
diff --git a/init.php b/init.php
index 3c3a719..8d98810 100644
--- a/init.php
+++ b/init.php
@@ -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;