[DATABASE] Replace NOW() with CURRENT_TIMESTAMP

This commit is contained in:
Alexei Sorokin 2020-06-09 20:26:06 +03:00 committed by Diogo Peralta Cordeiro
parent 434f07430d
commit ed4cc01b2f
6 changed files with 161 additions and 160 deletions

View File

@ -283,7 +283,8 @@ class File extends Managed_DataObject
) )
); );
} }
$query .= ' AND EXTRACT(month FROM file.modified) = EXTRACT(month FROM now()) AND EXTRACT(year FROM file.modified) = EXTRACT(year FROM now())'; $query .= ' AND EXTRACT(MONTH FROM file.modified) = EXTRACT(MONTH FROM CURRENT_DATE)'
. ' AND EXTRACT(YEAR FROM file.modified) = EXTRACT(YEAR FROM CURRENT_DATE)';
$file->query($query); $file->query($query);
$file->fetch(); $file->fetch();
$total = $file->total + $fileSize; $total = $file->total + $fileSize;

View File

@ -1,6 +1,6 @@
insert into foreign_service INSERT INTO foreign_service
(id, name, description, created) (id, name, description, created)
values VALUES
('1','Twitter', 'Twitter Micro-blogging service', now()), (1, 'Twitter', 'Twitter Micro-blogging service', CURRENT_TIMESTAMP),
('2','Facebook', 'Facebook', now()), (2, 'Facebook', 'Facebook', CURRENT_TIMESTAMP),
('3','FacebookConnect', 'Facebook Connect', now()); (3, 'FacebookConnect', 'Facebook Connect', CURRENT_TIMESTAMP);

View File

@ -1,5 +1,5 @@
insert into location_namespace INSERT INTO location_namespace
(id, description, created) (id, description, created)
values VALUES
(1, 'Geonames', now()), (1, 'Geonames', CURRENT_TIMESTAMP),
(2, 'Where on Earth', now()); (2, 'Where on Earth', CURRENT_TIMESTAMP);

View File

@ -1,82 +1,82 @@
INSERT INTO notice_source INSERT INTO notice_source
(code, name, url, created) (code, name, url, created)
VALUES VALUES
('adium', 'Adium', 'http://www.adiumx.com/', now()), ('adium', 'Adium', 'http://www.adiumx.com/', CURRENT_TIMESTAMP),
('Afficheur', 'Afficheur', 'http://afficheur.sourceforge.jp/', now()), ('Afficheur', 'Afficheur', 'http://afficheur.sourceforge.jp/', CURRENT_TIMESTAMP),
('AgentSolo.com','AgentSolo.com','http://www.agentsolo.com/', now()), ('AgentSolo.com','AgentSolo.com','http://www.agentsolo.com/', CURRENT_TIMESTAMP),
('anyio', 'Any.IO', 'http://any.io/', now()), ('anyio', 'Any.IO', 'http://any.io/', CURRENT_TIMESTAMP),
('betwittered','BeTwittered','http://www.32hours.com/betwitteredinfo/', now()), ('betwittered','BeTwittered','http://www.32hours.com/betwitteredinfo/', CURRENT_TIMESTAMP),
('bti','bti','http://gregkh.github.com/bti/', now()), ('bti','bti','http://gregkh.github.com/bti/', CURRENT_TIMESTAMP),
('choqok', 'Choqok', 'http://choqok.gnufolks.org/', now()), ('choqok', 'Choqok', 'http://choqok.gnufolks.org/', CURRENT_TIMESTAMP),
('cliqset', 'Cliqset', 'http://www.cliqset.com/', now()), ('cliqset', 'Cliqset', 'http://www.cliqset.com/', CURRENT_TIMESTAMP),
('DarterosStatus', 'Darteros Status', 'http://www.darteros.com/doc/Darteros_Status', now()), ('DarterosStatus', 'Darteros Status', 'http://www.darteros.com/doc/Darteros_Status', CURRENT_TIMESTAMP),
('deskbar','Deskbar-Applet','http://www.gnome.org/projects/deskbar-applet/', now()), ('deskbar','Deskbar-Applet','http://www.gnome.org/projects/deskbar-applet/', CURRENT_TIMESTAMP),
('Do','Gnome Do','http://do.davebsd.com/wiki/index.php?title=Microblog_Plugin', now()), ('Do','Gnome Do','http://do.davebsd.com/wiki/index.php?title=Microblog_Plugin', CURRENT_TIMESTAMP),
('drupal','Drupal','http://drupal.org/', now()), ('drupal','Drupal','http://drupal.org/', CURRENT_TIMESTAMP),
('eventbox','EventBox','http://thecosmicmachine.com/eventbox/', now()), ('eventbox','EventBox','http://thecosmicmachine.com/eventbox/', CURRENT_TIMESTAMP),
('identica-mode','Emacs Identica-mode','http://nongnu.org/identica-mode/', now()), ('identica-mode','Emacs Identica-mode','http://nongnu.org/identica-mode/', CURRENT_TIMESTAMP),
('Facebook','Facebook','http://apps.facebook.com/identica/', now()), ('Facebook','Facebook','http://apps.facebook.com/identica/', CURRENT_TIMESTAMP),
('feed2omb','feed2omb','http://projects.ciarang.com/p/feed2omb/', now()), ('feed2omb','feed2omb','http://projects.ciarang.com/p/feed2omb/', CURRENT_TIMESTAMP),
('get2gnow', 'get2gnow', 'http://uberchicgeekchick.com/?projects=get2gnow', now()), ('get2gnow', 'get2gnow', 'http://uberchicgeekchick.com/?projects=get2gnow', CURRENT_TIMESTAMP),
('gNewBook', 'gNewBook', 'http://www.gnewbook.org/', now()), ('gNewBook', 'gNewBook', 'http://www.gnewbook.org/', CURRENT_TIMESTAMP),
('gravity', 'Gravity', 'http://mobileways.de/gravity', now()), ('gravity', 'Gravity', 'http://mobileways.de/gravity', CURRENT_TIMESTAMP),
('Gwibber','Gwibber','http://launchpad.net/gwibber', now()), ('Gwibber','Gwibber','http://launchpad.net/gwibber', CURRENT_TIMESTAMP),
('HelloTxt','HelloTxt','http://hellotxt.com/', now()), ('HelloTxt','HelloTxt','http://hellotxt.com/', CURRENT_TIMESTAMP),
('identicatools','Laconica Tools','http://bitbucketlabs.net/laconica-tools/', now()), ('identicatools','Laconica Tools','http://bitbucketlabs.net/laconica-tools/', CURRENT_TIMESTAMP),
('identichat','identichat','http://identichat.prosody.im/', now()), ('identichat','identichat','http://identichat.prosody.im/', CURRENT_TIMESTAMP),
('IdentiCurse','IdentiCurse','http://identicurse.net/', now()), ('IdentiCurse','IdentiCurse','http://identicurse.net/', CURRENT_TIMESTAMP),
('IdentiFox','IdentiFox','http://www.bitbucket.org/uncryptic/identifox/', now()), ('IdentiFox','IdentiFox','http://www.bitbucket.org/uncryptic/identifox/', CURRENT_TIMESTAMP),
('identitwitch','IdentiTwitch','http://richfish.org/identitwitch/', now()), ('identitwitch','IdentiTwitch','http://richfish.org/identitwitch/', CURRENT_TIMESTAMP),
('Jiminy','Jiminy','', now()), ('Jiminy','Jiminy','', CURRENT_TIMESTAMP),
('LaTwit','LaTwit','http://latwit.mac65.com/', now()), ('LaTwit','LaTwit','http://latwit.mac65.com/', CURRENT_TIMESTAMP),
('LiveTweeter', 'LiveTweeter', 'http://addons.songbirdnest.com/addon/1204', now()), ('LiveTweeter', 'LiveTweeter', 'http://addons.songbirdnest.com/addon/1204', CURRENT_TIMESTAMP),
('livetweeter', 'livetweeter', 'http://addons.songbirdnest.com/addon/1204', now()), ('livetweeter', 'livetweeter', 'http://addons.songbirdnest.com/addon/1204', CURRENT_TIMESTAMP),
('maisha', 'Maisha', 'http://maisha.grango.org/', now()), ('maisha', 'Maisha', 'http://maisha.grango.org/', CURRENT_TIMESTAMP),
('mbpidgin','mbpidgin','', now()), ('mbpidgin','mbpidgin','', CURRENT_TIMESTAMP),
('Mobidentica', 'Mobidentica', 'http://www.substanceofcode.com/software/mobidentica/', now()), ('Mobidentica', 'Mobidentica', 'http://www.substanceofcode.com/software/mobidentica/', CURRENT_TIMESTAMP),
('moconica','Moconica','http://moconica.com/', now()), ('moconica','Moconica','http://moconica.com/', CURRENT_TIMESTAMP),
('mustard', 'mustard', 'http://mustard.macno.org', now()), ('mustard', 'mustard', 'http://mustard.macno.org', CURRENT_TIMESTAMP),
('nambu','Nambu','http://www.nambu.com/', now()), ('nambu','Nambu','http://www.nambu.com/', CURRENT_TIMESTAMP),
('peoplebrowsr', 'PeopleBrowsr', 'http://www.peoplebrowsr.com/', now()), ('peoplebrowsr', 'PeopleBrowsr', 'http://www.peoplebrowsr.com/', CURRENT_TIMESTAMP),
('Pikchur','Pikchur','http://www.pikchur.com/', now()), ('Pikchur','Pikchur','http://www.pikchur.com/', CURRENT_TIMESTAMP),
('Ping.fm','Ping.fm','http://ping.fm/', now()), ('Ping.fm','Ping.fm','http://ping.fm/', CURRENT_TIMESTAMP),
('pingvine','PingVine','http://pingvine.com/', now()), ('pingvine','PingVine','http://pingvine.com/', CURRENT_TIMESTAMP),
('pocketwit','PockeTwit','', now()), ('pocketwit','PockeTwit','', CURRENT_TIMESTAMP),
('posty','Posty','http://spreadingfunkyness.com/posty/', now()), ('posty','Posty','http://spreadingfunkyness.com/posty/', CURRENT_TIMESTAMP),
('qtwitter','qTwitter','http://qtwitter.ayoy.net/', now()), ('qtwitter','qTwitter','http://qtwitter.ayoy.net/', CURRENT_TIMESTAMP),
('qwit', 'Qwit', '', now()), ('qwit', 'Qwit', '', CURRENT_TIMESTAMP),
('royalewithcheese','Royale With Cheese','http://p.hellyeah.org/', now()), ('royalewithcheese','Royale With Cheese','http://p.hellyeah.org/', CURRENT_TIMESTAMP),
('rssdent','rssdent','http://github.com/zcopley/rssdent/tree/master', now()), ('rssdent','rssdent','http://github.com/zcopley/rssdent/tree/master', CURRENT_TIMESTAMP),
('rygh.no','rygh.no','http://rygh.no/', now()), ('rygh.no','rygh.no','http://rygh.no/', CURRENT_TIMESTAMP),
('ryghsms','ryghsms','http://sms.rygh.no/', now()), ('ryghsms','ryghsms','http://sms.rygh.no/', CURRENT_TIMESTAMP),
('smob','SMOB','http://smob.sioc-project.org/', now()), ('smob','SMOB','http://smob.sioc-project.org/', CURRENT_TIMESTAMP),
('socialoomphBfD4pMqz31', 'SocialOomph', 'http://www.socialoomph.com/', now()), ('socialoomphBfD4pMqz31', 'SocialOomph', 'http://www.socialoomph.com/', CURRENT_TIMESTAMP),
('spaz','Spaz','http://funkatron.com/spaz', now()), ('spaz','Spaz','http://funkatron.com/spaz', CURRENT_TIMESTAMP),
('StatusNet Desktop', 'StatusNet Desktop', 'http://status.net/desktop', now()), ('StatusNet Desktop', 'StatusNet Desktop', 'http://status.net/desktop', CURRENT_TIMESTAMP),
('StatusNet Mobile', 'StatusNet Mobile', 'http://status.net/mobile', now()), ('StatusNet Mobile', 'StatusNet Mobile', 'http://status.net/mobile', CURRENT_TIMESTAMP),
('StatusNet iPhone', 'iPhone', 'http://status.net/iphone', now()), ('StatusNet iPhone', 'iPhone', 'http://status.net/iphone', CURRENT_TIMESTAMP),
('StatusNet Android', 'Android', 'http://status.net/android', now()), ('StatusNet Android', 'Android', 'http://status.net/android', CURRENT_TIMESTAMP),
('StatusNet Blackberry', 'Blackberry', 'http://status.net/blackberry', now()), ('StatusNet Blackberry', 'Blackberry', 'http://status.net/blackberry', CURRENT_TIMESTAMP),
('tarpipe','tarpipe','http://tarpipe.com/', now()), ('tarpipe','tarpipe','http://tarpipe.com/', CURRENT_TIMESTAMP),
('tjunar','Tjunar','http://nederflash.nl/boek/titels/tjunar-air', now()), ('tjunar','Tjunar','http://nederflash.nl/boek/titels/tjunar-air', CURRENT_TIMESTAMP),
('tr.im','tr.im','http://tr.im/', now()), ('tr.im','tr.im','http://tr.im/', CURRENT_TIMESTAMP),
('triklepost', 'Tricklepost', 'http://github.com/zcopley/tricklepost/tree/master', now()), ('triklepost', 'Tricklepost', 'http://github.com/zcopley/tricklepost/tree/master', CURRENT_TIMESTAMP),
('tweenky','Tweenky','http://beta.tweenky.com/', now()), ('tweenky','Tweenky','http://beta.tweenky.com/', CURRENT_TIMESTAMP),
('TweetDeck', 'TweetDeck', 'http://www.tweetdeck.com/', now()), ('TweetDeck', 'TweetDeck', 'http://www.tweetdeck.com/', CURRENT_TIMESTAMP),
('twhirl','Twhirl','http://www.twhirl.org/', now()), ('twhirl','Twhirl','http://www.twhirl.org/', CURRENT_TIMESTAMP),
('twibble','twibble','http://www.twibble.de/', now()), ('twibble','twibble','http://www.twibble.de/', CURRENT_TIMESTAMP),
('Twidge','Twidge','http://software.complete.org/twidge', now()), ('Twidge','Twidge','http://software.complete.org/twidge', CURRENT_TIMESTAMP),
('twidge','Twidge','http://software.complete.org/twidge', now()), ('twidge','Twidge','http://software.complete.org/twidge', CURRENT_TIMESTAMP),
('twidroid','twidroid','http://www.twidroid.com/', now()), ('twidroid','twidroid','http://www.twidroid.com/', CURRENT_TIMESTAMP),
('twittelator','Twittelator','http://www.stone.com/iPhone/Twittelator/', now()), ('twittelator','Twittelator','http://www.stone.com/iPhone/Twittelator/', CURRENT_TIMESTAMP),
('twitter','Twitter','http://twitter.com/', now()), ('twitter','Twitter','http://twitter.com/', CURRENT_TIMESTAMP),
('twitterfeed','twitterfeed','http://twitterfeed.com/', now()), ('twitterfeed','twitterfeed','http://twitterfeed.com/', CURRENT_TIMESTAMP),
('twitterphoto','TwitterPhoto','http://richfish.org/twitterphoto/', now()), ('twitterphoto','TwitterPhoto','http://richfish.org/twitterphoto/', CURRENT_TIMESTAMP),
('twitterpm','Net::Twitter','http://search.cpan.org/dist/Net-Twitter/', now()), ('twitterpm','Net::Twitter','http://search.cpan.org/dist/Net-Twitter/', CURRENT_TIMESTAMP),
('twittertools','Twitter Tools','http://wordpress.org/extend/plugins/twitter-tools/', now()), ('twittertools','Twitter Tools','http://wordpress.org/extend/plugins/twitter-tools/', CURRENT_TIMESTAMP),
('twitux','Twitux','http://live.gnome.org/DanielMorales/Twitux', now()), ('twitux','Twitux','http://live.gnome.org/DanielMorales/Twitux', CURRENT_TIMESTAMP),
('twitvim','TwitVim','http://vim.sourceforge.net/scripts/script.php?script_id=2204', now()), ('twitvim','TwitVim','http://vim.sourceforge.net/scripts/script.php?script_id=2204', CURRENT_TIMESTAMP),
('Updating.Me','Updating.Me','http://updating.me/', now()), ('Updating.Me','Updating.Me','http://updating.me/', CURRENT_TIMESTAMP),
('urfastr','urfastr','http://urfastr.net/', now()), ('urfastr','urfastr','http://urfastr.net/', CURRENT_TIMESTAMP),
('yatca','Yatca','http://www.yatca.com/', now()), ('yatca','Yatca','http://www.yatca.com/', CURRENT_TIMESTAMP),
('rss.me', 'rss.me', 'http://rss.me/', now()); ('rss.me', 'rss.me', 'http://rss.me/', CURRENT_TIMESTAMP);

View File

@ -1,66 +1,66 @@
INSERT INTO sms_carrier INSERT INTO sms_carrier
(id, name, email_pattern, created) (id, name, email_pattern, created)
VALUES VALUES
(100056, '3 River Wireless', '%s@sms.3rivers.net', now()), (100056, '3 River Wireless', '%s@sms.3rivers.net', CURRENT_TIMESTAMP),
(100057, '7-11 Speakout', '%s@cingularme.com', now()), (100057, '7-11 Speakout', '%s@cingularme.com', CURRENT_TIMESTAMP),
(100058, 'Airtel (Karnataka, India)', '%s@airtelkk.com', now()), (100058, 'Airtel (Karnataka, India)', '%s@airtelkk.com', CURRENT_TIMESTAMP),
(100059, 'Alaska Communications Systems', '%s@msg.acsalaska.com', now()), (100059, 'Alaska Communications Systems', '%s@msg.acsalaska.com', CURRENT_TIMESTAMP),
(100060, 'Alltel Wireless', '%s@message.alltel.com', now()), (100060, 'Alltel Wireless', '%s@message.alltel.com', CURRENT_TIMESTAMP),
(100061, 'AT&T Wireless', '%s@txt.att.net', now()), (100061, 'AT&T Wireless', '%s@txt.att.net', CURRENT_TIMESTAMP),
(100062, 'Bell Mobility (Canada)', '%s@txt.bell.ca', now()), (100062, 'Bell Mobility (Canada)', '%s@txt.bell.ca', CURRENT_TIMESTAMP),
(100063, 'Boost Mobile', '%s@myboostmobile.com', now()), (100063, 'Boost Mobile', '%s@myboostmobile.com', CURRENT_TIMESTAMP),
(100064, 'Cellular One (Dobson)', '%s@mobile.celloneusa.com', now()), (100064, 'Cellular One (Dobson)', '%s@mobile.celloneusa.com', CURRENT_TIMESTAMP),
(100065, 'Cingular (Postpaid)', '%s@cingularme.com', now()), (100065, 'Cingular (Postpaid)', '%s@cingularme.com', CURRENT_TIMESTAMP),
(100066, 'Centennial Wireless', '%s@cwemail.com', now()), (100066, 'Centennial Wireless', '%s@cwemail.com', CURRENT_TIMESTAMP),
(100067, 'Cingular (GoPhone prepaid)', '%s@cingularme.com', now()), (100067, 'Cingular (GoPhone prepaid)', '%s@cingularme.com', CURRENT_TIMESTAMP),
(100068, 'Claro (Nicaragua)', '%s@ideasclaro-ca.com', now()), (100068, 'Claro (Nicaragua)', '%s@ideasclaro-ca.com', CURRENT_TIMESTAMP),
(100069, 'Comcel', '%s@comcel.com.co', now()), (100069, 'Comcel', '%s@comcel.com.co', CURRENT_TIMESTAMP),
(100070, 'Cricket', '%s@sms.mycricket.com', now()), (100070, 'Cricket', '%s@sms.mycricket.com', CURRENT_TIMESTAMP),
(100071, 'CTI', '%s@sms.ctimovil.com.ar', now()), (100071, 'CTI', '%s@sms.ctimovil.com.ar', CURRENT_TIMESTAMP),
(100072, 'Emtel (Mauritius)', '%s@emtelworld.net', now()), (100072, 'Emtel (Mauritius)', '%s@emtelworld.net', CURRENT_TIMESTAMP),
(100073, 'Fido (Canada)', '%s@fido.ca', now()), (100073, 'Fido (Canada)', '%s@fido.ca', CURRENT_TIMESTAMP),
(100074, 'General Communications Inc.', '%s@msg.gci.net', now()), (100074, 'General Communications Inc.', '%s@msg.gci.net', CURRENT_TIMESTAMP),
(100075, 'Globalstar', '%s@msg.globalstarusa.com', now()), (100075, 'Globalstar', '%s@msg.globalstarusa.com', CURRENT_TIMESTAMP),
(100076, 'Helio', '%s@myhelio.com', now()), (100076, 'Helio', '%s@myhelio.com', CURRENT_TIMESTAMP),
(100077, 'Illinois Valley Cellular', '%s@ivctext.com', now()), (100077, 'Illinois Valley Cellular', '%s@ivctext.com', CURRENT_TIMESTAMP),
(100078, 'i wireless', '%s.iws@iwspcs.net', now()), (100078, 'i wireless', '%s.iws@iwspcs.net', CURRENT_TIMESTAMP),
(100079, 'Meteor (Ireland)', '%s@sms.mymeteor.ie', now()), (100079, 'Meteor (Ireland)', '%s@sms.mymeteor.ie', CURRENT_TIMESTAMP),
(100080, 'Mero Mobile (Nepal)', '%s@sms.spicenepal.com', now()), (100080, 'Mero Mobile (Nepal)', '%s@sms.spicenepal.com', CURRENT_TIMESTAMP),
(100081, 'MetroPCS', '%s@mymetropcs.com', now()), (100081, 'MetroPCS', '%s@mymetropcs.com', CURRENT_TIMESTAMP),
(100082, 'Movicom', '%s@movimensaje.com.ar', now()), (100082, 'Movicom', '%s@movimensaje.com.ar', CURRENT_TIMESTAMP),
(100083, 'Mobitel (Sri Lanka)', '%s@sms.mobitel.lk', now()), (100083, 'Mobitel (Sri Lanka)', '%s@sms.mobitel.lk', CURRENT_TIMESTAMP),
(100084, 'Movistar (Colombia)', '%s@movistar.com.co', now()), (100084, 'Movistar (Colombia)', '%s@movistar.com.co', CURRENT_TIMESTAMP),
(100085, 'MTN (South Africa)', '%s@sms.co.za', now()), (100085, 'MTN (South Africa)', '%s@sms.co.za', CURRENT_TIMESTAMP),
(100086, 'MTS (Canada)', '%s@text.mtsmobility.com', now()), (100086, 'MTS (Canada)', '%s@text.mtsmobility.com', CURRENT_TIMESTAMP),
(100087, 'Nextel (Argentina)', '%s@nextel.net.ar', now()), (100087, 'Nextel (Argentina)', '%s@nextel.net.ar', CURRENT_TIMESTAMP),
(100088, 'Orange (Poland)', '%s@orange.pl', now()), (100088, 'Orange (Poland)', '%s@orange.pl', CURRENT_TIMESTAMP),
(100089, 'Personal (Argentina)', '%s@personal-net.com.ar', now()), (100089, 'Personal (Argentina)', '%s@personal-net.com.ar', CURRENT_TIMESTAMP),
(100090, 'Plus GSM (Poland)', '%s@text.plusgsm.pl', now()), (100090, 'Plus GSM (Poland)', '%s@text.plusgsm.pl', CURRENT_TIMESTAMP),
(100091, 'President''s Choice (Canada)', '%s@txt.bell.ca', now()), (100091, 'President''s Choice (Canada)', '%s@txt.bell.ca', CURRENT_TIMESTAMP),
(100092, 'Qwest', '%s@qwestmp.com', now()), (100092, 'Qwest', '%s@qwestmp.com', CURRENT_TIMESTAMP),
(100093, 'Rogers (Canada)', '%s@pcs.rogers.com', now()), (100093, 'Rogers (Canada)', '%s@pcs.rogers.com', CURRENT_TIMESTAMP),
(100094, 'Sasktel (Canada)', '%s@sms.sasktel.com', now()), (100094, 'Sasktel (Canada)', '%s@sms.sasktel.com', CURRENT_TIMESTAMP),
(100095, 'Setar Mobile email (Aruba)', '%s@mas.aw', now()), (100095, 'Setar Mobile email (Aruba)', '%s@mas.aw', CURRENT_TIMESTAMP),
(100096, 'Solo Mobile', '%s@txt.bell.ca', now()), (100096, 'Solo Mobile', '%s@txt.bell.ca', CURRENT_TIMESTAMP),
(100097, 'Sprint (PCS)', '%s@messaging.sprintpcs.com', now()), (100097, 'Sprint (PCS)', '%s@messaging.sprintpcs.com', CURRENT_TIMESTAMP),
(100098, 'Sprint (Nextel)', '%s@page.nextel.com', now()), (100098, 'Sprint (Nextel)', '%s@page.nextel.com', CURRENT_TIMESTAMP),
(100099, 'Suncom', '%s@tms.suncom.com', now()), (100099, 'Suncom', '%s@tms.suncom.com', CURRENT_TIMESTAMP),
(100100, 'T-Mobile', '%s@tmomail.net', now()), (100100, 'T-Mobile', '%s@tmomail.net', CURRENT_TIMESTAMP),
(100101, 'T-Mobile (Austria)', '%s@sms.t-mobile.at', now()), (100101, 'T-Mobile (Austria)', '%s@sms.t-mobile.at', CURRENT_TIMESTAMP),
(100102, 'Telus Mobility (Canada)', '%s@msg.telus.com', now()), (100102, 'Telus Mobility (Canada)', '%s@msg.telus.com', CURRENT_TIMESTAMP),
(100103, 'Thumb Cellular', '%s@sms.thumbcellular.com', now()), (100103, 'Thumb Cellular', '%s@sms.thumbcellular.com', CURRENT_TIMESTAMP),
(100104, 'Tigo (Formerly Ola)', '%s@sms.tigo.com.co', now()), (100104, 'Tigo (Formerly Ola)', '%s@sms.tigo.com.co', CURRENT_TIMESTAMP),
(100105, 'Unicel', '%s@utext.com', now()), (100105, 'Unicel', '%s@utext.com', CURRENT_TIMESTAMP),
(100106, 'US Cellular', '%s@email.uscc.net', now()), (100106, 'US Cellular', '%s@email.uscc.net', CURRENT_TIMESTAMP),
(100107, 'Verizon', '%s@vtext.com', now()), (100107, 'Verizon', '%s@vtext.com', CURRENT_TIMESTAMP),
(100108, 'Virgin Mobile (Canada)', '%s@vmobile.ca', now()), (100108, 'Virgin Mobile (Canada)', '%s@vmobile.ca', CURRENT_TIMESTAMP),
(100109, 'Virgin Mobile (USA)', '%s@vmobl.com', now()), (100109, 'Virgin Mobile (USA)', '%s@vmobl.com', CURRENT_TIMESTAMP),
(100110, 'YCC', '%s@sms.ycc.ru', now()), (100110, 'YCC', '%s@sms.ycc.ru', CURRENT_TIMESTAMP),
(100111, 'Orange (UK)', '%s@orange.net', now()), (100111, 'Orange (UK)', '%s@orange.net', CURRENT_TIMESTAMP),
(100112, 'Cincinnati Bell Wireless', '%s@gocbw.com', now()), (100112, 'Cincinnati Bell Wireless', '%s@gocbw.com', CURRENT_TIMESTAMP),
(100113, 'T-Mobile Germany', '%s@t-mobile-sms.de', now()), (100113, 'T-Mobile Germany', '%s@t-mobile-sms.de', CURRENT_TIMESTAMP),
(100114, 'Vodafone Germany', '%s@vodafone-sms.de', now()), (100114, 'Vodafone Germany', '%s@vodafone-sms.de', CURRENT_TIMESTAMP),
(100115, 'E-Plus', '%s@smsmail.eplus.de', now()), (100115, 'E-Plus', '%s@smsmail.eplus.de', CURRENT_TIMESTAMP),
(100116, 'Cellular South', '%s@csouth1.com', now()), (100116, 'Cellular South', '%s@csouth1.com', CURRENT_TIMESTAMP),
(100117, 'ChinaMobile (139)', '%s@139.com', now()), (100117, 'ChinaMobile (139)', '%s@139.com', CURRENT_TIMESTAMP),
(100118, 'Dialog Axiata', '%s@dialog.lk', now()); (100118, 'Dialog Axiata', '%s@dialog.lk', CURRENT_TIMESTAMP);

View File

@ -89,11 +89,11 @@ class ClearflagAction extends ProfileFormAction
$ufp = new User_flag_profile(); $ufp = new User_flag_profile();
$result = $ufp->query('UPDATE user_flag_profile ' . $result = $ufp->query('UPDATE user_flag_profile ' .
'SET cleared = now() ' . 'SET cleared = CURRENT_TIMESTAMP ' .
'WHERE cleared is null ' . 'WHERE cleared IS NULL ' .
'AND profile_id = ' . $this->profile->id); 'AND profile_id = ' . $this->profile->id);
if ($result == false) { if ($result === false) {
// TRANS: Server exception given when flags could not be cleared. // TRANS: Server exception given when flags could not be cleared.
// TRANS: %s is a profile nickname. // TRANS: %s is a profile nickname.
$msg = sprintf( $msg = sprintf(