Skip to content

Instantly share code, notes, and snippets.

@jahvi
Created November 1, 2015 12:12
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save jahvi/83dbea50d82ec47f48eb to your computer and use it in GitHub Desktop.
Save jahvi/83dbea50d82ec47f48eb to your computer and use it in GitHub Desktop.
SQL install script
<?php
/* @var $installer Mage_Core_Model_Resource_Setup */
$installer = $this;
$installer->startSetup();
$installer->run("
-- DROP TABLE IF EXISTS {$this->getTable('cms_block')};
CREATE TABLE {$this->getTable('cms_block')} (
`block_id` smallint(6) NOT NULL auto_increment,
`title` varchar(255) NOT NULL default '',
`identifier` varchar(255) NOT NULL default '',
`content` text,
`creation_time` datetime default NULL,
`update_time` datetime default NULL,
`is_active` tinyint(1) NOT NULL default '1'
PRIMARY KEY (`block_id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COMMENT='CMS Blocks';
");
$installer->endSetup();
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment