Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Browse files
Browse the repository at this point in the history
Дополнительно для большей чистоты можно сделать следующее: 1) Удалить на боевом сервере папку с изображениями проектов (была задана через параметр 'path.to.project.images') 2) Перегенерировать файлы переводов (в папке 'messages')
- Loading branch information
Showing
18 changed files
with
39 additions
and
1,884 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,38 @@ | ||
<?php | ||
|
||
use yii\db\Migration; | ||
|
||
class m170128_104216_drop_projects extends Migration | ||
{ | ||
public function up() | ||
{ | ||
$this->dropForeignKey('fk-image-project_id-project-id', 'project_image'); | ||
$this->dropForeignKey('fk-project-user_id-user-id', 'project'); | ||
|
||
$this->dropTable('project_image'); | ||
$this->dropTable('project'); | ||
} | ||
|
||
public function down() | ||
{ | ||
$this->createTable('project', [ | ||
'id' => $this->primaryKey(), | ||
'title' => $this->string()->notNull(), | ||
'link' => $this->string()->notNull(), | ||
'body' => 'MEDIUMTEXT NOT NULL', | ||
'user_id' => $this->integer(), | ||
'status' => $this->smallInteger()->notNull()->defaultValue(10), | ||
'created_at' => $this->integer()->notNull(), | ||
'updated_at' => $this->integer()->notNull(), | ||
]); | ||
|
||
$this->createTable('project_image', [ | ||
'id' => $this->primaryKey(), | ||
'project_id' => $this->integer(), | ||
'name' => $this->string(32)->notNull(), | ||
]); | ||
|
||
$this->addForeignKey('fk-project-user_id-user-id', 'project', 'user_id', 'user', 'id'); | ||
$this->addForeignKey('fk-image-project_id-project-id', 'project_image', 'project_id', 'project', 'id'); | ||
} | ||
} |
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.