From 06d176b1d345eb616c7b5290be89dda927bb2ab9 Mon Sep 17 00:00:00 2001 From: "akforweb@gmail.com" Date: Wed, 15 Jul 2020 19:15:23 +0300 Subject: [PATCH] add migrations --- app/routes/client.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/app/routes/client.php b/app/routes/client.php index ef98c39..2252e6b 100644 --- a/app/routes/client.php +++ b/app/routes/client.php @@ -29,7 +29,7 @@ function addclient(){ if ($client['clienthash'] == '' ){ $updsql = "UPDATE `clients` SET `clienthash` = '$clienthash' WHERE `client_id` = '{$client['client_id']}'"; - db_get($updsql, 'writer'); + db_get($updsql, 'klan'); echo "$updsql \n"; } @@ -43,7 +43,7 @@ function addclient(){ else { $inssql = "INSERT INTO `clients` (clientmail, clientdate, clienthash) VALUES ('$clientmail', '$clientdate', '$clienthash')"; - db_get($inssql, 'writer'); + db_get($inssql, 'klan'); echo "$inssql \n"; } } @@ -61,7 +61,7 @@ function addclientid(){ if (isset($client['client_id'])){ $updsql = "UPDATE `anbuy` SET `client_id` = '{$client['client_id']}' WHERE `buy_id` = '{$buy['buy_id']}'"; echo "$updsql\n"; - db_get($updsql); + db_get($updsql, 'klan'); } }