core/set/install/cat_mysql.php

16 lines
437 B
PHP

<?php
\DB::set("ALTER TABLE `pages`
ADD `comment_enable` int(1) NULL DEFAULT '1',
ADD `see` int(10) NULL DEFAULT '0' AFTER `comment_enable`");
\DB::set("CREATE TABLE IF NOT EXISTS `pages_comments` (
`id` int(10) NULL,
`user_id` int(10) NOT NULL,
`txt` longtext NOT NULL,
`status` int(1) NOT NULL DEFAULT '0',
`t` varchar(30) NOT NULL,
FOREIGN KEY (`user_id`) REFERENCES `users` (`id`)
) ENGINE='InnoDB'");
?>