Esempio n. 1
0
def create_db_v_2(conn, curs, ver):
	if ver >= 2:
		return ver
	ver = 2
	create_sections_table(curs)
	create_sections_index(curs)
	create_class_details_table(curs)
	create_class_details_index(curs)
	create_feat_types_table(curs)
	create_feat_types_index(curs)
	create_feat_type_descriptions_table(curs)
	create_feat_type_descriptions_index(curs)
	create_skill_attributes_table(curs)
	create_skill_attributes_index(curs)
	create_ability_types_table(curs)
	create_ability_types_index(curs)
	create_affliction_details_table(curs)
	create_affliction_details_index(curs)
	create_animal_companion_details_table(curs)
	create_animal_companion_details_index(curs)
	create_vehicle_details_table(curs)
	create_vehicle_details_index(curs)
	create_settlement_details_table(curs)
	create_settlement_details_index(curs)
	create_creature_details_table(curs)
	create_creature_details_index(curs)
	create_creature_spells_table(curs)
	create_creature_spells_index(curs)
	create_trap_details_table(curs)
	create_trap_details_index(curs)
	create_item_details_table(curs)
	create_item_details_index(curs)
	create_link_details_table(curs)
	create_link_details_index(curs)
	create_section_index_table(curs)
	create_section_index_index(curs)
	create_section_sort_table(curs)
	create_section_sort_index(curs)
	create_spell_details_table(curs)
	create_spell_details_index(curs)
	create_spell_lists_table(curs)
	create_spell_lists_index(curs)
	create_spell_descriptors_table(curs)
	create_spell_descriptors_index(curs)
	create_spell_components_table(curs)
	create_spell_components_index(curs)
	create_spell_effects_table(curs)
	create_spell_effects_index(curs)
	create_url_references_table(curs)
	create_url_references_index(curs)
	section_insert_top(curs)
	set_version(curs, ver)
	conn.commit()
	return ver
Esempio n. 2
0
def create_db_v_2(conn, curs, ver):
    if ver >= 2:
        return ver
    ver = 2
    create_sections_table(curs)
    create_sections_index(curs)
    create_class_details_table(curs)
    create_class_details_index(curs)
    create_feat_types_table(curs)
    create_feat_types_index(curs)
    create_feat_type_descriptions_table(curs)
    create_feat_type_descriptions_index(curs)
    create_skill_attributes_table(curs)
    create_skill_attributes_index(curs)
    create_ability_types_table(curs)
    create_ability_types_index(curs)
    create_affliction_details_table(curs)
    create_affliction_details_index(curs)
    create_animal_companion_details_table(curs)
    create_animal_companion_details_index(curs)
    create_vehicle_details_table(curs)
    create_vehicle_details_index(curs)
    create_settlement_details_table(curs)
    create_settlement_details_index(curs)
    create_creature_details_table(curs)
    create_creature_details_index(curs)
    create_creature_spells_table(curs)
    create_creature_spells_index(curs)
    create_trap_details_table(curs)
    create_trap_details_index(curs)
    create_item_details_table(curs)
    create_item_details_index(curs)
    create_link_details_table(curs)
    create_link_details_index(curs)
    create_section_index_table(curs)
    create_section_index_index(curs)
    create_spell_details_table(curs)
    create_spell_details_index(curs)
    create_spell_lists_table(curs)
    create_spell_lists_index(curs)
    create_spell_descriptors_table(curs)
    create_spell_descriptors_index(curs)
    create_spell_components_table(curs)
    create_spell_components_index(curs)
    create_spell_effects_table(curs)
    create_spell_effects_index(curs)
    section_insert_top(curs)
    set_version(curs, ver)
    conn.commit()
    return ver
Esempio n. 3
0
def create_db_v_2(conn, curs, ver, source=None):
    if ver >= 2:
        return ver
    ver = 2
    create_sections_table(curs)
    create_sections_index(curs)
    create_class_details_table(curs)
    create_class_details_index(curs)
    create_feat_types_table(curs)
    create_feat_types_index(curs)
    create_feat_type_descriptions_table(curs)
    create_feat_type_descriptions_index(curs)
    create_skill_attributes_table(curs)
    create_skill_attributes_index(curs)
    create_ability_types_table(curs)
    create_ability_types_index(curs)
    create_affliction_details_table(curs)
    create_affliction_details_index(curs)
    create_animal_companion_details_table(curs)
    create_animal_companion_details_index(curs)
    create_vehicle_details_table(curs)
    create_vehicle_details_index(curs)
    create_army_details_table(curs)
    create_army_details_index(curs)
    create_kingdom_resource_details_table(curs)
    create_kingdom_resource_details_index(curs)
    create_resource_details_table(curs)
    create_resource_details_index(curs)
    create_settlement_details_table(curs)
    create_settlement_details_index(curs)
    create_creature_details_table(curs)
    create_creature_details_index(curs)
    create_creature_spells_table(curs)
    create_creature_spells_index(curs)
    create_trap_details_table(curs)
    create_trap_details_index(curs)
    create_haunt_details_table(curs)
    create_haunt_details_index(curs)
    create_item_details_table(curs)
    create_item_details_index(curs)
    create_item_misc_table(curs)
    create_item_misc_index(curs)
    create_link_details_table(curs)
    create_link_details_index(curs)
    create_section_index_table(curs)
    create_section_index_index(curs)
    create_spell_details_table(curs)
    create_spell_details_index(curs)
    create_spell_lists_table(curs)
    create_spell_lists_index(curs)
    create_spell_subschools_table(curs)
    create_spell_subschools_index(curs)
    create_spell_descriptors_table(curs)
    create_spell_descriptors_index(curs)
    create_spell_components_table(curs)
    create_spell_components_index(curs)
    create_spell_effects_table(curs)
    create_spell_effects_index(curs)
    create_url_references_table(curs)
    create_url_references_index(curs)
    if source:
        section_insert_top(curs, source)
    set_version(curs, ver)
    conn.commit()
    return ver
Esempio n. 4
0
def create_db_v_2(conn, curs, ver, source=None):
	if ver >= 2:
		return ver
	ver = 2
	create_sections_table(curs)
	create_sections_index(curs)
	create_class_details_table(curs)
	create_class_details_index(curs)
	create_feat_types_table(curs)
	create_feat_types_index(curs)
	create_feat_type_descriptions_table(curs)
	create_feat_type_descriptions_index(curs)
	create_skill_attributes_table(curs)
	create_skill_attributes_index(curs)
	create_ability_types_table(curs)
	create_ability_types_index(curs)
	create_affliction_details_table(curs)
	create_affliction_details_index(curs)
	create_animal_companion_details_table(curs)
	create_animal_companion_details_index(curs)
	create_vehicle_details_table(curs)
	create_vehicle_details_index(curs)
	create_army_details_table(curs)
	create_army_details_index(curs)
	create_kingdom_resource_details_table(curs)
	create_kingdom_resource_details_index(curs)
	create_resource_details_table(curs)
	create_resource_details_index(curs)
	create_settlement_details_table(curs)
	create_settlement_details_index(curs)
	create_creature_details_table(curs)
	create_creature_details_index(curs)
	create_creature_spells_table(curs)
	create_creature_spells_index(curs)
	create_trap_details_table(curs)
	create_trap_details_index(curs)
	create_haunt_details_table(curs)
	create_haunt_details_index(curs)
	create_item_details_table(curs)
	create_item_details_index(curs)
	create_item_misc_table(curs)
	create_item_misc_index(curs)
	create_link_details_table(curs)
	create_link_details_index(curs)
	create_mythic_spell_details_table(curs)
	create_mythic_spell_details_index(curs)
	create_section_index_table(curs)
	create_section_index_index(curs)
	create_spell_details_table(curs)
	create_spell_details_index(curs)
	create_spell_lists_table(curs)
	create_spell_lists_index(curs)
	create_spell_subschools_table(curs)
	create_spell_subschools_index(curs)
	create_spell_descriptors_table(curs)
	create_spell_descriptors_index(curs)
	create_spell_components_table(curs)
	create_spell_components_index(curs)
	create_spell_effects_table(curs)
	create_spell_effects_index(curs)
	create_url_references_table(curs)
	create_url_references_index(curs)
	if source:
		section_insert_top(curs, source)
	set_version(curs, ver)
	conn.commit()
	return ver