Custom block - Install with database records?

Permalink
I have created a db.xml file for my block that uses 3 tables.
Is there a method or event that I can use to import data into the tables when the block is installed?

Thanks

 
JohntheFish replied on at Permalink Best Answer Reply
JohntheFish
If you implement it in a package, you can use the package's install() method to run a series of writes to the data.

Bare in mind that a block's primary table is tied to the bID, which changes whenever a block is edited.
d0nkeykong replied on at Permalink Reply
Packages look like the way to go. It would be nice for Blocks to have the same hooks but you can't have everything.

Thanks very much