slawkens 2c59c4d8f7 feat: Rewrite of the core: avoid globals where possible
Create services for: login, status, router, database, AnonymousStatistics
Drop gesior.backward_support
Drop compat/pages.php
Drop part of compat/classes.php
Move signature to routes
2025-03-09 14:41:41 +01:00

26 lines
407 B
PHP

<?php
/**
* @var OTS_DB_MySQL $db
*/
use MyAAC\Cache\Cache;
$up = function () use ($db) {
$db->dropTable(TABLE_PREFIX . 'hooks');
$cache = app()->get('cache');
if($cache->enabled()) {
$cache->delete('hooks');
}
};
$down = function () use ($db) {
$db->exec(file_get_contents(__DIR__ . '/28-hooks.sql'));
$cache = app()->get('cache');
if($cache->enabled()) {
$cache->delete('hooks');
}
};