]> ToastFreeware Gitweb - philipp/winterrodeln/wradmin.git/commitdiff
Add table wrreportcache to testdb.sql.
authorPhilipp Spitzer <philipp@spitzer.priv.at>
Mon, 29 Jun 2020 20:00:24 +0000 (22:00 +0200)
committerPhilipp Spitzer <philipp@spitzer.priv.at>
Mon, 29 Jun 2020 20:00:24 +0000 (22:00 +0200)
tests/testdb.md
tests/testdb.sql

index f3e923d4e35618e5ffce2258f779921c4e198fe8..f7756f5ac3317e2c13994c1b4b68a2eff630e3d8 100644 (file)
@@ -13,7 +13,6 @@ wrintermapsreporthistory,
 wrintermapssledrun,
 wrmappathcache,
 wrmappointcache,
-wrreportcache,
 
 account_credentials,
 account_requests,
@@ -95,6 +94,7 @@ wrinncache
 wrregion
 wrregioncache
 wrreport
+wrreportcache,
 wrsledruncache
 ```
 
@@ -176,6 +176,7 @@ DELETE FROM `user` WHERE user_id != 0;
 Drop entries from Winterrodeln related tables:
 
 ```{sql}
+DELETE FROM wrreportcache;
 DELETE FROM wrreport;
 DELETE FROM wrsledruncache;
 DELETE FROM wrinncache;
index 2dd2d77434bc82224d2a54f9b12c2c1b28a0f336..b9ac2cb59975804927486c3eb84c8419a82f0177 100644 (file)
@@ -545,6 +545,33 @@ INSERT INTO `wrreport` VALUES (19595,5,'Birgitzer Alm (vom Adelshof)','2017-03-2
 INSERT INTO `wrreport` VALUES (19596,1417,'Grindelwald - First','2017-03-28','16:00:00','2017-03-30 01:24:49','2017-04-08 01:24:49',2,'Die Strecke First-Schreckfeld ist gut befahrbar. Trotz warmer Temperaturen/Sonne. Die Station Schreckfeld kann jedoch nicht mehr direkt angefahren werden. Hier muss man fussgaengig einen kleinen Aufstieg (Bruecke) begehen. Abfahrt nach Bort nicht mehr moeglich. Schnee fehlt.','alemannenrodel',NULL,328,'Alemannenrodel',NULL,NULL,NULL,NULL,NULL,NULL,NULL);
 /*!40000 ALTER TABLE `wrreport` ENABLE KEYS */;
 
+--
+-- Table structure for table `wrreportcache`
+--
+
+DROP TABLE IF EXISTS `wrreportcache`;
+/*!40101 SET @saved_cs_client     = @@character_set_client */;
+/*!40101 SET character_set_client = utf8 */;
+CREATE TABLE `wrreportcache` (
+  `page_id` int(11) NOT NULL,
+  `page_title` varchar(255) DEFAULT NULL,
+  `report_id` int(11) DEFAULT NULL,
+  `date_report` date DEFAULT NULL,
+  `condition` int(11) DEFAULT NULL,
+  `description` mediumtext DEFAULT NULL,
+  `author_name` varchar(30) DEFAULT NULL,
+  `author_username` varchar(30) DEFAULT NULL,
+  PRIMARY KEY (`page_id`)
+) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4;
+/*!40101 SET character_set_client = @saved_cs_client */;
+
+--
+-- Dumping data for table `wrreportcache`
+--
+
+/*!40000 ALTER TABLE `wrreportcache` DISABLE KEYS */;
+/*!40000 ALTER TABLE `wrreportcache` ENABLE KEYS */;
+
 --
 -- Table structure for table `wrsledruncache`
 --