Kemetenimport verbessert

This commit is contained in:
Eskimue
2026-04-10 19:27:09 +02:00
parent 92c45a60af
commit 4eff1f02a3
2 changed files with 251 additions and 23 deletions
+3 -1
View File
@@ -136,6 +136,7 @@ CREATE TABLE IF NOT EXISTS `comets_mpc` (
`designation_and_name` varchar(255) NOT NULL COMMENT 'Lesbare Bezeichnung, z. B. C/1995 O1 (Hale-Bopp)',
`reference_text` varchar(64) DEFAULT NULL COMMENT 'Referenz aus der MPC-Datei, z. B. MPEC 2026-FC3',
`raw_record` varchar(255) DEFAULT NULL COMMENT 'Originale Fixed-width-Zeile aus Soft00Cmt.txt',
`source_hash` char(40) DEFAULT NULL COMMENT 'Hash ueber die relevanten MPC-Quelldaten zur Aenderungserkennung',
`source_url` varchar(255) DEFAULT NULL COMMENT 'Quelle des letzten Imports',
`imported_at` datetime NOT NULL DEFAULT current_timestamp() COMMENT 'Zeitpunkt des letzten Imports',
`created_at` datetime NOT NULL DEFAULT current_timestamp(),
@@ -145,7 +146,8 @@ CREATE TABLE IF NOT EXISTS `comets_mpc` (
KEY `idx_mpc_comets_orbit_type` (`orbit_type`),
KEY `idx_mpc_comets_perihelion_year_month` (`year_of_perihelion`,`month_of_perihelion`),
KEY `idx_mpc_comets_epoch_compact` (`epoch_compact`),
KEY `idx_mpc_comets_designation_and_name` (`designation_and_name`)
KEY `idx_mpc_comets_designation_and_name` (`designation_and_name`),
KEY `idx_mpc_comets_source_hash` (`source_hash`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci COMMENT='Kometenelemente aus Soft00Cmt.txt des Minor Planet Center';
-- Daten-Export vom Benutzer nicht ausgewählt