Files
opensourcepos/app/Database/Migrations/20260520000000_PluginConfigTableCreate.php
objecttothis 9b1bdb0973 fix: correct migration helper function name casing
- app/Database/Migrations/20260520000000_PluginConfigTableCreate.php
  and 20260627000000_PluginMigrationsTableCreate.php called
  execute_script (snake_case), which does not match the actual
  migration helper function name
- Rename calls to executeScript (camelCase) to match the helper
  definition, fixing fatal "call to undefined function" errors
  during plugin config/migrations table creation

Signed-off-by: objecttothis <17935339+objecttothis@users.noreply.github.com>
2026-09-03 13:37:27 +04:00

22 lines
478 B
PHP

<?php
namespace App\Database\Migrations;
use CodeIgniter\Database\Migration;
class PluginConfigTableCreate extends Migration
{
public function up(): void
{
log_message('info', 'Migrating plugin_config table started');
helper('migration');
executeScript(APPPATH . 'Database/Migrations/sqlscripts/3.5.0_PluginConfigTableCreate.sql');
}
public function down(): void
{
$this->forge->dropTable('plugin_config', true);
}
}