function taxonomy_install() db_sqlapi_install('taxonomy') end function taxonomy_schema() return { ['term_data'] = { ['fields'] = { ['tid'] = {['type'] = 'serial', ['unsigned'] = true, ['not null'] = true}, ['vid'] = {['type'] = 'int', ['unsigned'] = true, ['not null'] = true, ['default'] = 0}, ['name'] = {['type'] = 'varchar', ['length'] = 255, ['not null'] = true, ['default'] = ''}, ['description'] = {['type'] = 'text', ['not null'] = '', ['size'] = 'big'}, ['weight'] = {['type'] = 'int', ['not null'] = true, ['default'] = 0, ['size'] = 'tiny'}}, ['primary key'] = {'tid'}, ['indexes'] = { ['vid'] = {'vid'}}}, ['term_hierarchy'] = { ['fields'] = { ['tid'] = {['type'] = 'int', ['unsigned'] = true, ['not null'] = true, ['default'] = 0}, ['parent'] = {['type'] = 'int', ['unsigned'] = true, ['not null'] = true, ['default'] = 0}}, ['indexes'] = { ['parent'] = {'parent'}, ['tid'] = {'tid'}}, ['primary key'] = {'tid', 'parent'}}, ['term_node'] = { ['fields'] = { ['nid'] = {['type'] = 'int', ['unsigned'] = true, ['not null'] = true, ['default'] = 0}, ['vid'] = {['type'] = 'int', ['unsigned'] = true, ['not null'] = true, ['default'] = 0}, ['tid'] = {['type'] = 'int', ['unsigned'] = true, ['not null'] = true, ['default'] = 0}}, ['indexes'] = { ['nid'] = {'nid'}, ['tid'] = {'tid'}, ['vid'] = {'vid'}}, ['primary key'] = {'vid', 'tid', 'nid'}}, ['term_relation'] = { ['fields'] = { ['trid'] = {['type'] = 'serial', ['not null'] = true}, ['tid1'] = {['type'] = 'int', ['unsigned'] = true, ['not null'] = true, ['default'] = 0}, ['tid2'] = {['type'] = 'int', ['unsigned'] = true, ['not null'] = true, ['default'] = 0}}, ['indexes'] = { ['tid1'] = {'tid1'}, ['tid2'] = {'tid2'}}, ['primary key'] = {'trid'}}, ['term_synonym'] = { ['fields'] = { ['tsid'] = {['type'] = 'serial', ['not null'] = true}, ['tid'] = {['type'] = 'int', ['unsigned'] = true, ['not null'] = true, ['default'] = 0}, ['name'] = {['type'] = 'varchar', ['length'] = 255, ['not null'] = true, ['default'] = ''}}, ['indexes'] = { ['name'] = {{'name', 3}}, ['tid'] = {'tid'}}, ['primary key'] = {'tsid'}}, ['vocabulary'] = { ['fields'] = { ['vid'] = {['type'] = 'serial', ['unsigned'] = true, ['not null'] = true}, ['name'] = {['type'] = 'varchar', ['length'] = 255, ['not null'] = true, ['default'] = ''}, ['description'] = {['type'] = 'text', ['not null'] = '', ['size'] = 'big'}, ['help'] = {['type'] = 'varchar', ['length'] = 255, ['not null'] = true, ['default'] = ''}, ['relations'] = {['type'] = 'int', ['unsigned'] = true, ['not null'] = true, ['default'] = 0, ['size'] = 'tiny'}, ['hierarchy'] = {['type'] = 'int', ['unsigned'] = true, ['not null'] = true, ['default'] = 0, ['size'] = 'tiny'}, ['multiple'] = {['type'] = 'int', ['unsigned'] = true, ['not null'] = true, ['default'] = 0, ['size'] = 'tiny'}, ['required'] = {['type'] = 'int', ['unsigned'] = true, ['not null'] = true, ['default'] = 0, ['size'] = 'tiny'}, ['tags'] = {['type'] = 'int', ['unsigned'] = true, ['not null'] = true, ['default'] = 0, ['size'] = 'tiny'}, ['module'] = {['type'] = 'varchar', ['length'] = 255, ['not null'] = true, ['default'] = ''}, ['weight'] = {['type'] = 'int', ['not null'] = true, ['default'] = 0, ['size'] = 'tiny'}}, ['primary key'] = {'vid'}}, ['vocabulary_node_types'] = { ['fields'] = { ['vid'] = {['type'] = 'int', ['unsigned'] = true, ['not null'] = true, ['default'] = 0}, ['type'] = {['type'] = 'varchar', ['length'] = 32, ['not null'] = true, ['default'] = ''}}, ['primary key'] = {'vid','type'}}} end