Alright, this is pretty embarrassing. Setup scripts are supposed to be no problem, but I am having an awful time executing my install script.
config.xml
<config>
<modules>
<Redacted_Tsc>
<version>1.0.0</version>
</Redacted_Tsc>
</modules>
<global>
<resources>
<tsc_setup>
<setup>
<module>Redacted_Tsc</module>
</setup>
<connection>
<use>core_setup</use>
</connection>
</tsc_setup>
</resources>
</global>
</config>
mysql4-install-1.0.0.php
$installer = $this;
$installer->startSetup();
$tscRoot = Mage::getModel('catalog/category')
->setName('Redacted TSC')
->setUrlKey('tsc')
->setIsActive(1)
->setIsAnchor(0)
->save()
;
$site = Mage::getModel('core/website')->getCollection()
->addFieldToFilter('code', 'redacted')
->getFirstItem()
;
$storeGroup = Mage::getModel('core/store_group')
->setWebsiteId($site->getId())
->setName('TSC')
->setRootCategoryId($tscRoot->getId())
->save()
;
$store = Mage::getModel('core/store')
->setWebsiteId($site->getId())
->setGroupId($storeGroup->getId())
->setName('TSC Store')
->setIsActive(0)
->save()
;
$installer->endSetup();
Couple of notes about the installer: I decided that it would be nice to have automated site/store group/store/root category creation so that I can be certain that the developed product is the same as what's in production. Figured an installer would be a handy way to go. If I'm crazy, let me know!
Redacted_Tsc.xml
<config>
<modules>
<Redacted_Tsc>
<active>true</active>
<codePool>local></codePool>
</Redacted_Tsc>
</modules>
</config>
Checklist:
- There's no entry in the
core_resourcetable - Caches are 100% off
local>when I neededlocal. It's odd, the module was showing up properly in the admin panel (under config/advanced/advanced). Benmarks' answer below is the correct one.