PostgreSQL: Put a default on confirm_address.address_extra to mimic mysql's behaviour when a not-null field is not set in a new record
darcs-hash:20080929060227-f6e2c-5996ad74cb5c89052417e36634a22b6e219bd92d.gz
This commit is contained in:
parent
245a75f141
commit
0d4d0c7911
@ -218,7 +218,7 @@ create table confirm_address (
|
|||||||
code varchar(32) not null primary key /* comment 'good random code' */,
|
code varchar(32) not null primary key /* comment 'good random code' */,
|
||||||
user_id integer not null /* comment 'user who requested confirmation' */ references "user" (id),
|
user_id integer not null /* comment 'user who requested confirmation' */ references "user" (id),
|
||||||
address varchar(255) not null /* comment 'address (email, Jabber, SMS, etc.)' */,
|
address varchar(255) not null /* comment 'address (email, Jabber, SMS, etc.)' */,
|
||||||
address_extra varchar(255) not null /* comment 'carrier ID, for SMS' */,
|
address_extra varchar(255) not null default '' /* comment 'carrier ID, for SMS' */,
|
||||||
address_type varchar(8) not null /* comment 'address type ("email", "jabber", "sms")' */,
|
address_type varchar(8) not null /* comment 'address type ("email", "jabber", "sms")' */,
|
||||||
claimed timestamp /* comment 'date this was claimed for queueing' */,
|
claimed timestamp /* comment 'date this was claimed for queueing' */,
|
||||||
sent timestamp /* comment 'date this was sent for queueing' */,
|
sent timestamp /* comment 'date this was sent for queueing' */,
|
||||||
|
Loading…
Reference in New Issue
Block a user