better init db
This commit is contained in:
parent
1fe7cf3a6e
commit
42a1a40f4a
2 changed files with 12 additions and 5 deletions
|
@ -4,7 +4,7 @@
|
|||
<link rel="stylesheet" type="text/css" href="/style/main.css" />
|
||||
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
|
||||
<meta name="Description" content="Swiss Didgeridoo Artwork - Online Shop" />
|
||||
</head>
|
||||
</head>
|
||||
<body>
|
||||
|
||||
<div style="padding: 10px;">
|
||||
|
|
|
@ -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