Elgg  Version 6.3
20250904095834_update_system_log.php
Go to the documentation of this file.
1 <?php
2 
3 declare(strict_types=1);
4 
5 use Phinx\Db\Adapter\MysqlAdapter;
6 use Phinx\Migration\AbstractMigration;
7 
8 final class UpdateSystemLog extends AbstractMigration {
9 
15  public function change(): void {
16 
17  if ($this->hasTable('system_log')) {
18  $table = $this->table('system_log');
19 
20  $table->changeColumn('object_class', 'string', ['limit' => MysqlAdapter::TEXT_SMALL]);
21  $table->changeColumn('event', 'string', ['limit' => MysqlAdapter::TEXT_SMALL]);
22 
23  $table->save();
24  }
25  }
26 }
change()
Increases length for systemlog columns.
$table
Definition: database.php:52
if(parse_url(elgg_get_site_url(), PHP_URL_PATH) !=='/') if(file_exists(elgg_get_root_path() . 'robots.txt'))
Set robots.txt.
Definition: robots.php:10