prepared initial (empty) database
This commit is contained in:
parent
dc09cfbf8d
commit
b3979d3126
|
@ -1,15 +1,13 @@
|
||||||
-- phpMyAdmin SQL Dump
|
-- phpMyAdmin SQL Dump
|
||||||
-- version 4.7.0
|
-- version 4.5.4.1deb2ubuntu2
|
||||||
-- https://www.phpmyadmin.net/
|
-- http://www.phpmyadmin.net
|
||||||
--
|
--
|
||||||
-- Gostitelj: 127.0.0.1
|
-- Host: localhost
|
||||||
-- Čas nastanka: 01. avg 2018 ob 20.14
|
-- Generation Time: Aug 20, 2018 at 12:50 PM
|
||||||
-- Različica strežnika: 10.1.22-MariaDB
|
-- Server version: 5.7.23-0ubuntu0.16.04.1
|
||||||
-- Različica PHP: 7.1.4
|
-- PHP Version: 7.0.30-0ubuntu0.16.04.1
|
||||||
|
|
||||||
SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO";
|
SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO";
|
||||||
SET AUTOCOMMIT = 0;
|
|
||||||
START TRANSACTION;
|
|
||||||
SET time_zone = "+00:00";
|
SET time_zone = "+00:00";
|
||||||
|
|
||||||
|
|
||||||
|
@ -19,13 +17,13 @@ SET time_zone = "+00:00";
|
||||||
/*!40101 SET NAMES utf8mb4 */;
|
/*!40101 SET NAMES utf8mb4 */;
|
||||||
|
|
||||||
--
|
--
|
||||||
-- Zbirka podatkov: `digital_atlas`
|
-- Database: `digital_atlas`
|
||||||
--
|
--
|
||||||
|
|
||||||
-- --------------------------------------------------------
|
-- --------------------------------------------------------
|
||||||
|
|
||||||
--
|
--
|
||||||
-- Struktura tabele `dialects`
|
-- Table structure for table `dialects`
|
||||||
--
|
--
|
||||||
|
|
||||||
CREATE TABLE `dialects` (
|
CREATE TABLE `dialects` (
|
||||||
|
@ -36,7 +34,7 @@ CREATE TABLE `dialects` (
|
||||||
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_slovenian_ci;
|
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_slovenian_ci;
|
||||||
|
|
||||||
--
|
--
|
||||||
-- Odloži podatke za tabelo `dialects`
|
-- Dumping data for table `dialects`
|
||||||
--
|
--
|
||||||
|
|
||||||
INSERT INTO `dialects` (`id`, `name`, `type`, `id_parent`) VALUES
|
INSERT INTO `dialects` (`id`, `name`, `type`, `id_parent`) VALUES
|
||||||
|
@ -101,7 +99,7 @@ INSERT INTO `dialects` (`id`, `name`, `type`, `id_parent`) VALUES
|
||||||
-- --------------------------------------------------------
|
-- --------------------------------------------------------
|
||||||
|
|
||||||
--
|
--
|
||||||
-- Struktura tabele `lexems`
|
-- Table structure for table `lexems`
|
||||||
--
|
--
|
||||||
|
|
||||||
CREATE TABLE `lexems` (
|
CREATE TABLE `lexems` (
|
||||||
|
@ -123,103 +121,11 @@ CREATE TABLE `lexems` (
|
||||||
`star` tinyint(4) NOT NULL DEFAULT '0'
|
`star` tinyint(4) NOT NULL DEFAULT '0'
|
||||||
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_slovenian_ci;
|
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_slovenian_ci;
|
||||||
|
|
||||||
--
|
|
||||||
-- Odloži podatke za tabelo `lexems`
|
|
||||||
--
|
|
||||||
|
|
||||||
INSERT INTO `lexems` (`id`, `title`, `icon1`, `id_word`, `icon_color1`, `icon_size1`, `icon2`, `icon_color2`, `icon_size2`, `icon3`, `icon_color3`, `icon_size3`, `icon4`, `icon_color4`, `icon_size4`, `star`) VALUES
|
|
||||||
(10, 'kelder', '倁', 19, '#c00000', '0', '0', '0', '0', '0', '0', '0', '0', '0', '0', 0),
|
|
||||||
(11, 'hram', '嘁', 19, '#ffc000', '0', '0', '0', '0', '0', '0', '0', '0', '0', '0', 0),
|
|
||||||
(12, 'pivníca', '币', 19, '#0000cc', '0', '0', '0', '0', '0', '0', '0', '0', '0', '0', 0),
|
|
||||||
(13, 'klet', '樁', 19, '#006600', '0', '0', '0', '0', '0', '0', '0', '0', '0', '0', 0),
|
|
||||||
(14, 'špajz', '刁', 18, '#002060', '0', '0', '0', '0', '0', '0', '0', '0', '0', '0', 0),
|
|
||||||
(15, 'špajza', '倁', 18, '#ff0000', '0', '0', '0', '0', '0', '0', '0', '0', '0', '0', 0),
|
|
||||||
(16, 'špajzvelb', '刦', 18, '#002060', '0', '0', '0', '0', '0', '0', '0', '0', '0', '0', 0),
|
|
||||||
(17, 'kamúra', '嘁', 18, '#660066', '0', '0', '0', '0', '0', '0', '0', '0', '0', '0', 0),
|
|
||||||
(18, 'štenge', '倁', 19, '#0080ff', '0', '0', '0', '0', '0', '0', '0', '0', '0', '0', 0),
|
|
||||||
(19, 'štege', '刁', 20, '#ff0000', '0', '0', '0', '0', '0', '0', '0', '0', '0', '0', 0),
|
|
||||||
(20, 'stube', '币', 20, '#0000ff', '0', '0', '0', '0', '0', '0', '0', '0', '0', '0', 0),
|
|
||||||
(21, 'škale', '嘁', 20, '#ffc000', '0', '0', '0', '0', '0', '0', '0', '0', '0', '0', 0),
|
|
||||||
(22, 'stranišče', '樁', 21, '#006600', '0', '0', '0', '0', '0', '0', '0', '0', '0', '0', 0),
|
|
||||||
(23, 'sekret', '倁', 21, '#0000ff', '0', '0', '0', '0', '0', '0', '0', '0', '0', '0', 0),
|
|
||||||
(24, 'cekret', '刁', 21, '#0070c0', '0', '0', '0', '0', '0', '0', '0', '0', '0', '0', 0),
|
|
||||||
(25, 'hajzelj', '嘁', 21, '#c00000', '0', '0', '0', '0', '0', '0', '0', '0', '0', '0', 0),
|
|
||||||
(26, 'lajben', '币', 21, '#663300', '0', '0', '0', '0', '0', '0', '0', '0', '0', '0', 0),
|
|
||||||
(27, 'kandot', '态', 21, '#660066', '0', '0', '0', '0', '0', '0', '0', '0', '0', '0', 0),
|
|
||||||
(28, 'veža', '樁', 22, '#006600', '0', '0', '0', '0', '0', '0', '0', '0', '0', '0', 0),
|
|
||||||
(29, 'lopa', '倁', 22, '#0000cc', '0', '0', '0', '0', '0', '0', '0', '0', '0', '0', 0),
|
|
||||||
(30, 'priklet', '嘁', 22, '#006600', '0', '0', '0', '0', '0', '0', '0', '0', '0', '0', 0),
|
|
||||||
(31, 'predklet', '威', 22, '#3d3d3d', '0', '0', '0', '0', '0', '0', '0', '0', '0', '0', 0),
|
|
||||||
(32, 'sala, šala', '币', 22, '#660066', '0', '0', '0', '0', '0', '0', '0', '0', '0', '0', 0),
|
|
||||||
(33, 'štenge', '倁', 20, '#c00000', '0', '0', '0', '0', '0', '0', '0', '0', '0', '0', 0),
|
|
||||||
(34, 'pivníca, klet', '币樁', 19, '#0000cc', '0', '0', '0', '0', '0', '0', '0', '0', '0', '0', 0),
|
|
||||||
(46, 'sekret na štrbunk', '冰', 21, '#0000cc', '0', '0', '0', '0', '0', '0', '0', '0', '0', '0', 0),
|
|
||||||
(48, 'kejder', '刁', 19, '#ff0000', '0', '0', '0', '0', '0', '0', '0', '0', '0', '0', 0),
|
|
||||||
(49, 'šankret', '吁', 21, '#0070c0', '0', '0', '0', '0', '0', '0', '0', '0', '0', '0', 0),
|
|
||||||
(50, 'lojpa', '刁', 22, '#333399', '0', '0', '0', '0', '0', '0', '0', '0', '0', '0', 0),
|
|
||||||
(52, 'ponva', '嘁', 41, '#b99a3a', '0', '0', '0', '0', '0', '0', '0', '0', '0', '0', 0),
|
|
||||||
(55, 'sadje', '▼', 45, '#ff8000', '0', '0', '0', '0', '0', '0', '0', '0', '0', '0', 0),
|
|
||||||
(56, 'sadunak', '倁', 44, '#0000ff', '0', '0', '0', '0', '0', '0', '0', '0', '0', '0', 0),
|
|
||||||
(59, 'blina', '倁', 56, '#ff0000', '0', '0', '0', '0', '0', '0', '0', '0', '0', '0', 0),
|
|
||||||
(60, 'divjak', '倁', 50, '#0000ff', '0', '0', '0', '0', '0', '0', '0', '0', '0', '0', 0),
|
|
||||||
(61, 'cvet', '倁', 62, '#0000ff', '0', '0', '0', '0', '0', '0', '0', '0', '0', '0', 0),
|
|
||||||
(62, 'Jabuku les', '倁', 57, '#0000ff', '0', '0', '0', '0', '0', '0', '0', '0', '0', '0', 0),
|
|
||||||
(63, 'jabuk', '倁', 43, '#0000ff', '0', '0', '0', '0', '0', '0', '0', '0', '0', '0', 0),
|
|
||||||
(64, 'jablana', '倁', 49, '#ff0000', '0', '0', '0', '0', '0', '0', '0', '0', '0', '0', 0),
|
|
||||||
(65, 'pecl', '倁', 46, '#0000ff', '0', '0', '0', '0', '0', '0', '0', '0', '0', '0', 0),
|
|
||||||
(66, 'ugrizek', '倁', 66, '#0000ff', '0', '0', '0', '0', '0', '0', '0', '0', '0', '0', 0),
|
|
||||||
(67, 'japka', '倁', 43, '#ff0000', '0', '0', '0', '0', '0', '0', '0', '0', '0', '0', 0),
|
|
||||||
(68, 'japko', '倁', 43, '#ffff00', '0', '0', '0', '0', '0', '0', '0', '0', '0', '0', 0),
|
|
||||||
(69, 'jobuka', '倁', 43, '#ff0000', '0', '0', '0', '0', '0', '0', '0', '0', '0', '0', 0),
|
|
||||||
(70, 'haubka', '倁', 43, '#ff0000', '0', '0', '0', '0', '0', '0', '0', '0', '0', '0', 0),
|
|
||||||
(72, 'japku', '倁', 43, '#0000ff', '0', '0', '0', '0', '0', '0', '0', '0', '0', '0', 0),
|
|
||||||
(73, 'japk', '倁', 43, '#0000ff', '0', '0', '0', '0', '0', '0', '0', '0', '0', '0', 0),
|
|
||||||
(74, 'sadni vrt', '倁', 44, '#0000ff', '0', '0', '0', '0', '0', '0', '0', '0', '0', '0', 0),
|
|
||||||
(75, 'jabuka', '倁', 43, '#ff0000', '0', '0', '0', '0', '0', '0', '0', '0', '0', '0', 0),
|
|
||||||
(76, 'jaboka', '倁', 43, '#ff0000', '0', '0', '0', '0', '0', '0', '0', '0', '0', '0', 0),
|
|
||||||
(77, 'jablan', '倁', 49, '#ff0000', '0', '0', '0', '0', '0', '0', '0', '0', '0', '0', 0),
|
|
||||||
(78, 'jabvana', '倁', 49, '#ff0000', '0', '0', '0', '0', '0', '0', '0', '0', '0', '0', 0),
|
|
||||||
(79, 'jabuk', '倁', 49, '#0000ff', '0', '0', '0', '0', '0', '0', '0', '0', '0', '0', 0),
|
|
||||||
(80, 'jabuka', '倁', 49, '#ff0000', '0', '0', '0', '0', '0', '0', '0', '0', '0', '0', 0),
|
|
||||||
(81, 'japk', '倁', 49, '#0000ff', '0', '0', '0', '0', '0', '0', '0', '0', '0', '0', 0),
|
|
||||||
(82, 'japka', '倁', 49, '#ff0000', '0', '0', '0', '0', '0', '0', '0', '0', '0', '0', 0),
|
|
||||||
(83, 'jobuka', '倁', 49, '#ff0000', '0', '0', '0', '0', '0', '0', '0', '0', '0', '0', 0),
|
|
||||||
(84, 'abjietk', '倘', 66, '#0000ff', '0', '0', '0', '0', '0', '0', '0', '0', '0', '0', 0),
|
|
||||||
(86, 'abribek', '倘', 66, '#0000ff', '0', '0', '0', '0', '0', '0', '0', '0', '0', '0', 0),
|
|
||||||
(88, 'grižli', '傂', 66, '#0000ff', '0', '0', '0', '0', '0', '0', '0', '0', '0', '0', 0),
|
|
||||||
(89, 'obgrizek', '倁', 66, '#0000ff', '0', '0', '0', '0', '0', '0', '0', '0', '0', '0', 0),
|
|
||||||
(90, 'objetk', '倢', 66, '#ff0000', '0', '0', '0', '0', '0', '0', '0', '0', '0', '0', 0),
|
|
||||||
(91, 'obresk', '倁', 66, '#000000', '0', '0', '0', '0', '0', '0', '0', '0', '0', '0', 0),
|
|
||||||
(92, 'obriešk', '倁', 66, '#000000', '0', '0', '0', '0', '0', '0', '0', '0', '0', '0', 0),
|
|
||||||
(93, 'obrišk', '倁', 66, '#000000', '0', '0', '0', '0', '0', '0', '0', '0', '0', '0', 0),
|
|
||||||
(94, 'ogludek', '倁', 66, '#0000ff', '0', '0', '0', '0', '0', '0', '0', '0', '0', '0', 0),
|
|
||||||
(95, 'ogrisk', '倁', 66, '#0000ff', '0', '0', '0', '0', '0', '0', '0', '0', '0', '0', 0),
|
|
||||||
(96, 'ogrizek', '倁', 66, '#0000ff', '0', '0', '0', '0', '0', '0', '0', '0', '0', '0', 0),
|
|
||||||
(97, 'ogrizok', '倁', 66, '#0000ff', '0', '0', '0', '0', '0', '0', '0', '0', '0', '0', 0),
|
|
||||||
(98, 'štingel', '入', 66, '#ff0000', '0', '0', '0', '0', '0', '0', '0', '0', '0', '0', 0),
|
|
||||||
(99, 'uaglieuk', '嘁', 66, '#000080', '0', '0', '0', '0', '0', '0', '0', '0', '0', '0', 0),
|
|
||||||
(100, 'ubrezek', '倁', 66, '#000000', '0', '0', '0', '0', '0', '0', '0', '0', '0', '0', 0),
|
|
||||||
(101, 'ugrisk', '倁', 66, '#0000ff', '0', '0', '0', '0', '0', '0', '0', '0', '0', '0', 0),
|
|
||||||
(102, 'vabidk', '倁', 66, '#000000', '0', '0', '0', '0', '0', '0', '0', '0', '0', '0', 0),
|
|
||||||
(103, 'vagrizek', '倢', 66, '#0000ff', '0', '0', '0', '0', '0', '0', '0', '0', '0', '0', 0),
|
|
||||||
(104, 'zgrijsk', '倁', 66, '#000000', '0', '0', '0', '0', '0', '0', '0', '0', '0', '0', 0),
|
|
||||||
(105, 'zgrijzek', '倁', 66, '#000000', '0', '0', '0', '0', '0', '0', '0', '0', '0', '0', 0),
|
|
||||||
(106, 'zgrijžek', '倁', 66, '#000000', '0', '0', '0', '0', '0', '0', '0', '0', '0', '0', 0),
|
|
||||||
(107, 'zgrizek', '倁', 66, '#000000', '0', '0', '0', '0', '0', '0', '0', '0', '0', '0', 0),
|
|
||||||
(108, 'zribek', '嘁', 66, '#0000ff', '0', '0', '0', '0', '0', '0', '0', '0', '0', '0', 0),
|
|
||||||
(111, 'oglodek', '倁', 66, '#000000', '0', '0', '0', '0', '0', '0', '0', '0', '0', '0', 0),
|
|
||||||
(112, 'objetk', '倁', 66, '#000000', '0', '0', '0', '0', '0', '0', '0', '0', '0', '0', 0),
|
|
||||||
(114, 'objetk', '倁', 66, '#000000', '0', '0', '0', '0', '0', '0', '0', '0', '0', '0', 0),
|
|
||||||
(115, 'češpla', '倘', 54, '#ff0000', '0', '0', '0', '0', '0', '0', '0', '0', '0', '0', 0),
|
|
||||||
(116, 'ugrizek', '倘', 66, '#ff0000', '0', '0', '0', '0', '0', '0', '0', '0', '0', '0', 0),
|
|
||||||
(117, 'črnušnica', '嘁', 52, '#ff0000', '0', '0', '0', '0', '0', '0', '0', '0', '0', '0', 0),
|
|
||||||
(122, 'AATEST', '倘', 41, '#800040', 'small', '傂', '#008000', 'small', '傂', '#00ff00', 'normal', '傂', '#ff0000', 'small', 0),
|
|
||||||
(123, 'nov', '倁', 41, '#0080ff', 'normal', '傂', '#00ff00', 'normal', '傂', '#ff8080', 'normal', '傂', '#800000', 'normal', 1);
|
|
||||||
|
|
||||||
-- --------------------------------------------------------
|
-- --------------------------------------------------------
|
||||||
|
|
||||||
--
|
--
|
||||||
-- Struktura tabele `locations`
|
-- Table structure for table `locations`
|
||||||
--
|
--
|
||||||
|
|
||||||
CREATE TABLE `locations` (
|
CREATE TABLE `locations` (
|
||||||
|
@ -234,18 +140,11 @@ CREATE TABLE `locations` (
|
||||||
`id_subsubdialect` int(11) DEFAULT NULL
|
`id_subsubdialect` int(11) DEFAULT NULL
|
||||||
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_slovenian_ci;
|
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_slovenian_ci;
|
||||||
|
|
||||||
--
|
|
||||||
-- Odloži podatke za tabelo `locations`
|
|
||||||
--
|
|
||||||
|
|
||||||
INSERT INTO `locations` (`id`, `name`, `short_name`, `id_subject`, `lat`, `long`, `id_dialect`, `id_subdialect`, `id_subsubdialect`) VALUES
|
|
||||||
(1, 'rokometas77', 'L', 11, '46.400000', '13.559000', 12, 14, 15),
|
|
||||||
(3, 'rokometas77a', 'UTa', 11, '46.338004', '13.551377', 12, 16, NULL);
|
|
||||||
|
|
||||||
-- --------------------------------------------------------
|
-- --------------------------------------------------------
|
||||||
|
|
||||||
--
|
--
|
||||||
-- Struktura tabele `subjects`
|
-- Table structure for table `subjects`
|
||||||
--
|
--
|
||||||
|
|
||||||
CREATE TABLE `subjects` (
|
CREATE TABLE `subjects` (
|
||||||
|
@ -253,19 +152,11 @@ CREATE TABLE `subjects` (
|
||||||
`title` varchar(255) COLLATE utf8_slovenian_ci NOT NULL
|
`title` varchar(255) COLLATE utf8_slovenian_ci NOT NULL
|
||||||
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_slovenian_ci;
|
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_slovenian_ci;
|
||||||
|
|
||||||
--
|
|
||||||
-- Odloži podatke za tabelo `subjects`
|
|
||||||
--
|
|
||||||
|
|
||||||
INSERT INTO `subjects` (`id`, `title`) VALUES
|
|
||||||
(1, 'Stara kmečka hiša'),
|
|
||||||
(11, 'Posoda'),
|
|
||||||
(12, 'Sadje');
|
|
||||||
|
|
||||||
-- --------------------------------------------------------
|
-- --------------------------------------------------------
|
||||||
|
|
||||||
--
|
--
|
||||||
-- Struktura tabele `transcriptions`
|
-- Table structure for table `transcriptions`
|
||||||
--
|
--
|
||||||
|
|
||||||
CREATE TABLE `transcriptions` (
|
CREATE TABLE `transcriptions` (
|
||||||
|
@ -277,18 +168,11 @@ CREATE TABLE `transcriptions` (
|
||||||
`trans_text` text COLLATE utf8_slovenian_ci NOT NULL
|
`trans_text` text COLLATE utf8_slovenian_ci NOT NULL
|
||||||
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_slovenian_ci;
|
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_slovenian_ci;
|
||||||
|
|
||||||
--
|
|
||||||
-- Odloži podatke za tabelo `transcriptions`
|
|
||||||
--
|
|
||||||
|
|
||||||
INSERT INTO `transcriptions` (`id`, `phonetic_writing`, `audio`, `id_lexem`, `id_location`, `trans_text`) VALUES
|
|
||||||
(2, 'tetett', '', 122, 3, ''),
|
|
||||||
(3, 'NOV', '', 123, 1, '');
|
|
||||||
|
|
||||||
-- --------------------------------------------------------
|
-- --------------------------------------------------------
|
||||||
|
|
||||||
--
|
--
|
||||||
-- Struktura tabele `users`
|
-- Table structure for table `users`
|
||||||
--
|
--
|
||||||
|
|
||||||
CREATE TABLE `users` (
|
CREATE TABLE `users` (
|
||||||
|
@ -301,19 +185,16 @@ CREATE TABLE `users` (
|
||||||
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_slovenian_ci;
|
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_slovenian_ci;
|
||||||
|
|
||||||
--
|
--
|
||||||
-- Odloži podatke za tabelo `users`
|
-- Dumping data for table `users`
|
||||||
--
|
--
|
||||||
|
|
||||||
INSERT INTO `users` (`id`, `username`, `name`, `lastname`, `password_hash`, `sess_expiration`) VALUES
|
INSERT INTO `users` (`id`, `username`, `name`, `lastname`, `password_hash`, `sess_expiration`) VALUES
|
||||||
(1, 'admin', 'Admin', '', '$2y$10$MrlyWB6bT1CL4andhON1eu3y2QGBgi4Evkw0HiDJQ9ioMFdxbjO.K', 60),
|
(1, 'admin', 'Admin', '', '$2y$10$bvfsnL9h3A5Dt6IaRT.m7eh/4GXmSgA/5s6wBUHJYrGgBtjDVoxYq', 60);
|
||||||
(7, 'gsajn', 'Gregor', 'Šajn', '$2y$10$Nun729Yuts/U2FHH3zU8fuu1lanVfJj5oiMuhNREqm7XEXfjZLktK', 60),
|
|
||||||
(8, 'alenka', 'Alenka', 'K.', '$2y$10$FeAHVPb1SOAB1r7EJ2fZReMZtQ.Kgb0b1akGrLmMa7YRqLf96yXfG', 60),
|
|
||||||
(9, 'vera', 'Vera', 'Smole', '$2y$10$U5LOzVGG2fL3Ypa6uW3imurb3NtZxlI310nW91Y6Zwxg4tpfohu6S', 60);
|
|
||||||
|
|
||||||
-- --------------------------------------------------------
|
-- --------------------------------------------------------
|
||||||
|
|
||||||
--
|
--
|
||||||
-- Struktura tabele `words`
|
-- Table structure for table `words`
|
||||||
--
|
--
|
||||||
|
|
||||||
CREATE TABLE `words` (
|
CREATE TABLE `words` (
|
||||||
|
@ -324,60 +205,27 @@ CREATE TABLE `words` (
|
||||||
`id_subject` int(11) DEFAULT NULL
|
`id_subject` int(11) DEFAULT NULL
|
||||||
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_slovenian_ci;
|
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_slovenian_ci;
|
||||||
|
|
||||||
--
|
|
||||||
-- Odloži podatke za tabelo `words`
|
|
||||||
--
|
|
||||||
|
|
||||||
INSERT INTO `words` (`id`, `title`, `image`, `comment`, `id_subject`) VALUES
|
|
||||||
(18, 'Shramba', 'images/words/shramba_1502874394.jpg', '', 1),
|
|
||||||
(19, 'Klet', 'images/words/klet_1502874370.png', '', 1),
|
|
||||||
(20, 'Stopnice', 'images/words/stopnice_1502874412.jpg', '', 1),
|
|
||||||
(21, 'Stranišče', 'images/words/stranie_1502874434.png', '', 1),
|
|
||||||
(22, 'Veža', 'images/words/vea_1502874450.jpg', '', 1),
|
|
||||||
(41, 'ponev', '', '', 11),
|
|
||||||
(43, 'Jabolko', 'images/words/jabolko_1505494082.jpg', '', 12),
|
|
||||||
(44, 'Sadovnjak', 'images/words/sadovnjak_1505501703.jpg', '', 12),
|
|
||||||
(45, 'Sadje', 'images/words/sadje_1505501672.jpg', '', 12),
|
|
||||||
(46, 'Pecelj', '', '', 12),
|
|
||||||
(47, 'Muha', '', '', 12),
|
|
||||||
(49, 'Jablana', 'images/words/jablana_1505501803.jpg', '', 12),
|
|
||||||
(50, 'Divje jabolko', '', '', 12),
|
|
||||||
(51, 'Hruška', 'images/words/hruka_1505502767.jpg', '', 12),
|
|
||||||
(52, 'Divja hruška', 'images/words/divjahruka_1505501910.jpg', '', 12),
|
|
||||||
(54, 'Sliva', 'images/words/sliva_1505503123.jpg', '', 12),
|
|
||||||
(55, 'Peška', '', '', 12),
|
|
||||||
(56, 'Belina', '', '', 12),
|
|
||||||
(57, 'Les jabolk', '', '', 12),
|
|
||||||
(58, 'Veje jabolk', '', '', 12),
|
|
||||||
(59, 'Mlada jablana', '', '', 12),
|
|
||||||
(60, 'Črvivo jabolko', '', '', 12),
|
|
||||||
(61, 'Žganje iz jabolk', '', '', 12),
|
|
||||||
(62, 'Metilni alkohol (cvet)', '', '', 12),
|
|
||||||
(63, 'Mošt', '', '', 12),
|
|
||||||
(64, 'Preša', '', '', 12),
|
|
||||||
(65, 'Krhelj', '', '', 12),
|
|
||||||
(66, 'Ogrizek', 'images/words/ogrizek_1506300467.jpg', '', 12);
|
|
||||||
|
|
||||||
--
|
--
|
||||||
-- Indeksi zavrženih tabel
|
-- Indexes for dumped tables
|
||||||
--
|
--
|
||||||
|
|
||||||
--
|
--
|
||||||
-- Indeksi tabele `dialects`
|
-- Indexes for table `dialects`
|
||||||
--
|
--
|
||||||
ALTER TABLE `dialects`
|
ALTER TABLE `dialects`
|
||||||
ADD PRIMARY KEY (`id`),
|
ADD PRIMARY KEY (`id`),
|
||||||
ADD KEY `FK_dialects_dialects` (`id_parent`);
|
ADD KEY `FK_dialects_dialects` (`id_parent`);
|
||||||
|
|
||||||
--
|
--
|
||||||
-- Indeksi tabele `lexems`
|
-- Indexes for table `lexems`
|
||||||
--
|
--
|
||||||
ALTER TABLE `lexems`
|
ALTER TABLE `lexems`
|
||||||
ADD PRIMARY KEY (`id`),
|
ADD PRIMARY KEY (`id`),
|
||||||
ADD KEY `FK_leksems_words` (`id_word`);
|
ADD KEY `FK_leksems_words` (`id_word`);
|
||||||
|
|
||||||
--
|
--
|
||||||
-- Indeksi tabele `locations`
|
-- Indexes for table `locations`
|
||||||
--
|
--
|
||||||
ALTER TABLE `locations`
|
ALTER TABLE `locations`
|
||||||
ADD PRIMARY KEY (`id`),
|
ADD PRIMARY KEY (`id`),
|
||||||
|
@ -387,13 +235,13 @@ ALTER TABLE `locations`
|
||||||
ADD KEY `id_subject` (`id_subject`);
|
ADD KEY `id_subject` (`id_subject`);
|
||||||
|
|
||||||
--
|
--
|
||||||
-- Indeksi tabele `subjects`
|
-- Indexes for table `subjects`
|
||||||
--
|
--
|
||||||
ALTER TABLE `subjects`
|
ALTER TABLE `subjects`
|
||||||
ADD PRIMARY KEY (`id`);
|
ADD PRIMARY KEY (`id`);
|
||||||
|
|
||||||
--
|
--
|
||||||
-- Indeksi tabele `transcriptions`
|
-- Indexes for table `transcriptions`
|
||||||
--
|
--
|
||||||
ALTER TABLE `transcriptions`
|
ALTER TABLE `transcriptions`
|
||||||
ADD PRIMARY KEY (`id`),
|
ADD PRIMARY KEY (`id`),
|
||||||
|
@ -402,75 +250,75 @@ ALTER TABLE `transcriptions`
|
||||||
ADD KEY `id_location` (`id_location`) USING BTREE;
|
ADD KEY `id_location` (`id_location`) USING BTREE;
|
||||||
|
|
||||||
--
|
--
|
||||||
-- Indeksi tabele `users`
|
-- Indexes for table `users`
|
||||||
--
|
--
|
||||||
ALTER TABLE `users`
|
ALTER TABLE `users`
|
||||||
ADD PRIMARY KEY (`id`);
|
ADD PRIMARY KEY (`id`);
|
||||||
|
|
||||||
--
|
--
|
||||||
-- Indeksi tabele `words`
|
-- Indexes for table `words`
|
||||||
--
|
--
|
||||||
ALTER TABLE `words`
|
ALTER TABLE `words`
|
||||||
ADD PRIMARY KEY (`id`),
|
ADD PRIMARY KEY (`id`),
|
||||||
ADD KEY `id_subject` (`id_subject`);
|
ADD KEY `id_subject` (`id_subject`);
|
||||||
|
|
||||||
--
|
--
|
||||||
-- AUTO_INCREMENT zavrženih tabel
|
-- AUTO_INCREMENT for dumped tables
|
||||||
--
|
--
|
||||||
|
|
||||||
--
|
--
|
||||||
-- AUTO_INCREMENT tabele `dialects`
|
-- AUTO_INCREMENT for table `dialects`
|
||||||
--
|
--
|
||||||
ALTER TABLE `dialects`
|
ALTER TABLE `dialects`
|
||||||
MODIFY `id` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=58;
|
MODIFY `id` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=58;
|
||||||
--
|
--
|
||||||
-- AUTO_INCREMENT tabele `lexems`
|
-- AUTO_INCREMENT for table `lexems`
|
||||||
--
|
--
|
||||||
ALTER TABLE `lexems`
|
ALTER TABLE `lexems`
|
||||||
MODIFY `id` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=124;
|
MODIFY `id` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=1;
|
||||||
--
|
--
|
||||||
-- AUTO_INCREMENT tabele `locations`
|
-- AUTO_INCREMENT for table `locations`
|
||||||
--
|
--
|
||||||
ALTER TABLE `locations`
|
ALTER TABLE `locations`
|
||||||
MODIFY `id` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=4;
|
MODIFY `id` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=1;
|
||||||
--
|
--
|
||||||
-- AUTO_INCREMENT tabele `subjects`
|
-- AUTO_INCREMENT for table `subjects`
|
||||||
--
|
--
|
||||||
ALTER TABLE `subjects`
|
ALTER TABLE `subjects`
|
||||||
MODIFY `id` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=13;
|
MODIFY `id` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=1;
|
||||||
--
|
--
|
||||||
-- AUTO_INCREMENT tabele `transcriptions`
|
-- AUTO_INCREMENT for table `transcriptions`
|
||||||
--
|
--
|
||||||
ALTER TABLE `transcriptions`
|
ALTER TABLE `transcriptions`
|
||||||
MODIFY `id` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=4;
|
MODIFY `id` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=1;
|
||||||
--
|
--
|
||||||
-- AUTO_INCREMENT tabele `users`
|
-- AUTO_INCREMENT for table `users`
|
||||||
--
|
--
|
||||||
ALTER TABLE `users`
|
ALTER TABLE `users`
|
||||||
MODIFY `id` int(1) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=12;
|
MODIFY `id` int(1) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=2;
|
||||||
--
|
--
|
||||||
-- AUTO_INCREMENT tabele `words`
|
-- AUTO_INCREMENT for table `words`
|
||||||
--
|
--
|
||||||
ALTER TABLE `words`
|
ALTER TABLE `words`
|
||||||
MODIFY `id` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=67;
|
MODIFY `id` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=1;
|
||||||
--
|
--
|
||||||
-- Omejitve tabel za povzetek stanja
|
-- Constraints for dumped tables
|
||||||
--
|
--
|
||||||
|
|
||||||
--
|
--
|
||||||
-- Omejitve za tabelo `dialects`
|
-- Constraints for table `dialects`
|
||||||
--
|
--
|
||||||
ALTER TABLE `dialects`
|
ALTER TABLE `dialects`
|
||||||
ADD CONSTRAINT `FK_dialects_dialects` FOREIGN KEY (`id_parent`) REFERENCES `dialects` (`id`);
|
ADD CONSTRAINT `FK_dialects_dialects` FOREIGN KEY (`id_parent`) REFERENCES `dialects` (`id`);
|
||||||
|
|
||||||
--
|
--
|
||||||
-- Omejitve za tabelo `lexems`
|
-- Constraints for table `lexems`
|
||||||
--
|
--
|
||||||
ALTER TABLE `lexems`
|
ALTER TABLE `lexems`
|
||||||
ADD CONSTRAINT `FK_leksems_words` FOREIGN KEY (`id_word`) REFERENCES `words` (`id`);
|
ADD CONSTRAINT `FK_leksems_words` FOREIGN KEY (`id_word`) REFERENCES `words` (`id`);
|
||||||
|
|
||||||
--
|
--
|
||||||
-- Omejitve za tabelo `locations`
|
-- Constraints for table `locations`
|
||||||
--
|
--
|
||||||
ALTER TABLE `locations`
|
ALTER TABLE `locations`
|
||||||
ADD CONSTRAINT `FK_locations_dialects` FOREIGN KEY (`id_dialect`) REFERENCES `dialects` (`id`),
|
ADD CONSTRAINT `FK_locations_dialects` FOREIGN KEY (`id_dialect`) REFERENCES `dialects` (`id`),
|
||||||
|
@ -479,18 +327,17 @@ ALTER TABLE `locations`
|
||||||
ADD CONSTRAINT `locations_ibfk_1` FOREIGN KEY (`id_subject`) REFERENCES `subjects` (`id`);
|
ADD CONSTRAINT `locations_ibfk_1` FOREIGN KEY (`id_subject`) REFERENCES `subjects` (`id`);
|
||||||
|
|
||||||
--
|
--
|
||||||
-- Omejitve za tabelo `transcriptions`
|
-- Constraints for table `transcriptions`
|
||||||
--
|
--
|
||||||
ALTER TABLE `transcriptions`
|
ALTER TABLE `transcriptions`
|
||||||
ADD CONSTRAINT `transcriptions_ibfk_1` FOREIGN KEY (`id_location`) REFERENCES `locations` (`id`),
|
ADD CONSTRAINT `transcriptions_ibfk_1` FOREIGN KEY (`id_location`) REFERENCES `locations` (`id`),
|
||||||
ADD CONSTRAINT `transcriptions_ibfk_2` FOREIGN KEY (`id_lexem`) REFERENCES `lexems` (`id`);
|
ADD CONSTRAINT `transcriptions_ibfk_2` FOREIGN KEY (`id_lexem`) REFERENCES `lexems` (`id`);
|
||||||
|
|
||||||
--
|
--
|
||||||
-- Omejitve za tabelo `words`
|
-- Constraints for table `words`
|
||||||
--
|
--
|
||||||
ALTER TABLE `words`
|
ALTER TABLE `words`
|
||||||
ADD CONSTRAINT `FK_words_subjects` FOREIGN KEY (`id_subject`) REFERENCES `subjects` (`id`);
|
ADD CONSTRAINT `FK_words_subjects` FOREIGN KEY (`id_subject`) REFERENCES `subjects` (`id`);
|
||||||
COMMIT;
|
|
||||||
|
|
||||||
/*!40101 SET CHARACTER_SET_CLIENT=@OLD_CHARACTER_SET_CLIENT */;
|
/*!40101 SET CHARACTER_SET_CLIENT=@OLD_CHARACTER_SET_CLIENT */;
|
||||||
/*!40101 SET CHARACTER_SET_RESULTS=@OLD_CHARACTER_SET_RESULTS */;
|
/*!40101 SET CHARACTER_SET_RESULTS=@OLD_CHARACTER_SET_RESULTS */;
|
||||||
|
|
Loading…
Reference in New Issue
Block a user