Alte SQL datein Lsöchen
This commit is contained in:
parent
5294c4af16
commit
c6aa826034
|
@ -1,500 +0,0 @@
|
||||||
-- phpMyAdmin SQL Dump
|
|
||||||
-- version 3.3.7deb7
|
|
||||||
-- http://www.phpmyadmin.net
|
|
||||||
--
|
|
||||||
-- Host: localhost
|
|
||||||
-- Erstellungszeit: 11. Mai 2014 um 16:53
|
|
||||||
-- Server Version: 5.1.73
|
|
||||||
-- PHP-Version: 5.3.3-7+squeeze19
|
|
||||||
|
|
||||||
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 */;
|
|
||||||
|
|
||||||
--
|
|
||||||
-- Datenbank: `muellersql1`
|
|
||||||
--
|
|
||||||
|
|
||||||
-- --------------------------------------------------------
|
|
||||||
|
|
||||||
--
|
|
||||||
-- Tabellenstruktur für Tabelle `mic_dj_account_acc`
|
|
||||||
--
|
|
||||||
|
|
||||||
CREATE TABLE IF NOT EXISTS `mic_dj_account_acc` (
|
|
||||||
`micapplication_ptr_id` int(11) NOT NULL,
|
|
||||||
`street` varchar(100) NOT NULL,
|
|
||||||
`city` varchar(100) NULL,
|
|
||||||
`postcode` varchar(100) NOT NULL,
|
|
||||||
PRIMARY KEY (`micapplication_ptr_id`)
|
|
||||||
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
|
|
||||||
|
|
||||||
-- --------------------------------------------------------
|
|
||||||
|
|
||||||
--
|
|
||||||
-- Tabellenstruktur für Tabelle `mic_dj_account_cmpy`
|
|
||||||
--
|
|
||||||
|
|
||||||
CREATE TABLE IF NOT EXISTS `mic_dj_account_cmpy` (
|
|
||||||
`djaccount_ptr_id` int(11) NOT NULL,
|
|
||||||
`corporateform` varchar(30) NOT NULL,
|
|
||||||
`owner` varchar(100) NOT NULL,
|
|
||||||
`branch` varchar(100) NULL,
|
|
||||||
`headcount` smallint(6) DEFAULT NULL,
|
|
||||||
`bank_details` varchar(100) DEFAULT NULL,
|
|
||||||
`website` varchar(200) DEFAULT NULL,
|
|
||||||
`css` varchar(200) DEFAULT NULL,
|
|
||||||
`pro_user` int(11) DEFAULT NULL,
|
|
||||||
PRIMARY KEY (`djaccount_ptr_id`)
|
|
||||||
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
|
|
||||||
|
|
||||||
-- --------------------------------------------------------
|
|
||||||
|
|
||||||
--
|
|
||||||
-- Tabellenstruktur für Tabelle `mic_dj_account_isearch`
|
|
||||||
--
|
|
||||||
|
|
||||||
CREATE TABLE IF NOT EXISTS `mic_dj_account_isearch` (
|
|
||||||
`id` int(11) NOT NULL AUTO_INCREMENT,
|
|
||||||
`worker_id` int(11) NOT NULL,
|
|
||||||
`branch` varchar(100) NOT NULL,
|
|
||||||
`job` varchar(100) NOT NULL,
|
|
||||||
`kindofjob_id` int(11) NOT NULL,
|
|
||||||
PRIMARY KEY (`id`),
|
|
||||||
UNIQUE KEY `worker_id` (`worker_id`,`job`,`kindofjob_id`,`branch`),
|
|
||||||
KEY `mic_dj_account_isearch_20fc5b84` (`worker_id`)
|
|
||||||
) ENGINE=InnoDB DEFAULT CHARSET=utf8 AUTO_INCREMENT=96 ;
|
|
||||||
|
|
||||||
-- --------------------------------------------------------
|
|
||||||
--
|
|
||||||
-- Tabellenstruktur für Tabelle `mic_dj_account_wrk`
|
|
||||||
--
|
|
||||||
|
|
||||||
CREATE TABLE IF NOT EXISTS `mic_dj_account_wrk` (
|
|
||||||
`djaccount_ptr_id` int(11) NOT NULL,
|
|
||||||
`graducation_id` int(11) DEFAULT NULL,
|
|
||||||
`workexperience` smallint(6) DEFAULT NULL,
|
|
||||||
`searchhidden` tinyint(1) NOT NULL,
|
|
||||||
`advertising` tinyint(1) NOT NULL,
|
|
||||||
`leadership_ability` tinyint(1) NOT NULL,
|
|
||||||
`country` varchar(100) NOT NULL,
|
|
||||||
`iam` varchar(300) NOT NULL,
|
|
||||||
PRIMARY KEY (`djaccount_ptr_id`),
|
|
||||||
KEY `mic_dj_account_wrk_b05158b4` (`graducation_id`)
|
|
||||||
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
|
|
||||||
|
|
||||||
-- --------------------------------------------------------
|
|
||||||
|
|
||||||
--
|
|
||||||
-- Tabellenstruktur für Tabelle `mic_dj_cv_category`
|
|
||||||
--
|
|
||||||
|
|
||||||
CREATE TABLE IF NOT EXISTS `mic_dj_cv_category` (
|
|
||||||
`id` int(11) NOT NULL AUTO_INCREMENT,
|
|
||||||
`worker_id` int(11) NOT NULL,
|
|
||||||
`category_id` int(11) NOT NULL,
|
|
||||||
PRIMARY KEY (`id`),
|
|
||||||
KEY `mic_dj_cv_category_20fc5b84` (`worker_id`),
|
|
||||||
KEY `mic_dj_cv_category_42dc49bc` (`category_id`)
|
|
||||||
) ENGINE=MyISAM DEFAULT CHARSET=latin1 AUTO_INCREMENT=113 ;
|
|
||||||
|
|
||||||
-- --------------------------------------------------------
|
|
||||||
|
|
||||||
--
|
|
||||||
-- Tabellenstruktur für Tabelle `mic_dj_cv_entry`
|
|
||||||
--
|
|
||||||
|
|
||||||
CREATE TABLE IF NOT EXISTS `mic_dj_cv_entry` (
|
|
||||||
`id` int(11) NOT NULL AUTO_INCREMENT,
|
|
||||||
`category_id` int(11) NOT NULL,
|
|
||||||
`startdate` date DEFAULT NULL,
|
|
||||||
`enddate` date DEFAULT NULL,
|
|
||||||
`title` varchar(100) NOT NULL,
|
|
||||||
`place` varchar(100) NOT NULL,
|
|
||||||
PRIMARY KEY (`id`),
|
|
||||||
KEY `mic_dj_cv_entry_42dc49bc` (`category_id`)
|
|
||||||
) ENGINE=MyISAM DEFAULT CHARSET=latin1 AUTO_INCREMENT=141 ;
|
|
||||||
|
|
||||||
--
|
|
||||||
-- Tabellenstruktur für Tabelle `mic_dj_jobs_application`
|
|
||||||
--
|
|
||||||
|
|
||||||
CREATE TABLE IF NOT EXISTS `mic_dj_jobs_application` (
|
|
||||||
`id` int(11) NOT NULL AUTO_INCREMENT,
|
|
||||||
`stars` int(11) NOT NULL,
|
|
||||||
`closed` tinyint(1) NOT NULL,
|
|
||||||
`offered` tinyint(1) NOT NULL,
|
|
||||||
`saw` tinyint(1) NOT NULL,
|
|
||||||
`created` datetime NOT NULL,
|
|
||||||
`worker_id` int(11) NOT NULL,
|
|
||||||
`opening_id` int(11) NOT NULL,
|
|
||||||
`text` longtext NOT NULL,
|
|
||||||
PRIMARY KEY (`id`),
|
|
||||||
UNIQUE KEY `worker_id` (`worker_id`,`opening_id`),
|
|
||||||
KEY `mic_dj_jobs_application_20fc5b84` (`worker_id`),
|
|
||||||
KEY `mic_dj_jobs_application_5986cc59` (`opening_id`)
|
|
||||||
) ENGINE=InnoDB DEFAULT CHARSET=utf8 AUTO_INCREMENT=1 ;
|
|
||||||
|
|
||||||
-- --------------------------------------------------------
|
|
||||||
|
|
||||||
--
|
|
||||||
-- Tabellenstruktur für Tabelle `mic_dj_jobs_application_pages`
|
|
||||||
--
|
|
||||||
|
|
||||||
CREATE TABLE IF NOT EXISTS `mic_dj_jobs_application_pages` (
|
|
||||||
`id` int(11) NOT NULL AUTO_INCREMENT,
|
|
||||||
`application_id` int(11) NOT NULL,
|
|
||||||
`page_id` int(11) NOT NULL,
|
|
||||||
PRIMARY KEY (`id`),
|
|
||||||
UNIQUE KEY `application_id` (`application_id`,`page_id`),
|
|
||||||
KEY `mic_dj_jobs_application_pages_398529ef` (`application_id`),
|
|
||||||
KEY `mic_dj_jobs_application_pages_32d04bc7` (`page_id`)
|
|
||||||
) ENGINE=InnoDB DEFAULT CHARSET=utf8 AUTO_INCREMENT=1 ;
|
|
||||||
|
|
||||||
-- --------------------------------------------------------
|
|
||||||
|
|
||||||
--
|
|
||||||
-- Tabellenstruktur für Tabelle `mic_dj_jobs_msg`
|
|
||||||
--
|
|
||||||
|
|
||||||
CREATE TABLE IF NOT EXISTS `mic_dj_jobs_msg` (
|
|
||||||
`id` int(11) NOT NULL AUTO_INCREMENT,
|
|
||||||
`application_id` int(11) NOT NULL,
|
|
||||||
`fromcompany` tinyint(1) NOT NULL,
|
|
||||||
`created` datetime NOT NULL,
|
|
||||||
`saw` tinyint(1) NOT NULL,
|
|
||||||
`text` longtext NOT NULL,
|
|
||||||
PRIMARY KEY (`id`),
|
|
||||||
KEY `mic_dj_jobs_msg_398529ef` (`application_id`)
|
|
||||||
) ENGINE=InnoDB DEFAULT CHARSET=utf8 AUTO_INCREMENT=1 ;
|
|
||||||
|
|
||||||
-- --------------------------------------------------------
|
|
||||||
|
|
||||||
--
|
|
||||||
-- Tabellenstruktur für Tabelle `mic_dj_jobs_opening`
|
|
||||||
--
|
|
||||||
|
|
||||||
CREATE TABLE IF NOT EXISTS `mic_dj_jobs_opening` (
|
|
||||||
`id` int(11) NOT NULL AUTO_INCREMENT,
|
|
||||||
`street` varchar(100) NOT NULL,
|
|
||||||
`city` varchar(100) NOT NULL,
|
|
||||||
`postcode` varchar(100) NOT NULL,
|
|
||||||
`title` varchar(100) NOT NULL,
|
|
||||||
`company_id` int(11) NOT NULL,
|
|
||||||
`graducation_id` int(11) DEFAULT NULL,
|
|
||||||
`branch` varchar(100) NOT NULL,
|
|
||||||
`kindofjob_id` int(11) DEFAULT NULL,
|
|
||||||
`startdate` date NOT NULL,
|
|
||||||
`enddate` date DEFAULT NULL,
|
|
||||||
`active` tinyint(1) NOT NULL,
|
|
||||||
`text` longtext NOT NULL,
|
|
||||||
PRIMARY KEY (`id`),
|
|
||||||
KEY `mic_dj_jobs_opening_543518c6` (`company_id`),
|
|
||||||
KEY `mic_dj_jobs_opening_b05158b4` (`graducation_id`),
|
|
||||||
KEY `mic_dj_jobs_opening_840a080f` (`kindofjob_id`)
|
|
||||||
) ENGINE=InnoDB DEFAULT CHARSET=utf8 AUTO_INCREMENT=27 ;
|
|
||||||
|
|
||||||
-- --------------------------------------------------------
|
|
||||||
|
|
||||||
--
|
|
||||||
-- Tabellenstruktur für Tabelle `mic_dj_jobs_opening_worker`
|
|
||||||
--
|
|
||||||
|
|
||||||
CREATE TABLE IF NOT EXISTS `mic_dj_jobs_opening_worker` (
|
|
||||||
`id` int(11) NOT NULL AUTO_INCREMENT,
|
|
||||||
`opening_id` int(11) NOT NULL,
|
|
||||||
`worker_id` int(11) NOT NULL,
|
|
||||||
PRIMARY KEY (`id`),
|
|
||||||
UNIQUE KEY `opening_id` (`opening_id`,`worker_id`),
|
|
||||||
KEY `mic_dj_jobs_opening_worker_favOpening` (`opening_id`),
|
|
||||||
KEY `mic_dj_jobs_opening_worker_favWorker` (`worker_id`)
|
|
||||||
) ENGINE=InnoDB DEFAULT CHARSET=utf8 AUTO_INCREMENT=1 ;
|
|
||||||
|
|
||||||
-- --------------------------------------------------------
|
|
||||||
|
|
||||||
--
|
|
||||||
-- Tabellenstruktur für Tabelle `mic_dj_list_branch`
|
|
||||||
--
|
|
||||||
|
|
||||||
CREATE TABLE IF NOT EXISTS `mic_dj_list_branch` (
|
|
||||||
`id` int(11) NOT NULL AUTO_INCREMENT,
|
|
||||||
`name` varchar(100) NOT NULL,
|
|
||||||
PRIMARY KEY (`id`)
|
|
||||||
) ENGINE=InnoDB DEFAULT CHARSET=utf8 AUTO_INCREMENT=70 ;
|
|
||||||
|
|
||||||
-- --------------------------------------------------------
|
|
||||||
|
|
||||||
--
|
|
||||||
-- Tabellenstruktur für Tabelle `mic_dj_list_city`
|
|
||||||
--
|
|
||||||
|
|
||||||
CREATE TABLE IF NOT EXISTS `mic_dj_list_city` (
|
|
||||||
`id` int(11) NOT NULL AUTO_INCREMENT,
|
|
||||||
`name` varchar(100) NOT NULL,
|
|
||||||
PRIMARY KEY (`id`)
|
|
||||||
) ENGINE=InnoDB DEFAULT CHARSET=utf8 AUTO_INCREMENT=1949 ;
|
|
||||||
|
|
||||||
-- --------------------------------------------------------
|
|
||||||
|
|
||||||
--
|
|
||||||
-- Tabellenstruktur für Tabelle `mic_dj_list_country`
|
|
||||||
--
|
|
||||||
|
|
||||||
CREATE TABLE IF NOT EXISTS `mic_dj_list_country` (
|
|
||||||
`id` int(11) NOT NULL AUTO_INCREMENT,
|
|
||||||
`name` varchar(100) NOT NULL,
|
|
||||||
PRIMARY KEY (`id`)
|
|
||||||
) ENGINE=InnoDB DEFAULT CHARSET=utf8 AUTO_INCREMENT=177 ;
|
|
||||||
|
|
||||||
-- --------------------------------------------------------
|
|
||||||
|
|
||||||
--
|
|
||||||
-- Tabellenstruktur für Tabelle `mic_dj_list_cv-category`
|
|
||||||
--
|
|
||||||
|
|
||||||
CREATE TABLE IF NOT EXISTS `mic_dj_list_cv-category` (
|
|
||||||
`id` int(11) NOT NULL AUTO_INCREMENT,
|
|
||||||
`position` int(11) NOT NULL,
|
|
||||||
`name` varchar(100) NOT NULL,
|
|
||||||
`place_str` varchar(100) NOT NULL,
|
|
||||||
`place` tinyint(1) NOT NULL,
|
|
||||||
`title_str` varchar(100) NOT NULL,
|
|
||||||
`enddate` tinyint(1) NOT NULL,
|
|
||||||
`startdate` tinyint(1) NOT NULL,
|
|
||||||
PRIMARY KEY (`id`)
|
|
||||||
) ENGINE=MyISAM DEFAULT CHARSET=latin1 AUTO_INCREMENT=11 ;
|
|
||||||
|
|
||||||
-- --------------------------------------------------------
|
|
||||||
|
|
||||||
--
|
|
||||||
-- Tabellenstruktur für Tabelle `mic_dj_list_graducation`
|
|
||||||
--
|
|
||||||
|
|
||||||
CREATE TABLE IF NOT EXISTS `mic_dj_list_graducation` (
|
|
||||||
`id` int(11) NOT NULL AUTO_INCREMENT,
|
|
||||||
`name` varchar(100) NOT NULL,
|
|
||||||
PRIMARY KEY (`id`)
|
|
||||||
) ENGINE=InnoDB DEFAULT CHARSET=utf8 AUTO_INCREMENT=12 ;
|
|
||||||
|
|
||||||
-- --------------------------------------------------------
|
|
||||||
|
|
||||||
--
|
|
||||||
-- Tabellenstruktur für Tabelle `mic_dj_list_job`
|
|
||||||
--
|
|
||||||
|
|
||||||
CREATE TABLE IF NOT EXISTS `mic_dj_list_job` (
|
|
||||||
`id` int(11) NOT NULL AUTO_INCREMENT,
|
|
||||||
`name` varchar(100) NOT NULL,
|
|
||||||
PRIMARY KEY (`id`)
|
|
||||||
) ENGINE=InnoDB DEFAULT CHARSET=utf8 AUTO_INCREMENT=643 ;
|
|
||||||
|
|
||||||
-- --------------------------------------------------------
|
|
||||||
|
|
||||||
--
|
|
||||||
-- Tabellenstruktur für Tabelle `mic_dj_list_kindofjob`
|
|
||||||
--
|
|
||||||
|
|
||||||
CREATE TABLE IF NOT EXISTS `mic_dj_list_kindofjob` (
|
|
||||||
`id` int(11) NOT NULL AUTO_INCREMENT,
|
|
||||||
`name` varchar(100) NOT NULL,
|
|
||||||
PRIMARY KEY (`id`)
|
|
||||||
) ENGINE=InnoDB DEFAULT CHARSET=utf8 AUTO_INCREMENT=7 ;
|
|
||||||
|
|
||||||
-- --------------------------------------------------------
|
|
||||||
|
|
||||||
--
|
|
||||||
-- Tabellenstruktur für Tabelle `mic_dj_page_image`
|
|
||||||
--
|
|
||||||
|
|
||||||
CREATE TABLE IF NOT EXISTS `mic_dj_page_image` (
|
|
||||||
`page_ptr_id` int(11) NOT NULL,
|
|
||||||
`image` varchar(100) NOT NULL,
|
|
||||||
PRIMARY KEY (`page_ptr_id`)
|
|
||||||
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
|
|
||||||
|
|
||||||
-- --------------------------------------------------------
|
|
||||||
|
|
||||||
--
|
|
||||||
-- Tabellenstruktur für Tabelle `mic_dj_page_inh`
|
|
||||||
--
|
|
||||||
|
|
||||||
CREATE TABLE IF NOT EXISTS `mic_dj_page_inh` (
|
|
||||||
`id` int(11) NOT NULL AUTO_INCREMENT,
|
|
||||||
`user_id` int(11) NOT NULL,
|
|
||||||
`title` varchar(100) NOT NULL,
|
|
||||||
`position` smallint(6) NOT NULL,
|
|
||||||
PRIMARY KEY (`id`),
|
|
||||||
KEY `mic_dj_page_inh_fbfc09f1` (`user_id`)
|
|
||||||
) ENGINE=InnoDB DEFAULT CHARSET=utf8 AUTO_INCREMENT=74 ;
|
|
||||||
|
|
||||||
-- --------------------------------------------------------
|
|
||||||
|
|
||||||
--
|
|
||||||
-- Tabellenstruktur für Tabelle `mic_dj_page_txt`
|
|
||||||
--
|
|
||||||
|
|
||||||
CREATE TABLE IF NOT EXISTS `mic_dj_page_txt` (
|
|
||||||
`page_ptr_id` int(11) NOT NULL,
|
|
||||||
`text` longtext NOT NULL,
|
|
||||||
PRIMARY KEY (`page_ptr_id`)
|
|
||||||
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
|
|
||||||
|
|
||||||
-- --------------------------------------------------------
|
|
||||||
--
|
|
||||||
-- Tabellenstruktur für Tabelle `mic_sys_mannerofaddr`
|
|
||||||
--
|
|
||||||
|
|
||||||
CREATE TABLE IF NOT EXISTS `mic_sys_mannerofaddr` (
|
|
||||||
`id` int(11) NOT NULL AUTO_INCREMENT,
|
|
||||||
`name` varchar(100) NOT NULL,
|
|
||||||
PRIMARY KEY (`id`)
|
|
||||||
) ENGINE=InnoDB DEFAULT CHARSET=utf8 AUTO_INCREMENT=5 ;
|
|
||||||
|
|
||||||
-- --------------------------------------------------------
|
|
||||||
|
|
||||||
--
|
|
||||||
-- Tabellenstruktur für Tabelle `mic_sys_micacc`
|
|
||||||
--
|
|
||||||
|
|
||||||
CREATE TABLE IF NOT EXISTS `mic_sys_micacc` (
|
|
||||||
`id` int(11) NOT NULL AUTO_INCREMENT,
|
|
||||||
`first_name` varchar(30) NOT NULL,
|
|
||||||
`last_name` varchar(30) NOT NULL,
|
|
||||||
`is_staff` tinyint(1) NOT NULL,
|
|
||||||
`is_active` tinyint(1) NOT NULL,
|
|
||||||
`is_superuser` tinyint(1) NOT NULL,
|
|
||||||
`last_login` datetime DEFAULT NULL,
|
|
||||||
`date_joined` datetime DEFAULT NULL,
|
|
||||||
`password` varchar(128) NOT NULL,
|
|
||||||
`mail` varchar(75) NOT NULL,
|
|
||||||
`code` varchar(255) NOT NULL,
|
|
||||||
`mannerofaddress_id` int(11) DEFAULT NULL,
|
|
||||||
`avatar` varchar(100) DEFAULT NULL,
|
|
||||||
`nickname` varchar(100) DEFAULT NULL,
|
|
||||||
`bday` date DEFAULT NULL,
|
|
||||||
`comment` varchar(255) NOT NULL,
|
|
||||||
PRIMARY KEY (`id`),
|
|
||||||
UNIQUE KEY `mail` (`mail`),
|
|
||||||
KEY `mic_sys_micacc_6bef5955` (`mannerofaddress_id`)
|
|
||||||
) ENGINE=InnoDB DEFAULT CHARSET=utf8 AUTO_INCREMENT=112 ;
|
|
||||||
|
|
||||||
-- --------------------------------------------------------
|
|
||||||
|
|
||||||
--
|
|
||||||
-- Tabellenstruktur für Tabelle `mic_sys_micapp`
|
|
||||||
--
|
|
||||||
|
|
||||||
CREATE TABLE IF NOT EXISTS `mic_sys_micapp` (
|
|
||||||
`id` int(11) NOT NULL AUTO_INCREMENT,
|
|
||||||
`user_id` int(11) NOT NULL,
|
|
||||||
`take_systemwide` tinyint(1) NOT NULL,
|
|
||||||
`avatar` varchar(100) DEFAULT NULL,
|
|
||||||
`nickname` varchar(100) DEFAULT NULL,
|
|
||||||
`mannerofaddress_id` int(11) DEFAULT NULL,
|
|
||||||
`first_name` varchar(100) DEFAULT NULL,
|
|
||||||
`last_name` varchar(100) DEFAULT NULL,
|
|
||||||
`bday` date DEFAULT NULL,
|
|
||||||
PRIMARY KEY (`id`),
|
|
||||||
KEY `mic_sys_micapp_fbfc09f1` (`user_id`),
|
|
||||||
KEY `mic_sys_micapp_6bef5955` (`mannerofaddress_id`)
|
|
||||||
) ENGINE=InnoDB DEFAULT CHARSET=utf8 AUTO_INCREMENT=107 ;
|
|
||||||
|
|
||||||
--
|
|
||||||
-- Constraints der exportierten Tabellen
|
|
||||||
--
|
|
||||||
|
|
||||||
--
|
|
||||||
-- Constraints der Tabelle `mic_dj_account_acc`
|
|
||||||
--
|
|
||||||
ALTER TABLE `mic_dj_account_acc`
|
|
||||||
ADD CONSTRAINT `micapplication_ptr_id_refs_id_c3772207` FOREIGN KEY (`micapplication_ptr_id`) REFERENCES `mic_sys_micapp` (`id`) ON DELETE CASCADE ON UPDATE CASCADE;
|
|
||||||
|
|
||||||
--
|
|
||||||
-- Constraints der Tabelle `mic_dj_account_cmpy`
|
|
||||||
--
|
|
||||||
ALTER TABLE `mic_dj_account_cmpy`
|
|
||||||
ADD CONSTRAINT `djaccount_ptr_id_refs_micapplication_ptr_id_a4ed5896` FOREIGN KEY (`djaccount_ptr_id`) REFERENCES `mic_dj_account_acc` (`micapplication_ptr_id`) ON DELETE CASCADE ON UPDATE CASCADE;
|
|
||||||
|
|
||||||
--
|
|
||||||
-- Constraints der Tabelle `mic_dj_account_isearch`
|
|
||||||
--
|
|
||||||
ALTER TABLE `mic_dj_account_isearch`
|
|
||||||
ADD CONSTRAINT `kindofjob_id_refs_id_43b3f292` FOREIGN KEY (`kindofjob_id`) REFERENCES `mic_dj_list_kindofjob` (`id`) ON DELETE CASCADE ON UPDATE CASCADE,
|
|
||||||
ADD CONSTRAINT `worker_id_refs_djaccount_ptr_id_bd052062` FOREIGN KEY (`worker_id`) REFERENCES `mic_dj_account_wrk` (`djaccount_ptr_id`) ON DELETE CASCADE ON UPDATE CASCADE;
|
|
||||||
|
|
||||||
--
|
|
||||||
-- Constraints der Tabelle `mic_dj_account_wrk`
|
|
||||||
--
|
|
||||||
ALTER TABLE `mic_dj_account_wrk`
|
|
||||||
ADD CONSTRAINT `djaccount_ptr_id_refs_micapplication_ptr_id_54e1aa2` FOREIGN KEY (`djaccount_ptr_id`) REFERENCES `mic_dj_account_acc` (`micapplication_ptr_id`) ON DELETE CASCADE ON UPDATE CASCADE,
|
|
||||||
ADD CONSTRAINT `graducation_id_refs_id_855cd518` FOREIGN KEY (`graducation_id`) REFERENCES `mic_dj_list_graducation` (`id`) ON DELETE SET NULL ON UPDATE CASCADE;
|
|
||||||
|
|
||||||
--
|
|
||||||
-- Constraints der Tabelle `mic_dj_jobs_application`
|
|
||||||
--
|
|
||||||
ALTER TABLE `mic_dj_jobs_application`
|
|
||||||
ADD CONSTRAINT `opening_id_refs_id_47ff32e9` FOREIGN KEY (`opening_id`) REFERENCES `mic_dj_jobs_opening` (`id`) ON DELETE CASCADE ON UPDATE CASCADE,
|
|
||||||
ADD CONSTRAINT `worker_id_refs_djaccount_ptr_id_a79561c5` FOREIGN KEY (`worker_id`) REFERENCES `mic_dj_account_wrk` (`djaccount_ptr_id`) ON DELETE CASCADE ON UPDATE CASCADE;
|
|
||||||
|
|
||||||
--
|
|
||||||
-- Constraints der Tabelle `mic_dj_jobs_application_pages`
|
|
||||||
--
|
|
||||||
ALTER TABLE `mic_dj_jobs_application_pages`
|
|
||||||
ADD CONSTRAINT `application_id_refs_id_f7848b52` FOREIGN KEY (`application_id`) REFERENCES `mic_dj_jobs_application` (`id`) ON DELETE CASCADE ON UPDATE CASCADE,
|
|
||||||
ADD CONSTRAINT `page_id_refs_id_e180ca0a` FOREIGN KEY (`page_id`) REFERENCES `mic_dj_page_inh` (`id`) ON DELETE CASCADE ON UPDATE CASCADE;
|
|
||||||
|
|
||||||
--
|
|
||||||
-- Constraints der Tabelle `mic_dj_jobs_msg`
|
|
||||||
--
|
|
||||||
ALTER TABLE `mic_dj_jobs_msg`
|
|
||||||
ADD CONSTRAINT `application_id_refs_id_2fd4efa8` FOREIGN KEY (`application_id`) REFERENCES `mic_dj_jobs_application` (`id`) ON DELETE CASCADE ON UPDATE CASCADE;
|
|
||||||
|
|
||||||
--
|
|
||||||
-- Constraints der Tabelle `mic_dj_jobs_opening`
|
|
||||||
--
|
|
||||||
ALTER TABLE `mic_dj_jobs_opening`
|
|
||||||
ADD CONSTRAINT `company_id_refs_djaccount_ptr_id_626487b3` FOREIGN KEY (`company_id`) REFERENCES `mic_dj_account_cmpy` (`djaccount_ptr_id`) ON DELETE CASCADE ON UPDATE CASCADE,
|
|
||||||
ADD CONSTRAINT `graducation_id_refs_id_a8e61a24` FOREIGN KEY (`graducation_id`) REFERENCES `mic_dj_list_graducation` (`id`) ON DELETE SET NULL ON UPDATE CASCADE,
|
|
||||||
ADD CONSTRAINT `kindofjob_id_refs_id_5081d52d` FOREIGN KEY (`kindofjob_id`) REFERENCES `mic_dj_list_kindofjob` (`id`) ON DELETE SET NULL ON UPDATE CASCADE;
|
|
||||||
|
|
||||||
--
|
|
||||||
-- Constraints der Tabelle `mic_dj_jobs_opening_worker`
|
|
||||||
--
|
|
||||||
ALTER TABLE `mic_dj_jobs_opening_worker`
|
|
||||||
ADD CONSTRAINT `mic_dj_jobs_opening_worker_favOpening` FOREIGN KEY (`opening_id`) REFERENCES `mic_dj_jobs_opening` (`id`) ON DELETE CASCADE ON UPDATE CASCADE,
|
|
||||||
ADD CONSTRAINT `mic_dj_jobs_opening_worker_favWorker` FOREIGN KEY (`worker_id`) REFERENCES `mic_dj_account_wrk` (`djaccount_ptr_id`) ON DELETE CASCADE ON UPDATE CASCADE;
|
|
||||||
|
|
||||||
--
|
|
||||||
-- Constraints der Tabelle `mic_dj_page_image`
|
|
||||||
--
|
|
||||||
ALTER TABLE `mic_dj_page_image`
|
|
||||||
ADD CONSTRAINT `page_ptr_id_refs_id_ea810d69` FOREIGN KEY (`page_ptr_id`) REFERENCES `mic_dj_page_inh` (`id`) ON DELETE CASCADE ON UPDATE CASCADE;
|
|
||||||
|
|
||||||
--
|
|
||||||
-- Constraints der Tabelle `mic_dj_page_inh`
|
|
||||||
--
|
|
||||||
ALTER TABLE `mic_dj_page_inh`
|
|
||||||
ADD CONSTRAINT `user_id_refs_micapplication_ptr_id_76059a94` FOREIGN KEY (`user_id`) REFERENCES `mic_dj_account_acc` (`micapplication_ptr_id`) ON DELETE CASCADE ON UPDATE CASCADE;
|
|
||||||
|
|
||||||
--
|
|
||||||
-- Constraints der Tabelle `mic_dj_page_txt`
|
|
||||||
--
|
|
||||||
ALTER TABLE `mic_dj_page_txt`
|
|
||||||
ADD CONSTRAINT `page_ptr_id_refs_id_95fe7fae` FOREIGN KEY (`page_ptr_id`) REFERENCES `mic_dj_page_inh` (`id`) ON DELETE CASCADE ON UPDATE CASCADE;
|
|
||||||
|
|
||||||
--
|
|
||||||
-- Constraints der Tabelle `mic_sys_micacc`
|
|
||||||
--
|
|
||||||
ALTER TABLE `mic_sys_micacc`
|
|
||||||
ADD CONSTRAINT `mannerofaddress_id_refs_id_588ceb1e` FOREIGN KEY (`mannerofaddress_id`) REFERENCES `mic_sys_mannerofaddr` (`id`) ON DELETE SET NULL ON UPDATE CASCADE;
|
|
||||||
|
|
||||||
--
|
|
||||||
-- Constraints der Tabelle `mic_sys_micapp`
|
|
||||||
--
|
|
||||||
ALTER TABLE `mic_sys_micapp`
|
|
||||||
ADD CONSTRAINT `mannerofaddress_id_refs_id_451bee0` FOREIGN KEY (`mannerofaddress_id`) REFERENCES `mic_sys_mannerofaddr` (`id`) ON DELETE SET NULL ON UPDATE CASCADE,
|
|
||||||
ADD CONSTRAINT `user_id_refs_id_ae61ec29` FOREIGN KEY (`user_id`) REFERENCES `mic_sys_micacc` (`id`) ON DELETE CASCADE ON UPDATE CASCADE;
|
|
|
@ -1,507 +0,0 @@
|
||||||
-- phpMyAdmin SQL Dump
|
|
||||||
-- version 3.3.7deb7
|
|
||||||
-- http://www.phpmyadmin.net
|
|
||||||
--
|
|
||||||
-- Host: localhost
|
|
||||||
-- Erstellungszeit: 12. Mai 2014 um 14:22
|
|
||||||
-- Server Version: 5.1.73
|
|
||||||
-- PHP-Version: 5.3.3-7+squeeze19
|
|
||||||
|
|
||||||
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 */;
|
|
||||||
|
|
||||||
--
|
|
||||||
-- Datenbank: `muellersql2`
|
|
||||||
--
|
|
||||||
-- CREATE DATABASE `muellersql2` DEFAULT CHARACTER SET latin1 COLLATE latin1_swedish_ci;
|
|
||||||
-- USE `muellersql2`;
|
|
||||||
|
|
||||||
-- --------------------------------------------------------
|
|
||||||
|
|
||||||
--
|
|
||||||
-- Tabellenstruktur für Tabelle `mic_dj_account_acc`
|
|
||||||
--
|
|
||||||
|
|
||||||
CREATE TABLE IF NOT EXISTS `mic_dj_account_acc` (
|
|
||||||
`micapplication_ptr_id` int(11) NOT NULL,
|
|
||||||
`street` varchar(100) NOT NULL,
|
|
||||||
`city_id` int(11) DEFAULT NULL,
|
|
||||||
`postcode` varchar(100) NOT NULL,
|
|
||||||
PRIMARY KEY (`micapplication_ptr_id`),
|
|
||||||
KEY `mic_dj_acc_city` (`city_id`)
|
|
||||||
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
|
|
||||||
|
|
||||||
-- --------------------------------------------------------
|
|
||||||
|
|
||||||
--
|
|
||||||
-- Tabellenstruktur für Tabelle `mic_dj_account_cmpy`
|
|
||||||
--
|
|
||||||
|
|
||||||
CREATE TABLE IF NOT EXISTS `mic_dj_account_cmpy` (
|
|
||||||
`djaccount_ptr_id` int(11) NOT NULL,
|
|
||||||
`corporateform` varchar(30) NOT NULL,
|
|
||||||
`owner` varchar(100) NOT NULL,
|
|
||||||
`branch_id` int(11) DEFAULT NULL,
|
|
||||||
`headcount` smallint(6) DEFAULT NULL,
|
|
||||||
`bank_details` varchar(100) DEFAULT NULL,
|
|
||||||
`website` varchar(200) DEFAULT NULL,
|
|
||||||
`css` varchar(200) DEFAULT NULL,
|
|
||||||
`pro_user` int(11) DEFAULT NULL,
|
|
||||||
PRIMARY KEY (`djaccount_ptr_id`),
|
|
||||||
KEY `mic_dj_cmpy_branch` (`branch_id`)
|
|
||||||
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
|
|
||||||
|
|
||||||
-- --------------------------------------------------------
|
|
||||||
|
|
||||||
--
|
|
||||||
-- Tabellenstruktur für Tabelle `mic_dj_account_isearch`
|
|
||||||
--
|
|
||||||
|
|
||||||
CREATE TABLE IF NOT EXISTS `mic_dj_account_isearch` (
|
|
||||||
`id` int(11) NOT NULL AUTO_INCREMENT,
|
|
||||||
`worker_id` int(11) NOT NULL,
|
|
||||||
`branch_id` int(11) NOT NULL,
|
|
||||||
`job_id` int(11) NOT NULL,
|
|
||||||
`kindofjob_id` int(11) NOT NULL,
|
|
||||||
PRIMARY KEY (`id`),
|
|
||||||
UNIQUE KEY `worker_id` (`worker_id`,`job_id`,`kindofjob_id`,`branch_id`),
|
|
||||||
KEY `mic_dj_account_isearch_20fc5b84` (`worker_id`),
|
|
||||||
KEY `kindofjob_id_refs_id_43b3f292` (`kindofjob_id`),
|
|
||||||
KEY `mic_dj_account_isearch_jobs` (`job_id`),
|
|
||||||
KEY `mic_dj_account_isearch_branchs` (`branch_id`)
|
|
||||||
) ENGINE=InnoDB DEFAULT CHARSET=utf8 AUTO_INCREMENT=96 ;
|
|
||||||
|
|
||||||
-- --------------------------------------------------------
|
|
||||||
|
|
||||||
--
|
|
||||||
-- Tabellenstruktur für Tabelle `mic_dj_account_wrk`
|
|
||||||
--
|
|
||||||
|
|
||||||
CREATE TABLE IF NOT EXISTS `mic_dj_account_wrk` (
|
|
||||||
`djaccount_ptr_id` int(11) NOT NULL,
|
|
||||||
`graducation_id` int(11) DEFAULT NULL,
|
|
||||||
`workexperience` smallint(6) DEFAULT NULL,
|
|
||||||
`searchhidden` tinyint(1) NOT NULL,
|
|
||||||
`advertising` tinyint(1) NOT NULL,
|
|
||||||
`leadership_ability` tinyint(1) NOT NULL,
|
|
||||||
`country` varchar(100) NOT NULL,
|
|
||||||
`iam` varchar(300) NOT NULL,
|
|
||||||
PRIMARY KEY (`djaccount_ptr_id`),
|
|
||||||
KEY `mic_dj_account_wrk_b05158b4` (`graducation_id`)
|
|
||||||
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
|
|
||||||
|
|
||||||
-- --------------------------------------------------------
|
|
||||||
|
|
||||||
--
|
|
||||||
-- Tabellenstruktur für Tabelle `mic_dj_cv_entry`
|
|
||||||
--
|
|
||||||
|
|
||||||
CREATE TABLE IF NOT EXISTS `mic_dj_cv_entry` (
|
|
||||||
`id` int(11) NOT NULL AUTO_INCREMENT,
|
|
||||||
`category_id` int(11) NOT NULL,
|
|
||||||
`worker_id` int(11) NOT NULL,
|
|
||||||
`startdate` date DEFAULT NULL,
|
|
||||||
`enddate` date DEFAULT NULL,
|
|
||||||
`title` varchar(100) NOT NULL,
|
|
||||||
`place` varchar(100) NOT NULL,
|
|
||||||
PRIMARY KEY (`id`),
|
|
||||||
KEY `mic_dj_cv_entry_42dc49bc` (`category_id`),
|
|
||||||
KEY `mic_dj_cv_worker` (`worker_id`)
|
|
||||||
) ENGINE=MyISAM DEFAULT CHARSET=latin1 AUTO_INCREMENT=141 ;
|
|
||||||
|
|
||||||
-- --------------------------------------------------------
|
|
||||||
|
|
||||||
--
|
|
||||||
-- Tabellenstruktur für Tabelle `mic_dj_jobs_application`
|
|
||||||
--
|
|
||||||
|
|
||||||
CREATE TABLE IF NOT EXISTS `mic_dj_jobs_application` (
|
|
||||||
`id` int(11) NOT NULL AUTO_INCREMENT,
|
|
||||||
`stars` int(11) NOT NULL,
|
|
||||||
`closed` tinyint(1) NOT NULL,
|
|
||||||
`offered` tinyint(1) NOT NULL,
|
|
||||||
`saw` tinyint(1) NOT NULL,
|
|
||||||
`created` datetime NOT NULL,
|
|
||||||
`worker_id` int(11) NOT NULL,
|
|
||||||
`opening_id` int(11) NOT NULL,
|
|
||||||
`subject` varchar(255) NOT NULL,
|
|
||||||
`text` longtext NOT NULL,
|
|
||||||
PRIMARY KEY (`id`),
|
|
||||||
UNIQUE KEY `worker_id` (`worker_id`,`opening_id`),
|
|
||||||
KEY `mic_dj_jobs_application_20fc5b84` (`worker_id`),
|
|
||||||
KEY `mic_dj_jobs_application_5986cc59` (`opening_id`)
|
|
||||||
) ENGINE=InnoDB DEFAULT CHARSET=utf8 AUTO_INCREMENT=1 ;
|
|
||||||
|
|
||||||
-- --------------------------------------------------------
|
|
||||||
|
|
||||||
--
|
|
||||||
-- Tabellenstruktur für Tabelle `mic_dj_jobs_application_pages`
|
|
||||||
--
|
|
||||||
|
|
||||||
CREATE TABLE IF NOT EXISTS `mic_dj_jobs_application_pages` (
|
|
||||||
`id` int(11) NOT NULL AUTO_INCREMENT,
|
|
||||||
`application_id` int(11) NOT NULL,
|
|
||||||
`page_id` int(11) NOT NULL,
|
|
||||||
PRIMARY KEY (`id`),
|
|
||||||
UNIQUE KEY `application_id` (`application_id`,`page_id`),
|
|
||||||
KEY `mic_dj_jobs_application_pages_398529ef` (`application_id`),
|
|
||||||
KEY `mic_dj_jobs_application_pages_32d04bc7` (`page_id`)
|
|
||||||
) ENGINE=InnoDB DEFAULT CHARSET=utf8 AUTO_INCREMENT=1 ;
|
|
||||||
|
|
||||||
-- --------------------------------------------------------
|
|
||||||
|
|
||||||
--
|
|
||||||
-- Tabellenstruktur für Tabelle `mic_dj_jobs_msg`
|
|
||||||
--
|
|
||||||
|
|
||||||
CREATE TABLE IF NOT EXISTS `mic_dj_jobs_msg` (
|
|
||||||
`id` int(11) NOT NULL AUTO_INCREMENT,
|
|
||||||
`application_id` int(11) NOT NULL,
|
|
||||||
`fromcompany` tinyint(1) NOT NULL,
|
|
||||||
`created` datetime NOT NULL,
|
|
||||||
`saw` tinyint(1) NOT NULL,
|
|
||||||
`text` longtext NOT NULL,
|
|
||||||
PRIMARY KEY (`id`),
|
|
||||||
KEY `mic_dj_jobs_msg_398529ef` (`application_id`)
|
|
||||||
) ENGINE=InnoDB DEFAULT CHARSET=utf8 AUTO_INCREMENT=1 ;
|
|
||||||
|
|
||||||
-- --------------------------------------------------------
|
|
||||||
|
|
||||||
--
|
|
||||||
-- Tabellenstruktur für Tabelle `mic_dj_jobs_opening`
|
|
||||||
--
|
|
||||||
|
|
||||||
CREATE TABLE IF NOT EXISTS `mic_dj_jobs_opening` (
|
|
||||||
`id` int(11) NOT NULL AUTO_INCREMENT,
|
|
||||||
`street` varchar(100) NOT NULL,
|
|
||||||
`city_id` int(11) DEFAULT NULL,
|
|
||||||
`postcode` varchar(100) NOT NULL,
|
|
||||||
`title` varchar(100) NOT NULL,
|
|
||||||
`company_id` int(11) NOT NULL,
|
|
||||||
`graducation_id` int(11) DEFAULT NULL,
|
|
||||||
`branch_id` int(11) DEFAULT NULL,
|
|
||||||
`kindofjob_id` int(11) DEFAULT NULL,
|
|
||||||
`startdate` date NOT NULL,
|
|
||||||
`enddate` date DEFAULT NULL,
|
|
||||||
`active` tinyint(1) NOT NULL,
|
|
||||||
`text` longtext NOT NULL,
|
|
||||||
PRIMARY KEY (`id`),
|
|
||||||
KEY `mic_dj_jobs_opening_543518c6` (`company_id`),
|
|
||||||
KEY `mic_dj_jobs_opening_b05158b4` (`graducation_id`),
|
|
||||||
KEY `mic_dj_jobs_opening_840a080f` (`kindofjob_id`),
|
|
||||||
KEY `mic_dj_opening_branch` (`branch_id`),
|
|
||||||
KEY `mic_dj_opening_city` (`city_id`)
|
|
||||||
) ENGINE=InnoDB DEFAULT CHARSET=utf8 AUTO_INCREMENT=27 ;
|
|
||||||
|
|
||||||
-- --------------------------------------------------------
|
|
||||||
|
|
||||||
--
|
|
||||||
-- Tabellenstruktur für Tabelle `mic_dj_jobs_opening_worker`
|
|
||||||
--
|
|
||||||
|
|
||||||
CREATE TABLE IF NOT EXISTS `mic_dj_jobs_opening_worker` (
|
|
||||||
`id` int(11) NOT NULL AUTO_INCREMENT,
|
|
||||||
`opening_id` int(11) NOT NULL,
|
|
||||||
`worker_id` int(11) NOT NULL,
|
|
||||||
PRIMARY KEY (`id`),
|
|
||||||
UNIQUE KEY `opening_id` (`opening_id`,`worker_id`),
|
|
||||||
KEY `mic_dj_jobs_opening_worker_favOpening` (`opening_id`),
|
|
||||||
KEY `mic_dj_jobs_opening_worker_favWorker` (`worker_id`)
|
|
||||||
) ENGINE=InnoDB DEFAULT CHARSET=utf8 AUTO_INCREMENT=3 ;
|
|
||||||
|
|
||||||
-- --------------------------------------------------------
|
|
||||||
|
|
||||||
--
|
|
||||||
-- Tabellenstruktur für Tabelle `mic_dj_list_branch`
|
|
||||||
--
|
|
||||||
|
|
||||||
CREATE TABLE IF NOT EXISTS `mic_dj_list_branch` (
|
|
||||||
`id` int(11) NOT NULL AUTO_INCREMENT,
|
|
||||||
`name` varchar(100) NOT NULL,
|
|
||||||
PRIMARY KEY (`id`)
|
|
||||||
) ENGINE=InnoDB DEFAULT CHARSET=utf8 AUTO_INCREMENT=70 ;
|
|
||||||
|
|
||||||
-- --------------------------------------------------------
|
|
||||||
|
|
||||||
--
|
|
||||||
-- Tabellenstruktur für Tabelle `mic_dj_list_city`
|
|
||||||
--
|
|
||||||
|
|
||||||
CREATE TABLE IF NOT EXISTS `mic_dj_list_city` (
|
|
||||||
`id` int(11) NOT NULL AUTO_INCREMENT,
|
|
||||||
`name` varchar(100) NOT NULL,
|
|
||||||
PRIMARY KEY (`id`)
|
|
||||||
) ENGINE=InnoDB DEFAULT CHARSET=utf8 AUTO_INCREMENT=1949 ;
|
|
||||||
|
|
||||||
-- --------------------------------------------------------
|
|
||||||
|
|
||||||
--
|
|
||||||
-- Tabellenstruktur für Tabelle `mic_dj_list_country`
|
|
||||||
--
|
|
||||||
|
|
||||||
CREATE TABLE IF NOT EXISTS `mic_dj_list_country` (
|
|
||||||
`id` int(11) NOT NULL AUTO_INCREMENT,
|
|
||||||
`name` varchar(100) NOT NULL,
|
|
||||||
PRIMARY KEY (`id`)
|
|
||||||
) ENGINE=InnoDB DEFAULT CHARSET=utf8 AUTO_INCREMENT=177 ;
|
|
||||||
|
|
||||||
-- --------------------------------------------------------
|
|
||||||
|
|
||||||
--
|
|
||||||
-- Tabellenstruktur für Tabelle `mic_dj_list_cv-category`
|
|
||||||
--
|
|
||||||
|
|
||||||
CREATE TABLE IF NOT EXISTS `mic_dj_list_cv-category` (
|
|
||||||
`id` int(11) NOT NULL AUTO_INCREMENT,
|
|
||||||
`position` int(11) NOT NULL,
|
|
||||||
`name` varchar(100) NOT NULL,
|
|
||||||
`place_str` varchar(100) NOT NULL,
|
|
||||||
`place` tinyint(1) NOT NULL,
|
|
||||||
`title_str` varchar(100) NOT NULL,
|
|
||||||
`enddate` tinyint(1) NOT NULL,
|
|
||||||
`startdate` tinyint(1) NOT NULL,
|
|
||||||
PRIMARY KEY (`id`)
|
|
||||||
) ENGINE=MyISAM DEFAULT CHARSET=latin1 AUTO_INCREMENT=11 ;
|
|
||||||
|
|
||||||
-- --------------------------------------------------------
|
|
||||||
|
|
||||||
--
|
|
||||||
-- Tabellenstruktur für Tabelle `mic_dj_list_graducation`
|
|
||||||
--
|
|
||||||
|
|
||||||
CREATE TABLE IF NOT EXISTS `mic_dj_list_graducation` (
|
|
||||||
`id` int(11) NOT NULL AUTO_INCREMENT,
|
|
||||||
`name` varchar(100) NOT NULL,
|
|
||||||
PRIMARY KEY (`id`)
|
|
||||||
) ENGINE=InnoDB DEFAULT CHARSET=utf8 AUTO_INCREMENT=12 ;
|
|
||||||
|
|
||||||
-- --------------------------------------------------------
|
|
||||||
|
|
||||||
--
|
|
||||||
-- Tabellenstruktur für Tabelle `mic_dj_list_job`
|
|
||||||
--
|
|
||||||
|
|
||||||
CREATE TABLE IF NOT EXISTS `mic_dj_list_job` (
|
|
||||||
`id` int(11) NOT NULL AUTO_INCREMENT,
|
|
||||||
`name` varchar(100) NOT NULL,
|
|
||||||
PRIMARY KEY (`id`)
|
|
||||||
) ENGINE=InnoDB DEFAULT CHARSET=utf8 AUTO_INCREMENT=643 ;
|
|
||||||
|
|
||||||
-- --------------------------------------------------------
|
|
||||||
|
|
||||||
--
|
|
||||||
-- Tabellenstruktur für Tabelle `mic_dj_list_kindofjob`
|
|
||||||
--
|
|
||||||
|
|
||||||
CREATE TABLE IF NOT EXISTS `mic_dj_list_kindofjob` (
|
|
||||||
`id` int(11) NOT NULL AUTO_INCREMENT,
|
|
||||||
`name` varchar(100) NOT NULL,
|
|
||||||
PRIMARY KEY (`id`)
|
|
||||||
) ENGINE=InnoDB DEFAULT CHARSET=utf8 AUTO_INCREMENT=7 ;
|
|
||||||
|
|
||||||
-- --------------------------------------------------------
|
|
||||||
|
|
||||||
--
|
|
||||||
-- Tabellenstruktur für Tabelle `mic_dj_page_image`
|
|
||||||
--
|
|
||||||
|
|
||||||
CREATE TABLE IF NOT EXISTS `mic_dj_page_image` (
|
|
||||||
`page_ptr_id` int(11) NOT NULL,
|
|
||||||
`image` varchar(100) NOT NULL,
|
|
||||||
PRIMARY KEY (`page_ptr_id`)
|
|
||||||
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
|
|
||||||
|
|
||||||
-- --------------------------------------------------------
|
|
||||||
|
|
||||||
--
|
|
||||||
-- Tabellenstruktur für Tabelle `mic_dj_page_inh`
|
|
||||||
--
|
|
||||||
|
|
||||||
CREATE TABLE IF NOT EXISTS `mic_dj_page_inh` (
|
|
||||||
`id` int(11) NOT NULL AUTO_INCREMENT,
|
|
||||||
`user_id` int(11) NOT NULL,
|
|
||||||
`title` varchar(100) NOT NULL,
|
|
||||||
`position` smallint(6) NOT NULL,
|
|
||||||
PRIMARY KEY (`id`),
|
|
||||||
KEY `mic_dj_page_inh_fbfc09f1` (`user_id`)
|
|
||||||
) ENGINE=InnoDB DEFAULT CHARSET=utf8 AUTO_INCREMENT=74 ;
|
|
||||||
|
|
||||||
-- --------------------------------------------------------
|
|
||||||
|
|
||||||
--
|
|
||||||
-- Tabellenstruktur für Tabelle `mic_dj_page_txt`
|
|
||||||
--
|
|
||||||
|
|
||||||
CREATE TABLE IF NOT EXISTS `mic_dj_page_txt` (
|
|
||||||
`page_ptr_id` int(11) NOT NULL,
|
|
||||||
`text` longtext NOT NULL,
|
|
||||||
PRIMARY KEY (`page_ptr_id`)
|
|
||||||
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
|
|
||||||
|
|
||||||
-- --------------------------------------------------------
|
|
||||||
|
|
||||||
--
|
|
||||||
-- Tabellenstruktur für Tabelle `mic_sys_mannerofaddr`
|
|
||||||
--
|
|
||||||
|
|
||||||
CREATE TABLE IF NOT EXISTS `mic_sys_mannerofaddr` (
|
|
||||||
`id` int(11) NOT NULL AUTO_INCREMENT,
|
|
||||||
`name` varchar(100) NOT NULL,
|
|
||||||
PRIMARY KEY (`id`)
|
|
||||||
) ENGINE=InnoDB DEFAULT CHARSET=utf8 AUTO_INCREMENT=5 ;
|
|
||||||
|
|
||||||
-- --------------------------------------------------------
|
|
||||||
|
|
||||||
--
|
|
||||||
-- Tabellenstruktur für Tabelle `mic_sys_micacc`
|
|
||||||
--
|
|
||||||
|
|
||||||
CREATE TABLE IF NOT EXISTS `mic_sys_micacc` (
|
|
||||||
`id` int(11) NOT NULL AUTO_INCREMENT,
|
|
||||||
`first_name` varchar(30) NOT NULL,
|
|
||||||
`last_name` varchar(30) NOT NULL,
|
|
||||||
`is_staff` tinyint(1) NOT NULL,
|
|
||||||
`is_active` tinyint(1) NOT NULL,
|
|
||||||
`is_superuser` tinyint(1) NOT NULL,
|
|
||||||
`last_login` datetime DEFAULT NULL,
|
|
||||||
`date_joined` datetime DEFAULT NULL,
|
|
||||||
`password` varchar(128) NOT NULL,
|
|
||||||
`mail` varchar(75) NOT NULL,
|
|
||||||
`code` varchar(255) NOT NULL,
|
|
||||||
`mannerofaddress_id` int(11) DEFAULT NULL,
|
|
||||||
`avatar` varchar(100) DEFAULT NULL,
|
|
||||||
`nickname` varchar(100) DEFAULT NULL,
|
|
||||||
`bday` date DEFAULT NULL,
|
|
||||||
`comment` varchar(255) NOT NULL,
|
|
||||||
PRIMARY KEY (`id`),
|
|
||||||
UNIQUE KEY `mail` (`mail`),
|
|
||||||
KEY `mic_sys_micacc_6bef5955` (`mannerofaddress_id`)
|
|
||||||
) ENGINE=InnoDB DEFAULT CHARSET=utf8 AUTO_INCREMENT=112 ;
|
|
||||||
|
|
||||||
-- --------------------------------------------------------
|
|
||||||
|
|
||||||
--
|
|
||||||
-- Tabellenstruktur für Tabelle `mic_sys_micapp`
|
|
||||||
--
|
|
||||||
|
|
||||||
CREATE TABLE IF NOT EXISTS `mic_sys_micapp` (
|
|
||||||
`id` int(11) NOT NULL AUTO_INCREMENT,
|
|
||||||
`user_id` int(11) NOT NULL,
|
|
||||||
`take_systemwide` tinyint(1) NOT NULL,
|
|
||||||
`avatar` varchar(100) DEFAULT NULL,
|
|
||||||
`nickname` varchar(100) DEFAULT NULL,
|
|
||||||
`mannerofaddress_id` int(11) DEFAULT NULL,
|
|
||||||
`first_name` varchar(100) DEFAULT NULL,
|
|
||||||
`last_name` varchar(100) DEFAULT NULL,
|
|
||||||
`bday` date DEFAULT NULL,
|
|
||||||
PRIMARY KEY (`id`),
|
|
||||||
KEY `mic_sys_micapp_fbfc09f1` (`user_id`),
|
|
||||||
KEY `mic_sys_micapp_6bef5955` (`mannerofaddress_id`)
|
|
||||||
) ENGINE=InnoDB DEFAULT CHARSET=utf8 AUTO_INCREMENT=107 ;
|
|
||||||
|
|
||||||
--
|
|
||||||
-- Constraints der exportierten Tabellen
|
|
||||||
--
|
|
||||||
|
|
||||||
--
|
|
||||||
-- Constraints der Tabelle `mic_dj_account_acc`
|
|
||||||
--
|
|
||||||
ALTER TABLE `mic_dj_account_acc`
|
|
||||||
ADD CONSTRAINT `mic_dj_acc_city` FOREIGN KEY (`city_id`) REFERENCES `mic_dj_list_city` (`id`) ON DELETE SET NULL ON UPDATE CASCADE,
|
|
||||||
ADD CONSTRAINT `micapplication_ptr_id_refs_id_c3772207` FOREIGN KEY (`micapplication_ptr_id`) REFERENCES `mic_sys_micapp` (`id`) ON DELETE CASCADE ON UPDATE CASCADE;
|
|
||||||
|
|
||||||
--
|
|
||||||
-- Constraints der Tabelle `mic_dj_account_cmpy`
|
|
||||||
--
|
|
||||||
ALTER TABLE `mic_dj_account_cmpy`
|
|
||||||
ADD CONSTRAINT `mic_dj_cmpy_branch` FOREIGN KEY (`branch_id`) REFERENCES `mic_dj_list_branch` (`id`) ON DELETE SET NULL ON UPDATE CASCADE,
|
|
||||||
ADD CONSTRAINT `djaccount_ptr_id_refs_micapplication_ptr_id_a4ed5896` FOREIGN KEY (`djaccount_ptr_id`) REFERENCES `mic_dj_account_acc` (`micapplication_ptr_id`) ON DELETE CASCADE ON UPDATE CASCADE;
|
|
||||||
|
|
||||||
--
|
|
||||||
-- Constraints der Tabelle `mic_dj_account_isearch`
|
|
||||||
--
|
|
||||||
ALTER TABLE `mic_dj_account_isearch`
|
|
||||||
ADD CONSTRAINT `mic_dj_account_isearch_branchs` FOREIGN KEY (`branch_id`) REFERENCES `mic_dj_list_branch` (`id`) ON DELETE CASCADE ON UPDATE CASCADE,
|
|
||||||
ADD CONSTRAINT `kindofjob_id_refs_id_43b3f292` FOREIGN KEY (`kindofjob_id`) REFERENCES `mic_dj_list_kindofjob` (`id`) ON DELETE CASCADE ON UPDATE CASCADE,
|
|
||||||
ADD CONSTRAINT `mic_dj_account_isearch_job` FOREIGN KEY (`job_id`) REFERENCES `mic_dj_list_job` (`id`) ON DELETE CASCADE ON UPDATE CASCADE,
|
|
||||||
ADD CONSTRAINT `worker_id_refs_djaccount_ptr_id_bd052062` FOREIGN KEY (`worker_id`) REFERENCES `mic_dj_account_wrk` (`djaccount_ptr_id`) ON DELETE CASCADE ON UPDATE CASCADE;
|
|
||||||
|
|
||||||
--
|
|
||||||
-- Constraints der Tabelle `mic_dj_account_wrk`
|
|
||||||
--
|
|
||||||
ALTER TABLE `mic_dj_account_wrk`
|
|
||||||
ADD CONSTRAINT `djaccount_ptr_id_refs_micapplication_ptr_id_54e1aa2` FOREIGN KEY (`djaccount_ptr_id`) REFERENCES `mic_dj_account_acc` (`micapplication_ptr_id`) ON DELETE CASCADE ON UPDATE CASCADE,
|
|
||||||
ADD CONSTRAINT `graducation_id_refs_id_855cd518` FOREIGN KEY (`graducation_id`) REFERENCES `mic_dj_list_graducation` (`id`) ON DELETE SET NULL ON UPDATE CASCADE;
|
|
||||||
|
|
||||||
--
|
|
||||||
-- Constraints der Tabelle `mic_dj_jobs_application`
|
|
||||||
--
|
|
||||||
ALTER TABLE `mic_dj_jobs_application`
|
|
||||||
ADD CONSTRAINT `opening_id_refs_id_47ff32e9` FOREIGN KEY (`opening_id`) REFERENCES `mic_dj_jobs_opening` (`id`) ON DELETE CASCADE ON UPDATE CASCADE,
|
|
||||||
ADD CONSTRAINT `worker_id_refs_djaccount_ptr_id_a79561c5` FOREIGN KEY (`worker_id`) REFERENCES `mic_dj_account_wrk` (`djaccount_ptr_id`) ON DELETE CASCADE ON UPDATE CASCADE;
|
|
||||||
|
|
||||||
--
|
|
||||||
-- Constraints der Tabelle `mic_dj_jobs_application_pages`
|
|
||||||
--
|
|
||||||
ALTER TABLE `mic_dj_jobs_application_pages`
|
|
||||||
ADD CONSTRAINT `application_id_refs_id_f7848b52` FOREIGN KEY (`application_id`) REFERENCES `mic_dj_jobs_application` (`id`) ON DELETE CASCADE ON UPDATE CASCADE,
|
|
||||||
ADD CONSTRAINT `page_id_refs_id_e180ca0a` FOREIGN KEY (`page_id`) REFERENCES `mic_dj_page_inh` (`id`) ON DELETE CASCADE ON UPDATE CASCADE;
|
|
||||||
|
|
||||||
--
|
|
||||||
-- Constraints der Tabelle `mic_dj_jobs_msg`
|
|
||||||
--
|
|
||||||
ALTER TABLE `mic_dj_jobs_msg`
|
|
||||||
ADD CONSTRAINT `application_id_refs_id_2fd4efa8` FOREIGN KEY (`application_id`) REFERENCES `mic_dj_jobs_application` (`id`) ON DELETE CASCADE ON UPDATE CASCADE;
|
|
||||||
|
|
||||||
--
|
|
||||||
-- Constraints der Tabelle `mic_dj_jobs_opening`
|
|
||||||
--
|
|
||||||
ALTER TABLE `mic_dj_jobs_opening`
|
|
||||||
ADD CONSTRAINT `mic_dj_opening_city` FOREIGN KEY (`city_id`) REFERENCES `mic_dj_list_city` (`id`) ON DELETE SET NULL ON UPDATE CASCADE,
|
|
||||||
ADD CONSTRAINT `company_id_refs_djaccount_ptr_id_626487b3` FOREIGN KEY (`company_id`) REFERENCES `mic_dj_account_cmpy` (`djaccount_ptr_id`) ON DELETE CASCADE ON UPDATE CASCADE,
|
|
||||||
ADD CONSTRAINT `graducation_id_refs_id_a8e61a24` FOREIGN KEY (`graducation_id`) REFERENCES `mic_dj_list_graducation` (`id`) ON DELETE SET NULL ON UPDATE CASCADE,
|
|
||||||
ADD CONSTRAINT `kindofjob_id_refs_id_5081d52d` FOREIGN KEY (`kindofjob_id`) REFERENCES `mic_dj_list_kindofjob` (`id`) ON DELETE SET NULL ON UPDATE CASCADE,
|
|
||||||
ADD CONSTRAINT `mic_dj_opening_branch` FOREIGN KEY (`branch_id`) REFERENCES `mic_dj_list_branch` (`id`) ON DELETE SET NULL ON UPDATE CASCADE;
|
|
||||||
|
|
||||||
--
|
|
||||||
-- Constraints der Tabelle `mic_dj_jobs_opening_worker`
|
|
||||||
--
|
|
||||||
ALTER TABLE `mic_dj_jobs_opening_worker`
|
|
||||||
ADD CONSTRAINT `mic_dj_jobs_opening_worker_favOpening` FOREIGN KEY (`opening_id`) REFERENCES `mic_dj_jobs_opening` (`id`) ON DELETE CASCADE ON UPDATE CASCADE,
|
|
||||||
ADD CONSTRAINT `mic_dj_jobs_opening_worker_favWorker` FOREIGN KEY (`worker_id`) REFERENCES `mic_dj_account_wrk` (`djaccount_ptr_id`) ON DELETE CASCADE ON UPDATE CASCADE;
|
|
||||||
|
|
||||||
--
|
|
||||||
-- Constraints der Tabelle `mic_dj_page_image`
|
|
||||||
--
|
|
||||||
ALTER TABLE `mic_dj_page_image`
|
|
||||||
ADD CONSTRAINT `page_ptr_id_refs_id_ea810d69` FOREIGN KEY (`page_ptr_id`) REFERENCES `mic_dj_page_inh` (`id`) ON DELETE CASCADE ON UPDATE CASCADE;
|
|
||||||
|
|
||||||
--
|
|
||||||
-- Constraints der Tabelle `mic_dj_page_inh`
|
|
||||||
--
|
|
||||||
ALTER TABLE `mic_dj_page_inh`
|
|
||||||
ADD CONSTRAINT `user_id_refs_micapplication_ptr_id_76059a94` FOREIGN KEY (`user_id`) REFERENCES `mic_dj_account_acc` (`micapplication_ptr_id`) ON DELETE CASCADE ON UPDATE CASCADE;
|
|
||||||
|
|
||||||
--
|
|
||||||
-- Constraints der Tabelle `mic_dj_page_txt`
|
|
||||||
--
|
|
||||||
ALTER TABLE `mic_dj_page_txt`
|
|
||||||
ADD CONSTRAINT `page_ptr_id_refs_id_95fe7fae` FOREIGN KEY (`page_ptr_id`) REFERENCES `mic_dj_page_inh` (`id`) ON DELETE CASCADE ON UPDATE CASCADE;
|
|
||||||
|
|
||||||
--
|
|
||||||
-- Constraints der Tabelle `mic_sys_micacc`
|
|
||||||
--
|
|
||||||
ALTER TABLE `mic_sys_micacc`
|
|
||||||
ADD CONSTRAINT `mannerofaddress_id_refs_id_588ceb1e` FOREIGN KEY (`mannerofaddress_id`) REFERENCES `mic_sys_mannerofaddr` (`id`) ON DELETE SET NULL ON UPDATE CASCADE;
|
|
||||||
|
|
||||||
--
|
|
||||||
-- Constraints der Tabelle `mic_sys_micapp`
|
|
||||||
--
|
|
||||||
ALTER TABLE `mic_sys_micapp`
|
|
||||||
ADD CONSTRAINT `mannerofaddress_id_refs_id_451bee0` FOREIGN KEY (`mannerofaddress_id`) REFERENCES `mic_sys_mannerofaddr` (`id`) ON DELETE SET NULL ON UPDATE CASCADE,
|
|
||||||
ADD CONSTRAINT `user_id_refs_id_ae61ec29` FOREIGN KEY (`user_id`) REFERENCES `mic_sys_micacc` (`id`) ON DELETE CASCADE ON UPDATE CASCADE;
|
|
113
update.sql
113
update.sql
|
@ -1,113 +0,0 @@
|
||||||
-- ACHTUNG:
|
|
||||||
-- ERSTE folgende CONTSTRAINTS:
|
|
||||||
--- CV
|
|
||||||
--- BRANCHE und CIty ....
|
|
||||||
--
|
|
||||||
--ALTER TABLE `mic_dj_jobs_opening` ADD CONSTRAINT `jobsopening_kindofjob_id` FOREIGN KEY (`kindofjob_id`) REFERENCES `mic_dj_list_kindofjob` (`id`) ON DELETE SET NULL ON UPDATE CASCADE;
|
|
||||||
-- Datenbank: `muellersql3`
|
|
||||||
--
|
|
||||||
|
|
||||||
-- --------------------------------------------------------
|
|
||||||
|
|
||||||
--
|
|
||||||
-- Tabellenstruktur für Tabelle `mic_dj_job_opening_worker`
|
|
||||||
--
|
|
||||||
|
|
||||||
Update `mic_dj_list_branch` `a` join `mic_dj_list_branch` `d` on `d`.`id` = `a`.`id` set `a`.`name`=replace(`d`.`name`,' ','') where `a`.`name` like ' %'
|
|
||||||
|
|
||||||
CREATE TABLE IF NOT EXISTS `mic_dj_jobs_opening_worker` (
|
|
||||||
`id` int(11) NOT NULL AUTO_INCREMENT,
|
|
||||||
`opening_id` int(11) NOT NULL,
|
|
||||||
`worker_id` int(11) NOT NULL,
|
|
||||||
PRIMARY KEY (`id`),
|
|
||||||
UNIQUE KEY `opening_id` (`opening_id`,`worker_id`),
|
|
||||||
KEY `mic_dj_jobs_opening_worker_favOpening` (`opening_id`),
|
|
||||||
KEY `mic_dj_jobs_opening_worker_favWorker` (`worker_id`)
|
|
||||||
) ENGINE=InnoDB DEFAULT CHARSET=utf8 AUTO_INCREMENT=1 ;
|
|
||||||
|
|
||||||
|
|
||||||
--
|
|
||||||
-- Tabellenstruktur für Tabelle `mic_dj_account_cmpy` ändern
|
|
||||||
-- ProCompanyAccount
|
|
||||||
--
|
|
||||||
|
|
||||||
ALTER TABLE `mic_dj_account_cmpy` ADD `pro_user` INT NOT NULL ;
|
|
||||||
|
|
||||||
|
|
||||||
--
|
|
||||||
-- Constraints der exportierten Tabellen
|
|
||||||
--
|
|
||||||
|
|
||||||
--
|
|
||||||
-- Constraints der Tabelle `mic_dj_job_opening_worker`
|
|
||||||
--
|
|
||||||
ALTER TABLE `mic_dj_jobs_opening_worker`
|
|
||||||
ADD CONSTRAINT `mic_dj_jobs_opening_worker_favOpening` FOREIGN KEY (`opening_id`) REFERENCES `mic_dj_jobs_opening` (`id`),
|
|
||||||
ADD CONSTRAINT `mic_dj_jobs_opening_worker_favWorker` FOREIGN KEY (`worker_id`) REFERENCES `mic_dj_account_wrk` (`djaccount_ptr_id`);
|
|
||||||
|
|
||||||
-- %%%
|
|
||||||
|
|
||||||
|
|
||||||
-- ACHTUNG:
|
|
||||||
-- 3/15
|
|
||||||
update `mic_dj_account_cmpy` left join `mic_dj_list_branch` on `name`=`branch` set `branch`=`mic_dj_list_branch`.`id`;
|
|
||||||
ALTER TABLE `mic_dj_account_cmpy` CHANGE `branch` `branch_id` INT(11) NOT NULL;
|
|
||||||
|
|
||||||
-- %%%
|
|
||||||
|
|
||||||
-- 2/4
|
|
||||||
update `mic_dj_jobs_opening` left join `mic_dj_list_branch` on `name`=`branch` set `branch`=`mic_dj_list_branch`.`id`;
|
|
||||||
ALTER TABLE `mic_dj_jobs_opening` CHANGE `branch` `branch_id` INT(11) NOT NULL;
|
|
||||||
|
|
||||||
|
|
||||||
-- LOLA
|
|
||||||
-- 15/70
|
|
||||||
update `mic_dj_account_isearch` left join `mic_dj_list_job` on `name`=`job` set `job`=`mic_dj_list_job`.`id`
|
|
||||||
|
|
||||||
update `mic_dj_account_isearch` left join `mic_dj_list_branch` on `name`=`branch` set `job`=`mic_dj_list_branch`.`id`
|
|
||||||
|
|
||||||
ALTER TABLE `mic_dj_account_isearch` CHANGE `branch` `branch_id` INT(11) NOT NULL;
|
|
||||||
ALTER TABLE `mic_dj_account_isearch` CHANGE `job` `job_id` INT(11) NOT NULL;
|
|
||||||
-- %%%
|
|
||||||
ALTER TABLE `mic_dj_account_isearch`
|
|
||||||
ADD CONSTRAINT `mic_dj_account_isearch_branch` FOREIGN KEY (`branch_id`) REFERENCES `mic_dj_list_branch` (`id`),
|
|
||||||
ADD CONSTRAINT `mic_dj_account_isearch_job` FOREIGN KEY (`job_id`) REFERENCES `mic_dj_list_job` (`id`);
|
|
||||||
-- Lebenslauf;
|
|
||||||
ALTER TABLE `mic_dj_cv_entry` ADD `worker_id` INT(11) NOT NULL AFTER `category_id`;
|
|
||||||
Update `mic_dj_cv_entry` left join `mic_dj_cv_category` on `mic_dj_cv_category`.`id` = `mic_dj_cv_entry`.`category_id` set `mic_dj_cv_entry`.`worker_id`=`mic_dj_cv_category`.`worker_id`;
|
|
||||||
Update `mic_dj_cv_entry` left join `mic_dj_cv_category` on `mic_dj_cv_category`.`id` = `mic_dj_cv_entry`.`category_id` set `mic_dj_cv_entry`.`category_id`=`mic_dj_cv_category`.`category_id`;
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
Update `mic_sys_micacc` `a` join `mic_sys_micacc` `d` on `d`.`id` = `a`.`id` set `a`.`code`=concat('a:',`d`.`code`) where not `a`.`code` like '_:%' and not `a`.`code` ='';
|
|
||||||
--Update `mic_sys_micacc` `a` join `mic_sys_micacc` `d` on `d`.`id` = `a`.`id` set `a`.`code`=replace(`d`.`code`,'a:','') where `a`.`code` like 'a:\%%'
|
|
||||||
--Update `mic_sys_micacc` `a` join `mic_sys_micacc` `d` on `d`.`id` = `a`.`id` set `a`.`code`=replace(`d`.`code`,'a:','') where not `a`.`code` like '_:%'
|
|
||||||
|
|
||||||
-- cv sortieren
|
|
||||||
--ALTER TABLE `mic_dj_list_cv-category` ADD `position` INT NOT NULL AFTER `id`;
|
|
||||||
--UPDATE `mic_dj_list_cv-category` SET `position` = '10' WHERE `mic_dj_list_cv-category`.`id` = 1;
|
|
||||||
--UPDATE `mic_dj_list_cv-category` SET `position` = '20' WHERE `mic_dj_list_cv-category`.`id` = 9;
|
|
||||||
--UPDATE `mic_dj_list_cv-category` SET `position` = '30' WHERE `mic_dj_list_cv-category`.`id` = 3;
|
|
||||||
--UPDATE `mic_dj_list_cv-category` SET `position` = '40' WHERE `mic_dj_list_cv-category`.`id` = 5;
|
|
||||||
--UPDATE `mic_dj_list_cv-category` SET `position` = '50' WHERE `mic_dj_list_cv-category`.`id` = 6;
|
|
||||||
--UPDATE `mic_dj_list_cv-category` SET `position` = '60' WHERE `mic_dj_list_cv-category`.`id` = 7;
|
|
||||||
--UPDATE `mic_dj_list_cv-category` SET `position` = '70' WHERE `mic_dj_list_cv-category`.`id` = 8;
|
|
||||||
--UPDATE `mic_dj_list_cv-category` SET `position` = '80' WHERE `mic_dj_list_cv-category`.`id` = 2;
|
|
||||||
--UPDATE `mic_dj_list_cv-category` SET `position` = '90' WHERE `mic_dj_list_cv-category`.`id` = 10;
|
|
||||||
|
|
||||||
|
|
||||||
-- CITY in abhängigkeit
|
|
||||||
update `mic_dj_account_acc` left join `mic_dj_list_city` on `name`=`city` set `city`=`mic_dj_list_city`.`id`;
|
|
||||||
update `mic_dj_jobs_opening` left join `mic_dj_list_city` on `name`=`city` set `city`=`mic_dj_list_city`.`id`;
|
|
||||||
ALTER TABLE `mic_dj_account_acc` CHANGE `city` `city_id` INT(11) NOT NULL;
|
|
||||||
ALTER TABLE `mic_dj_jobs_opening` CHANGE `city` `city_id` INT(11) NOT NULL;
|
|
||||||
-- opening:1/5
|
|
||||||
-- acc:22/71
|
|
||||||
|
|
||||||
|
|
||||||
ALTER TABLE `mic_dj_jobs_application` ADD `subject` VARCHAR( 255 ) NOT NULL AFTER `opening_id`
|
|
||||||
|
|
||||||
--- update `mic_sys_micacc` `n` left join `mic_sys_micacc` `o` on o.id=n.id SET n.code = md5(SUBSTRING(o.code, 3, CHAR_LENGTH(o.code)-2)) WHERE n.`code` Like "_:%" and o.`code` Like "_:%"
|
|
||||||
|
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue