1. Go to this page and download the library: Download nsedenkov/sprint.migration library. Choose the download type require.
2. Extract the ZIP file and open the index.php.
3. Add this code to the index.php.
<?php
require_once('vendor/autoload.php');
/* Start to develop here. Best regards https://php-download.com/ */
nsedenkov / sprint.migration example snippets
#!/usr/bin/env php
namespace Sprint\Migration;
class Version20150520000001 extends Version {
protected $description = "";
public function up(){
//
}
public function down(){
//
}
}
namespace Sprint\Migration;
class Version20171219185225 extends Version
{
protected $description = "";
protected $versionFilter = [
'env' => 'dev',
];
}
namespace Sprint\Migration;
class Version20171219185225 extends Version
{
protected $description = "";
public function isVersionEnabled()
{
return false;
}
}
namespace Acme;
use \Sprint\Migration\Version;
class MyVersion extends Version
{
// ваш код
}
namespace Sprint\Migration;
use \Acme\MyVersion as MyVersion;
class Version20151113185212 extends MyVersion {
protected $description = "";
public function up(){
//
}
public function down(){
//
}
}
Loading please wait ...
Before you can download the PHP files, the dependencies should be resolved. This can take some minutes. Please be patient.