mirror of
https://github.com/opensourcepos/opensourcepos.git
synced 2026-04-03 06:44:27 -04:00
- Move plugin discovery to pre_system in Events.php (allows events to be registered before they fire) - Add plugin existence check in disablePlugin() - Add is_subclass_of check before instantiating plugin classes - Fix str_replace prefix removal in getPluginSettings using str_starts_with + substr - Add down() migration to drop table on rollback - Fix saveSettings to JSON-encode arrays/objects - Update README to use MailchimpPlugin as reference implementation - Remove CasposPlugin examples from documentation
21 lines
450 B
PHP
21 lines
450 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');
|
|
|
|
execute_script(APPPATH . 'Database/Migrations/sqlscripts/3.4.1_PluginConfigTableCreate.sql');
|
|
}
|
|
|
|
public function down(): void
|
|
{
|
|
$this->forge->dropTable('plugin_config', true);
|
|
}
|
|
}
|