mirror of
https://github.com/DanielnetoDotCom/YouPHPTube
synced 2025-10-03 01:39:24 +02:00
This commit is contained in:
parent
6b9f78f077
commit
f0e8cbfc17
1 changed files with 16 additions and 0 deletions
16
install/removeAllViewsStatistics.php
Normal file
16
install/removeAllViewsStatistics.php
Normal file
|
@ -0,0 +1,16 @@
|
|||
<?php
|
||||
|
||||
//streamer config
|
||||
require_once '../videos/configuration.php';
|
||||
require_once $global['systemRootPath'] . 'objects/playlist.php';
|
||||
|
||||
if (!isCommandLineInterface()) {
|
||||
return die('Command Line only');
|
||||
}
|
||||
|
||||
echo "Start delete statistics" . PHP_EOL;
|
||||
|
||||
$sql = "delete videos_statistics where id > 0";
|
||||
sqlDAL::writeSql($sql);
|
||||
|
||||
echo "Finish delete statistics" . PHP_EOL;
|
Loading…
Add table
Add a link
Reference in a new issue