Last active
November 12, 2015 06:48
-
-
Save mipapo/349bfa25962ede059eb6 to your computer and use it in GitHub Desktop.
switch-accountid-to-1.sql
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
-- Statements to set `accountid` to '1' everywhere (you may need to use your own prefix) | |
-- | |
-- RUNALYZE v2.2+ requires even single-user installations to have a real account | |
DELETE FROM `runalyze_clothes` WHERE `accountid`='1'; | |
DELETE FROM `runalyze_conf` WHERE `accountid`='1'; | |
DELETE FROM `runalyze_dataset` WHERE `accountid`='1'; | |
DELETE FROM `runalyze_plugin` WHERE `accountid`='1'; | |
DELETE FROM `runalyze_route` WHERE `accountid`='1'; | |
DELETE FROM `runalyze_shoe` WHERE `accountid`='1'; | |
DELETE FROM `runalyze_sport` WHERE `accountid`='1'; | |
DELETE FROM `runalyze_trackdata` WHERE `accountid`='1'; | |
DELETE FROM `runalyze_training` WHERE `accountid`='1'; | |
DELETE FROM `runalyze_type` WHERE `accountid`='1'; | |
DELETE FROM `runalyze_user` WHERE `accountid`='1'; | |
UPDATE `runalyze_clothes` SET `accountid`='1'; | |
UPDATE `runalyze_conf` SET `accountid`='1'; | |
UPDATE `runalyze_dataset` SET `accountid`='1'; | |
UPDATE `runalyze_plugin` SET `accountid`='1'; | |
UPDATE `runalyze_route` SET `accountid`='1'; | |
UPDATE `runalyze_shoe` SET `accountid`='1'; | |
UPDATE `runalyze_sport` SET `accountid`='1'; | |
UPDATE `runalyze_trackdata` SET `accountid`='1'; | |
UPDATE `runalyze_training` SET `accountid`='1'; | |
UPDATE `runalyze_type` SET `accountid`='1'; | |
UPDATE `runalyze_user` SET `accountid`='1'; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment