Skip to content

Commit

Permalink
MAJOR: add SQL query to update tblSMSOutgoing.parent_uid with tblUser…
Browse files Browse the repository at this point in the history
….parent_uid
  • Loading branch information
antonraharja committed Jun 9, 2016
1 parent 35c5d25 commit d3fec72
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions db/playsms-upgrade_1.3.1_to_1.4.sql
Original file line number Diff line number Diff line change
Expand Up @@ -6,3 +6,6 @@ UPDATE `playsms_tblRegistry` SET `registry_value` = '1.4-master' WHERE `registry

-- tblSMSOutgoing
ALTER TABLE `playsms_tblSMSOutgoing` ADD `parent_uid` INT(11) NOT NULL DEFAULT '0' AFTER `uid`;

-- update tblSMSOutgoing.parent_uid with tblUser.parent_uid
UPDATE `playsms_tblSMSOutgoing` A INNER JOIN `playsms_tblUser` B ON A.uid=B.uid SET A.parent_uid=B.parent_uid;

0 comments on commit d3fec72

Please sign in to comment.