share and manage lists between multiple people
Log | Files | Refs

commit 2280a1ec75eae826f125c473b00dfd97e43b7882
parent ced3d5c9ec154a78133fffc968fe7d47f969058d
Author: kyle <>
Date:   Fri,  8 Jan 2016 23:24:08 -0700

sl: store phone numbers as strings

- randomizing the test suite phone numbers led to an embarrassing situation
  - phone numbers that started with '0' would have that zero removed by sqlite
- we would then send back the phone number without the 0, which isn't right
- fix this by storing the phone number as a string

Mserver/sl | 2+-
1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/server/sl b/server/sl @@ -654,7 +654,7 @@ sub create_tables { $db_handle->do(qq{create table if not exists devices( device_id text not null primary key, - phone_num int not null, + phone_num text not null, os text, push_token text, first_seen int not null)