From 46afe388c6268aab41e0edc193b263ffd30a3338 Mon Sep 17 00:00:00 2001 From: Manuel Kamper Date: Fri, 28 Oct 2022 09:21:10 +0000 Subject: [PATCH] =?UTF-8?q?Dateien=20hochladen=20nach=20=E2=80=9E=E2=80=9C?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- image_duplicates.sql | 69 ++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 69 insertions(+) create mode 100644 image_duplicates.sql diff --git a/image_duplicates.sql b/image_duplicates.sql new file mode 100644 index 0000000..3a5f628 --- /dev/null +++ b/image_duplicates.sql @@ -0,0 +1,69 @@ +SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; +SET AUTOCOMMIT = 0; +START TRANSACTION; +SET time_zone = "+00:00"; + +-- +-- Datenbank: `image_duplicates` +-- + +-- -------------------------------------------------------- + +-- +-- Tabellenstruktur für Tabelle `no_duplicates` +-- + +CREATE TABLE `no_duplicates` ( + `id` int NOT NULL, + `pd_id` int NOT NULL, + `date` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP +) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_0900_ai_ci; + +-- -------------------------------------------------------- + +-- +-- Tabellenstruktur für Tabelle `possible_duplicates` +-- + +CREATE TABLE `possible_duplicates` ( + `id` int NOT NULL, + `file1` varchar(255) NOT NULL, + `file2` varchar(255) NOT NULL, + `date` datetime NOT NULL DEFAULT CURRENT_TIMESTAMP +) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_0900_ai_ci; + +-- +-- Indizes der exportierten Tabellen +-- + +-- +-- Indizes für die Tabelle `no_duplicates` +-- +ALTER TABLE `no_duplicates` + ADD PRIMARY KEY (`id`), + ADD UNIQUE KEY `pd_id` (`pd_id`); + +-- +-- Indizes für die Tabelle `possible_duplicates` +-- +ALTER TABLE `possible_duplicates` + ADD PRIMARY KEY (`id`), + ADD KEY `file1` (`file1`), + ADD KEY `file2` (`file2`); + +-- +-- AUTO_INCREMENT für exportierte Tabellen +-- + +-- +-- AUTO_INCREMENT für Tabelle `no_duplicates` +-- +ALTER TABLE `no_duplicates` + MODIFY `id` int NOT NULL AUTO_INCREMENT; + +-- +-- AUTO_INCREMENT für Tabelle `possible_duplicates` +-- +ALTER TABLE `possible_duplicates` + MODIFY `id` int NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=6; +COMMIT;