]> ToastFreeware Gitweb - philipp/winterrodeln/wradmin.git/blobdiff - tests/testdb.md
Add table wrreportcache to testdb.sql.
[philipp/winterrodeln/wradmin.git] / tests / testdb.md
index a0ce7d9e35870a3448b600d131246588f3371a73..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
 ```
 
@@ -169,13 +169,14 @@ DELETE FROM `text` WHERE old_id NOT IN (SELECT rev_text_id FROM revision);
 
 Drop all entries from table `user`:
 ```{sql}
-DELETE FROM `user`;
+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;
@@ -183,6 +184,12 @@ DELETE FROM wrregioncache;
 DELETE FROM wrregion;
 ```
 
+Insert previously deleted values:
+```
+INSERT INTO `user` VALUES (2,'RedirectBot','','','','20080925192203','','20120902200108','ea19a572ecaf2a6d5934b153e52c3ab9','20120902200103',NULL,'20120902200103','20080925192203',1,NULL);
+INSERT INTO `user` VALUES (504,'Johndoe','John Doe',':pbkdf2:sha512:30000:64:hvqT9kNNazXmOigsCc4ewQ==:hytd5I3h38y7jVmqXrv6IKD1zzJYp8ZrUyodInP49VbtKWfQAOYvhmbVFCdl7JK/suPmFLKbe309/jlta2Gk4A==','',NULL,'john.doe@example.com','20191129090658','f0a018e0cf3384411373d83b212128f0',NULL,'bdb23486b4efcab13063fabacc109bae','20191206090650','20191129090650',0,NULL);
+```
+
 
 Export data to SQL: