mirror of
https://github.com/opensourcepos/opensourcepos.git
synced 2026-07-26 06:37:02 -04:00
- Add `runPendingMigrations()` to `PluginManager` for executing plugin-specific migrations. - Create `PluginMigrationModel` for managing plugin migration versions. - Add migration for creating the `plugin_migrations` table to track migration states. Signed-off-by: objec <objecttothis@gmail.com>
20 lines
420 B
PHP
20 lines
420 B
PHP
<?php
|
|
|
|
namespace App\Database\Migrations;
|
|
|
|
use CodeIgniter\Database\Migration;
|
|
|
|
class PluginMigrationsTableCreate extends Migration
|
|
{
|
|
public function up(): void
|
|
{
|
|
helper('migration');
|
|
execute_script(APPPATH . 'Database/Migrations/sqlscripts/3.5.1_PluginMigrationsTableCreate.sql');
|
|
}
|
|
|
|
public function down(): void
|
|
{
|
|
$this->forge->dropTable('plugin_migrations', true);
|
|
}
|
|
}
|