[sr-dev] domain attributes

Jan Janak jan at ryngle.com
Fri Jul 3 15:49:12 CEST 2009


On Thu, Jul 2, 2009 at 5:09 PM, Juha Heinanen<jh at tutpro.com> wrote:
> Jan Janak writes:
>
>  > mysql> describe domain_attrs;
>  > +-------+------------------+------+-----+---------+-------+
>  > | Field | Type             | Null | Key | Default | Extra |
>  > +-------+------------------+------+-----+---------+-------+
>  > | did   | varchar(64)      | YES  | MUL | NULL    |       |
>  > | name  | varchar(32)      | NO   |     | NULL    |       |
>  > | type  | int(11)          | NO   |     | 0       |       |
>  > | value | varchar(255)     | YES  |     | NULL    |       |
>  > | flags | int(10) unsigned | NO   |     | 0       |       |
>  > +-------+------------------+------+-----+---------+-------+
>
> if domain_attrs define attributes of domains, how can did be NULL?

This is a backward compatibility hack which allows to use the domain
table with the old domain module. In that case you just write all
domain names into the domain table and let did be NULL. In that case
they will all belong to one virtual domain.

One can enable/disable the use of domain attributes, in fact they are
disabled by default with load_domain_attrs domain module parameter.

  Jan.



More information about the sr-dev mailing list