function block_install() db_sqlapi_install('block') db_query("INSERT INTO {blocks} (module,delta,theme,status,pages) VALUES('user', 0, 'garland', 1, '');") db_query("INSERT INTO {blocks} (module,delta,theme,status,pages) VALUES('user', 1, 'garland', 1, '');") end function block_schema() return { ['blocks'] = { ['fields'] = { ['bid'] = {['type'] = 'serial', ['not null'] = true}, ['module'] = {['type'] = 'varchar', ['length'] = 64, ['not null'] = true, ['default'] = ''}, ['delta'] = {['type'] = 'varchar', ['length'] = 32, ['not null'] = true, ['default'] = 0}, ['theme'] = {['type'] = 'varchar', ['length'] = 255, ['not null'] = true, ['default'] = ''}, ['status'] = {['type'] = 'int', ['not null'] = true, ['default'] = 0, ['size'] = 'tiny'}, ['weight'] = {['type'] = 'int', ['not null'] = true, ['default'] = 0, ['size'] = 'tiny'}, ['region'] = {['type'] = 'varchar', ['length'] = 64, ['not null'] = true, ['default'] = 'left'}, ['custom'] = {['type'] = 'int', ['not null'] = true, ['default'] = 0, ['size'] = 'tiny'}, ['throttle'] = {['type'] = 'int', ['not null'] = true, ['default'] = 0, ['size'] = 'tiny'}, ['visibility'] = {['type'] = 'int', ['not null'] = true, ['default'] = 0, ['size'] = 'tiny'}, ['pages'] = {['type'] = 'text', ['not null'] = true}, ['title'] = {['type'] = 'varchar', ['length'] = 64, ['not null'] = true, ['default'] = ''}}, ['primary key'] = {'bid'}}, ['blocks_roles'] = { ['fields'] = { ['module'] = {['type'] = 'varchar', ['length'] = 64, ['not null'] = true}, ['delta'] = {['type'] = 'varchar', ['length'] = 32, ['not null'] = true}, ['rid'] = {['type'] = 'int', ['unsigned'] = true, ['not null'] = true}}, ['primary key'] = {'module', 'delta', 'rid'}}, ['boxes'] = { ['fields'] = { ['bid'] = {['type'] = 'serial', ['not null'] = true}, ['body'] = {['type'] = 'text', ['not null'] = '', ['size'] = 'big'}, ['info'] = {['type'] = 'varchar', ['length'] = 128, ['not null'] = true, ['default'] = ''}, ['format'] = {['type'] = 'int', ['size'] = 'small', ['not null'] = true, ['default'] = 0}}, ['unique keys'] = { ['info'] = {'info'}}, ['primary key'] = {'bid'}}} end