-- phpMyAdmin SQL Dump
-- version 3.2.4
-- http://www.phpmyadmin.net
--
-- Gostitelj: localhost
-- Čas nastanka: 29 Dec 2010 ob 10:11 AM
-- Različica strežnika: 5.1.41
-- Različica PHP: 5.3.1

SET SQL_MODE="NO_AUTO_VALUE_ON_ZERO";


/*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */;
/*!40101 SET @OLD_CHARACTER_SET_RESULTS=@@CHARACTER_SET_RESULTS */;
/*!40101 SET @OLD_COLLATION_CONNECTION=@@COLLATION_CONNECTION */;
/*!40101 SET NAMES utf8 */;

--
-- Podatkovna baza: `WarpitPanel_Webcati_liveupdate`
--

-- --------------------------------------------------------

--
-- Struktura tabele `liveUpdate_log`
--

CREATE TABLE IF NOT EXISTS `liveUpdate_log` (
  `ID` int(11) NOT NULL AUTO_INCREMENT,
  `interv_id` int(11) NOT NULL,
  `version` int(11) NOT NULL,
  `time_update` datetime NOT NULL,
  `error_message` longtext NOT NULL,
  PRIMARY KEY (`ID`),
  UNIQUE KEY `int_ver` (`interv_id`,`version`)
) ENGINE=MyISAM DEFAULT CHARSET=latin1 AUTO_INCREMENT=1 ;

--
-- Odloži podatke za tabelo `liveUpdate_log`
--


-- --------------------------------------------------------

--
-- Struktura tabele `questionary_log`
--

CREATE TABLE IF NOT EXISTS `questionary_log` (
  `ID` int(11) NOT NULL AUTO_INCREMENT,
  `interv_id` int(11) NOT NULL,
  `proj_id` int(11) NOT NULL,
  `time_update` datetime NOT NULL,
  `error_message` longtext COLLATE utf8_unicode_ci NOT NULL,
  PRIMARY KEY (`ID`)
) ENGINE=MyISAM DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci AUTO_INCREMENT=1 ;

--
-- Odloži podatke za tabelo `questionary_log`
--


-- --------------------------------------------------------

--
-- Struktura tabele `_LiveUpdateFiles`
--

CREATE TABLE IF NOT EXISTS `_LiveUpdateFiles` (
  `id` int(11) NOT NULL AUTO_INCREMENT,
  `file_type` tinyint(4) NOT NULL,
  `relative_path` text COLLATE utf8_unicode_ci NOT NULL,
  `file_name` text COLLATE utf8_unicode_ci NOT NULL,
  `version` int(11) NOT NULL DEFAULT '20000',
  PRIMARY KEY (`id`)
) ENGINE=MyISAM DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci AUTO_INCREMENT=1 ;

--
-- Odloži podatke za tabelo `_LiveUpdateFiles`
--


-- --------------------------------------------------------

--
-- Struktura tabele `_LiveUpdateSql`
--

CREATE TABLE IF NOT EXISTS `_LiveUpdateSql` (
  `id` int(3) NOT NULL AUTO_INCREMENT,
  `version` varchar(10) COLLATE utf8_unicode_ci NOT NULL,
  `project_id` int(11) NOT NULL,
  `statement_id` int(11) NOT NULL,
  `sql_database` varchar(100) COLLATE utf8_unicode_ci NOT NULL,
  `sql_statments` longtext COLLATE utf8_unicode_ci NOT NULL,
  `liveupdate_comment` varchar(200) COLLATE utf8_unicode_ci NOT NULL,
  `insertTime` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP,
  `users_id` text COLLATE utf8_unicode_ci NOT NULL,
  PRIMARY KEY (`id`),
  UNIQUE KEY `liveupdate_version` (`version`,`project_id`,`statement_id`)
) ENGINE=MyISAM DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci AUTO_INCREMENT=1 ;

--
-- Odloži podatke za tabelo `_LiveUpdateSql`
--


-- --------------------------------------------------------

--
-- Struktura tabele `_LiveUpdateVersion`
--

CREATE TABLE IF NOT EXISTS `_LiveUpdateVersion` (
  `id` int(3) NOT NULL AUTO_INCREMENT,
  `active` tinyint(1) NOT NULL DEFAULT '0',
  `file_program_ver` int(5) NOT NULL DEFAULT '2000',
  `support_program_ver` int(5) NOT NULL DEFAULT '0',
  `id_user` int(11) NOT NULL,
  PRIMARY KEY (`id`),
  UNIQUE KEY `version` (`file_program_ver`),
  KEY `active` (`active`)
) ENGINE=MyISAM DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci AUTO_INCREMENT=1 ;

--
-- Odloži podatke za tabelo `_LiveUpdateVersion`
--

