Files
branddefense.pl/wp-content/plugins/brizy/admin/migrations/clean-logs-migration.php
Roman Pyrih c2e100a763 first commit
2023-07-24 08:30:51 +02:00

31 lines
546 B
PHP

<?php
class Brizy_Admin_Migrations_CleanLogsMigration implements Brizy_Admin_Migrations_MigrationInterface {
/**
* Return the version
*
* @return mixed
*/
public function getVersion() {
return '1.0.93';
}
/**
* @return mixed|void
* @throws Exception
*/
public function execute() {
try {
Brizy_Logger::clean();
} catch ( Exception $e ) {
Brizy_Logger::instance()->critical( 'Filed migration Brizy_Admin_Migrations_CleanLogsMigration', [] );
throw $e;
}
}
public function getPriority() {
return 10;
}
}