core/set/install/cat_mysql.php

16 lines
437 B
PHP
Raw Normal View History

2023-04-09 19:52:26 +05:00
<?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'");
?>