[pLog-svn] Do we allowed blogCategory = null in blog Info?

Oscar Renalias oscar at renalias.net
Tue Apr 4 06:03:15 GMT 2006


Can we just set it to zero? Either that, or we modify the db schema to
allow nulls.

I don't think we should force people to select a blog category, it
just doesn't make any sense for one or two person blogs.

Oscar

On 4/4/06, Mark Wu <markplace at gmail.com> wrote:
>
> BTW, the same problem in GlobalArticleCategory
>
> in the DB design, we do not allow it null...
>
> But, in our article.class.php, seems we allow it as null
>
> Mark
>
>
>  ________________________________
>  From: plog-svn-bounces at devel.lifetype.net
> [mailto:plog-svn-bounces at devel.lifetype.net] On Behalf Of
> Mark Wu
> Sent: Tuesday, April 04, 2006 11:21 AM
> To: plog-svn at devel.lifetype.net
> Subject: [pLog-svn] Do we allowed blogCategory = null in blog Info?
>
>
>
> Hi All:
>
> Do you think we need to allow blogCategory = null in blogInfo object?
>
> I plan to modify the wizard and registeration process:
>
> 1. I will create deafult BlogCategory and default GlobalArticleCategory in
> wizard.php
> 2. Assign the deafult BlogCategory  to the blog that user created in wizard
> 3. Assign the default GlobalArticleCategory  to default article
> 4. Add a BlogCategory selector in registeration process, and user and select
> their own
>
> The, I think I can bsed on this to modify our summary, to let user see the
> folloing information
>
> 1. RecentPost based on All, BlogCategory and GlobalArticleCategory
> 2. MostReadedPost based on All, BlogCategory and GlobalArticleCategory
> 3. ...blahblahblah
>
> According to the proposal, I suggest we change the blog_category_id to non
> null .... and maybe we also need to modify the upgrade process.
>
> Of course, we still can keep it as allow null.  :D
>
> Mark
>
>
> _______________________________________________
> pLog-svn mailing list
> pLog-svn at devel.lifetype.net
> http://devel.lifetype.net/mailman/listinfo/plog-svn
>
>


More information about the pLog-svn mailing list