13 lines
300 B
Text
13 lines
300 B
Text
|
#!/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);
|
||
|
}
|