-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add keywords column on article table
Not Finished
- Loading branch information
1 parent
f2afe9a
commit 6bfe31e
Showing
4 changed files
with
39 additions
and
2 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
27 changes: 27 additions & 0 deletions
27
migrations/m170126_103558_keywords_column_on_article_translation_table.php
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,27 @@ | ||
<?php | ||
|
||
use yii\db\Migration; | ||
|
||
class m170126_103558_keywords_column_on_article_translation_table extends Migration | ||
{ | ||
public function up() | ||
{ | ||
$this->addColumn(\centigen\i18ncontent\models\ArticleTranslation::tableName(), 'keywords', \yii\db\Schema::TYPE_STRING."(256)"); | ||
} | ||
|
||
public function down() | ||
{ | ||
$this->dropColumn(\centigen\i18ncontent\models\ArticleTranslation::tableName(), 'keywords'); | ||
} | ||
|
||
/* | ||
// Use safeUp/safeDown to run migration code within a transaction | ||
public function safeUp() | ||
{ | ||
} | ||
public function safeDown() | ||
{ | ||
} | ||
*/ | ||
} |
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