Uploaded image for project: 'ZABBIX BUGS AND ISSUES'
  1. ZABBIX BUGS AND ISSUES
  2. ZBX-10364

schema.inc.php doesn't correspond to a source schema.sql

XMLWordPrintable

      Table definition in schema.sql:

      TABLE|user_history|userhistoryid|0
      FIELD |userhistoryid |t_id |'0' |NOT NULL |0
      FIELD |userid        |t_id |'0' |NOT NULL |0 |users
      ...
      

      Table definition in schema.inc.php:

      'user_history' => array(
          'type' => DB::TABLE_TYPE_CONFIG,
          'key' => 'userhistoryid',
          'fields' => array(
      

      The flag DB::TABLE_TYPE_CONFIG must be replaced by DB::TABLE_TYPE_HISTORY in schema.inc.php.

      --- frontends/php/include/schema.inc.php
      +++ schema.inc.php (generated from schema.sql)
      @@ -4624,7 +4624,7 @@
       		),
       	),
       	'user_history' => array(
      -		'type' => DB::TABLE_TYPE_CONFIG,
      +		'type' => DB::TABLE_TYPE_HISTORY,
       		'key' => 'userhistoryid',
       		'fields' => array(
       			'userhistoryid' => array(
      @@ -4791,4 +4791,4 @@
       		),
       	),
       );
      -?>
      +?>
      \ No newline at end of file
      

            Unassigned Unassigned
            sasha Alexander Vladishev
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: