12 lines
300 B
PHP
Executable file
12 lines
300 B
PHP
Executable file
#!/usr/bin/env php
|
|
<?php
|
|
require_once __DIR__ . '/../misuzu.php';
|
|
|
|
$lockPath = $msz->dbCtx->getMigrateLockPath();
|
|
if(is_file($lockPath)) {
|
|
printf('Removing migration lock...%s', PHP_EOL);
|
|
unlink($lockPath);
|
|
} else {
|
|
printf('Setting migration lock...%s', PHP_EOL);
|
|
touch($lockPath);
|
|
}
|