Commit e16abf0f authored by Stefan Golban's avatar Stefan Golban
Browse files

update namespaces

parent 054fb9c7
......@@ -67,7 +67,7 @@ class Updater extends Generator
*/
protected function setDummyMigrationClass(): void
{
Yii::$classMap['yii\db\Migration'] = Yii::getAlias('@bizley/migration/dummy/Migration.php');
Yii::$classMap['yii\db\Migration'] = Yii::getAlias('@esempla/yii2tech_migration_creator/dummy/Migration.php');
}
/**
......
......@@ -59,14 +59,14 @@ class MigrationController extends Controller
* This can be either a path alias (e.g. "@app/migrations/template.php") or a file path.
* Alias -F
*/
public $templateFile = '@bizley/migration/views/create_migration.php';
public $templateFile = '@esempla/yii2tech_migration_creator/views/create_migration.php';
/**
* @var string Template file for generating updating migrations.
* This can be either a path alias (e.g. "@app/migrations/template.php") or a file path.
* Alias -U
*/
public $templateFileUpdate = '@bizley/migration/views/update_migration.php';
public $templateFileUpdate = '@esempla/yii2tech_migration_creator/views/update_migration.php';
/**
* @var bool|string|int Whether the table names generated should consider the $tablePrefix setting of the DB
......@@ -418,7 +418,7 @@ class MigrationController extends Controller
foreach ($data as $item){
$content .=$item['foreignKeys'];
}
return $this->renderFile(Yii::getAlias('@bizley/migration/views/create_foreignKeys.php'),[
return $this->renderFile(Yii::getAlias('@esempla/yii2tech_migration_creator/views/create_foreignKeys.php'),[
'content_migrations'=>$content,
'className'=>$class_name,
'namespace'=>'',
......
......@@ -10,5 +10,5 @@ $_SERVER['SCRIPT_FILENAME'] = __FILE__;
require_once __DIR__ . '/../vendor/autoload.php';
require_once __DIR__ . '/../vendor/yiisoft/yii2/Yii.php';
Yii::setAlias('@bizley/migration', __DIR__ . '/../src/');
Yii::setAlias('@bizley/tests', __DIR__);
\ No newline at end of file
Yii::setAlias('@esempla/yii2tech_migration_creator', __DIR__ . '/../src/');
Yii::setAlias('@esempla/tests', __DIR__);
\ No newline at end of file
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment