Created
September 15, 2013 15:18
-
-
Save ryaan-anthony/6571690 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <?php | |
| $installer = $this; | |
| $installer->startSetup(); | |
| $installer->run(" | |
| DROP TABLE IF EXISTS {$installer->getTable('weblog/blogpost')}; | |
| CREATE TABLE {$installer->getTable('weblog/blogpost')} ( | |
| `blogpost_id` int(11) NOT NULL auto_increment, | |
| `title` text, | |
| `post` text, | |
| `date` datetime default NULL, | |
| `timestamp` timestamp NOT NULL default CURRENT_TIMESTAMP, | |
| PRIMARY KEY (`blogpost_id`) | |
| ); | |
| INSERT INTO {$installer->getTable('weblog/blogpost')} | |
| VALUES (1, 'My New Title','This is a blog post','2010-07-01 00:00:00','2010-07-02 23:12:30'); | |
| INSERT INTO {$installer->getTable('weblog/blogpost')} | |
| VALUES (2, 'Hello World!','Lorum Ipsums Sumthun','2010-07-01 00:00:00','2010-07-02 23:12:30'); | |
| "); | |
| $installer->endSetup(); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment