|
@ -0,0 +1,19 @@ |
|
|
|
|
|
-- |
|
|
|
|
|
-- База данных: `testdb` |
|
|
|
|
|
-- |
|
|
|
|
|
CREATE DATABASE `testdb` DEFAULT CHARACTER SET latin1 COLLATE latin1_swedish_ci; |
|
|
|
|
|
USE `testdb`; |
|
|
|
|
|
|
|
|
|
|
|
-- -------------------------------------------------------- |
|
|
|
|
|
|
|
|
|
|
|
-- |
|
|
|
|
|
-- Структура таблицы `table` |
|
|
|
|
|
-- |
|
|
|
|
|
|
|
|
|
|
|
CREATE TABLE IF NOT EXISTS `table` ( |
|
|
|
|
|
`id` int(3) NOT NULL AUTO_INCREMENT, |
|
|
|
|
|
`content` varchar(255) NOT NULL, |
|
|
|
|
|
`user` varchar(255) NOT NULL, |
|
|
|
|
|
`created` datetime NOT NULL, |
|
|
|
|
|
PRIMARY KEY (`id`) |
|
|
|
|
|
) ENGINE=InnoDB DEFAULT CHARSET=latin1 AUTO_INCREMENT=7 ; |