TCRB und Datenbank umgebaut für Imort Runs
This commit is contained in:
+28
-4
@@ -482,10 +482,11 @@ CREATE TABLE IF NOT EXISTS `moon_craters` (
|
||||
|
||||
-- Daten-Export vom Benutzer nicht ausgewählt
|
||||
|
||||
-- Exportiere Struktur von Tabelle d0467f49.sat_import_runs
|
||||
CREATE TABLE IF NOT EXISTS `sat_import_runs` (
|
||||
-- Exportiere Struktur von Tabelle d0467f49.app_import_runs
|
||||
CREATE TABLE IF NOT EXISTS `app_import_runs` (
|
||||
`id` bigint(20) unsigned NOT NULL AUTO_INCREMENT,
|
||||
`source` varchar(32) NOT NULL,
|
||||
`source_url` varchar(500) DEFAULT NULL,
|
||||
`started_at` datetime NOT NULL,
|
||||
`finished_at` datetime DEFAULT NULL,
|
||||
`records_received` int(11) NOT NULL DEFAULT 0,
|
||||
@@ -494,8 +495,8 @@ CREATE TABLE IF NOT EXISTS `sat_import_runs` (
|
||||
`status` varchar(32) NOT NULL,
|
||||
`message` text DEFAULT NULL,
|
||||
PRIMARY KEY (`id`),
|
||||
KEY `idx_sat_import_runs_source` (`source`),
|
||||
KEY `idx_sat_import_runs_started_at` (`started_at`)
|
||||
KEY `idx_app_import_runs_source` (`source`),
|
||||
KEY `idx_app_import_runs_started_at` (`started_at`)
|
||||
) ENGINE=InnoDB AUTO_INCREMENT=23 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;
|
||||
|
||||
-- Daten-Export vom Benutzer nicht ausgewählt
|
||||
@@ -638,6 +639,29 @@ CREATE TABLE IF NOT EXISTS `star_hipparcos` (
|
||||
|
||||
-- Daten-Export vom Benutzer nicht ausgewählt
|
||||
|
||||
-- Exportiere Struktur von Tabelle d0467f49.aavso_tcrb_observations
|
||||
CREATE TABLE IF NOT EXISTS `aavso_tcrb_observations` (
|
||||
`id` bigint(20) unsigned NOT NULL AUTO_INCREMENT,
|
||||
`source_row_key` varchar(50) DEFAULT NULL,
|
||||
`star_name` varchar(50) NOT NULL DEFAULT 'T CrB',
|
||||
`jd` decimal(16,6) NOT NULL,
|
||||
`observed_at_utc` datetime NOT NULL,
|
||||
`calendar_date_text` varchar(64) DEFAULT NULL,
|
||||
`magnitude` decimal(8,3) NOT NULL,
|
||||
`magnitude_error` decimal(8,3) DEFAULT NULL,
|
||||
`filter_code` varchar(20) DEFAULT NULL,
|
||||
`observer_code` varchar(20) DEFAULT NULL,
|
||||
`notes_raw` longtext DEFAULT NULL,
|
||||
`imported_at` datetime NOT NULL DEFAULT current_timestamp(),
|
||||
`created_at` datetime NOT NULL DEFAULT current_timestamp(),
|
||||
`updated_at` datetime NOT NULL DEFAULT current_timestamp() ON UPDATE current_timestamp(),
|
||||
PRIMARY KEY (`id`),
|
||||
UNIQUE KEY `uq_aavso_tcrb_observation` (`jd`,`filter_code`,`observer_code`),
|
||||
KEY `idx_aavso_tcrb_observed_at_utc` (`observed_at_utc`),
|
||||
KEY `idx_aavso_tcrb_filter_code` (`filter_code`),
|
||||
KEY `idx_aavso_tcrb_observer_code` (`observer_code`)
|
||||
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci COMMENT='AAVSO WebObs CCD-Beobachtungen fuer T CrB';
|
||||
|
||||
/*!40103 SET TIME_ZONE=IFNULL(@OLD_TIME_ZONE, 'system') */;
|
||||
/*!40101 SET SQL_MODE=IFNULL(@OLD_SQL_MODE, '') */;
|
||||
/*!40014 SET FOREIGN_KEY_CHECKS=IFNULL(@OLD_FOREIGN_KEY_CHECKS, 1) */;
|
||||
|
||||
Reference in New Issue
Block a user