summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorEvan Prodromou <evan@controlyourself.ca>2009-02-12 14:16:58 -0500
committerEvan Prodromou <evan@controlyourself.ca>2009-02-12 14:16:58 -0500
commite686ef042b0f4b3cd8243fa9536092039798837b (patch)
tree0633d91aca9747e310c51aace1af6fa479fe2ccf
parent654a91cc1c99dcb556bce240e03dbfa1689d0d70 (diff)
Make ID of SMS Carrier not autoincrement
Since we're doing fixed IDs for SMS Carrier, we change the definition so it's not auto increment.
-rwxr-xr-xclasses/laconica.ini3
-rw-r--r--db/laconica.sql2
2 files changed, 3 insertions, 2 deletions
diff --git a/classes/laconica.ini b/classes/laconica.ini
index 255122a97..19267f268 100755
--- a/classes/laconica.ini
+++ b/classes/laconica.ini
@@ -292,7 +292,8 @@ created = 142
modified = 384
[sms_carrier__keys]
-id = N
+id = K
+name = U
[subscription]
subscriber = 129
diff --git a/db/laconica.sql b/db/laconica.sql
index 16f482134..15f03a978 100644
--- a/db/laconica.sql
+++ b/db/laconica.sql
@@ -31,7 +31,7 @@ create table avatar (
) ENGINE=InnoDB CHARACTER SET utf8 COLLATE utf8_bin;
create table sms_carrier (
- id integer auto_increment primary key comment 'primary key for SMS carrier',
+ id integer primary key comment 'primary key for SMS carrier',
name varchar(64) unique key comment 'name of the carrier',
email_pattern varchar(255) not null comment 'sprintf pattern for making an email address from a phone number',
created datetime not null comment 'date this record was created',