mirror of
https://github.com/opensourcepos/opensourcepos.git
synced 2026-05-31 03:39:06 -04:00
- Add column to indicate control setting (installed, enabled). - Add column to indicate plugin. - Rework business logic to read the status properly. - Renamed the migration to properly reflect which version it's released in. Signed-off-by: objec <objecttothis@gmail.com>
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.5.0_PluginConfigTableCreate.sql');
|
|
}
|
|
|
|
public function down(): void
|
|
{
|
|
$this->forge->dropTable('plugin_config', true);
|
|
}
|
|
}
|