Welcome Guest! To enable all features please Login or Register.

Notification

Icon
Error

ContentCategory schema
Hrvoje_86
#1 Posted : Thursday, February 02, 2012 3:55:23 PM(UTC)
Rank: Advanced Member
Groups: Registered

Joined: 1/28/2011(UTC)
Posts: 157
Location: Croatia
Hi,

I would like to change the source code so that when i create a new site the __ContentCategory has an id coulmn
with auto increment.

Where is the code that creates the ContentCategory table?

jifeng
#2 Posted : Friday, February 03, 2012 2:53:18 AM(UTC)
Rank: Administration
Groups: Administrators, Registered

Joined: 9/3/2009(UTC)
Posts: 1,555
Location: Xiamen China
Kooboo.CMS.Content.Persistence.SqlServer.SchemaManager

But it has the id with auto increment field already.
Regards,

Jifeng Huang

Kooboo Team

Microsoft ASP.NET MVP
1 user thanked jifeng for this useful post.
Hrvoje_86 on 2/3/2012(UTC)
Hrvoje_86
#3 Posted : Friday, February 03, 2012 10:13:18 AM(UTC)
Rank: Advanced Member
Groups: Registered

Joined: 1/28/2011(UTC)
Posts: 157
Location: Croatia
_ContentCategory doesn't have the id column at least not in my version.

Code:

IF NOT EXISTS (SELECT * FROM INFORMATION_SCHEMA.TABLES WHERE TABLE_NAME = '{0}')
    CREATE TABLE [{0}] (	
	    UUID nvarchar(36) NOT NULL,
	    CategoryFolder nvarchar(256),
	    CategoryUUID nvarchar(36)


That is the code i was looking for thanx.
Users browsing this topic
Guest (2)
Forum Jump  
You cannot post new topics in this forum.
You cannot reply to topics in this forum.
You cannot delete your posts in this forum.
You cannot edit your posts in this forum.
You cannot create polls in this forum.
You cannot vote in polls in this forum.

Powered by YAF 1.9.5.5 | YAF © 2003-2011, Yet Another Forum.NET
This page was generated in 0.220 seconds.