mirror of
https://git.imnavajas.es/jjimenez/safekat.git
synced 2025-07-25 22:52:08 +00:00
24 lines
423 B
PHP
24 lines
423 B
PHP
<?php
|
|
|
|
namespace App\Controllers;
|
|
|
|
use CodeIgniter\Controller;
|
|
use Throwable;
|
|
|
|
class Migrate extends Controller
|
|
{
|
|
public function index()
|
|
{
|
|
$migrate = \Config\Services::migrations();
|
|
|
|
try {
|
|
#$migrate->regress(-1);
|
|
$migrate->latest();
|
|
echo "migrated";
|
|
|
|
} catch (\Exception $e) {
|
|
|
|
echo $e->getMessage();
|
|
}
|
|
}
|
|
} |