PrivateBin\Data\Database::_createCommentTable PHP Метод

_createCommentTable() приватный статический Метод

create the paste table
private static _createCommentTable ( ) : void
Результат void
    private static function _createCommentTable()
    {
        list($main_key, $after_key) = self::_getPrimaryKeyClauses();
        $dataType = self::$_type === 'pgsql' ? 'text' : 'BLOB';
        self::$_db->exec('CREATE TABLE ' . self::_sanitizeIdentifier('comment') . ' ( ' . "dataid CHAR(16) NOT NULL{$main_key}, " . 'pasteid CHAR(16), ' . 'parentid CHAR(16), ' . "data {$dataType}, " . "nickname {$dataType}, " . "vizhash {$dataType}, " . "postdate INT{$after_key} );");
        self::$_db->exec('CREATE INDEX IF NOT EXISTS comment_parent ON ' . self::_sanitizeIdentifier('comment') . '(pasteid);');
    }