mirror of
https://github.com/opensourcepos/opensourcepos.git
synced 2026-09-14 06:19:44 -04:00
- 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>
22 lines
478 B
PHP
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);
|
|
}
|
|
}
|