<?php
// Создаем таблицу логов падений программы
run_query("CREATE TABLE IF NOT EXISTS `" . $config['table_prefix'] . "logs_crash` (
            `guid` VARCHAR( 30 ) NOT NULL,
            `date` TIMESTAMP NOT NULL ,
            `user_id` INT NOT NULL ,
            `table_id` INT NOT NULL ,
            `report_id` INT NOT NULL ,
            `message` VARCHAR( 1048 ) CHARACTER SET utf8 NOT NULL,
            `in_detail` TEXT CHARACTER SET utf8 NOT NULL,
            `url` VARCHAR( 2048 ) CHARACTER SET utf8 NOT NULL ,
            `call_stack` LONGBLOB NOT NULL ,
            `global_vars` LONGBLOB NOT NULL ,
            `notified` SMALLINT NOT NULL
            ) ENGINE = " . $config['db_engine']);
?>