better init db
This commit is contained in:
parent
1fe7cf3a6e
commit
42a1a40f4a
2 changed files with 12 additions and 5 deletions
|
@ -16,7 +16,7 @@ CREATE TABLE `navigation` (
|
|||
`active` tinyint(1) NOT NULL DEFAULT '1',
|
||||
`sorting` int(11) DEFAULT NULL,
|
||||
PRIMARY KEY (`id`)
|
||||
) ENGINE=MyISAM AUTO_INCREMENT=69 DEFAULT CHARSET=utf8;
|
||||
) ENGINE=MyISAM AUTO_INCREMENT=0 DEFAULT CHARSET=utf8;
|
||||
|
||||
--
|
||||
-- Table structure for table `page`
|
||||
|
@ -26,10 +26,17 @@ DROP TABLE IF EXISTS `page`;
|
|||
CREATE TABLE `page` (
|
||||
`id` int(11) NOT NULL AUTO_INCREMENT,
|
||||
`title` varchar(256) NOT NULL,
|
||||
`subtitle` varchar(256) NOT NULL,
|
||||
`subtitle` varchar(256) DEFAULT NULL,
|
||||
`url` varchar(256) NOT NULL,
|
||||
`content` text NOT NULL,
|
||||
`content` text DEFAULT NULL,
|
||||
`active` tinyint(1) NOT NULL DEFAULT '1',
|
||||
`header_image` varchar(256) DEFAULT NULL,
|
||||
PRIMARY KEY (`id`)
|
||||
) ENGINE=MyISAM AUTO_INCREMENT=36 DEFAULT CHARSET=utf8;
|
||||
) ENGINE=MyISAM AUTO_INCREMENT=0 DEFAULT CHARSET=utf8;
|
||||
|
||||
--
|
||||
-- Data
|
||||
--
|
||||
|
||||
INSERT INTO `page` (`title`, `url`, `content`) VALUES ("Home", "home", "Wilkommen bei Katharsis");
|
||||
INSERT INTO `navigation` (`name`, `controller`, `action`) VALUES ("Home", "page", "home");
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue