mirror of
https://github.com/opensourcepos/opensourcepos.git
synced 2026-09-13 22:08:16 -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>
20 lines
419 B
PHP
20 lines
419 B
PHP
<?php
|
|
|
|
namespace App\Database\Migrations;
|
|
|
|
use CodeIgniter\Database\Migration;
|
|
|
|
class PluginMigrationsTableCreate extends Migration
|
|
{
|
|
public function up(): void
|
|
{
|
|
helper('migration');
|
|
executeScript(APPPATH . 'Database/Migrations/sqlscripts/3.5.1_PluginMigrationsTableCreate.sql');
|
|
}
|
|
|
|
public function down(): void
|
|
{
|
|
$this->forge->dropTable('plugin_migrations', true);
|
|
}
|
|
}
|