Skip to content

Commit

Permalink
dtb_block の初期値変更と migration ファイルの作成
Browse files Browse the repository at this point in the history
  • Loading branch information
matsuoshi committed Feb 16, 2021
1 parent c0a5d73 commit 8048313
Show file tree
Hide file tree
Showing 3 changed files with 24 additions and 2 deletions.
22 changes: 22 additions & 0 deletions app/DoctrineMigrations/Version20210216113000.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
<?php declare(strict_types=1);

namespace DoctrineMigrations;

use Doctrine\DBAL\Schema\Schema;
use Doctrine\Migrations\AbstractMigration;

/**
* Auto-generated Migration: Please modify to your needs!
*/
final class Version20210216113000 extends AbstractMigration
{
public function up(Schema $schema): void
{
$this->addSql("UPDATE dtb_block SET use_controller = 1 WHERE file_name = 'new_item' and use_controller = 0");
}

public function down(Schema $schema): void
{
$this->addSql("UPDATE dtb_block SET use_controller = 0 WHERE file_name = 'new_item' and use_controller = 1");
}
}
2 changes: 1 addition & 1 deletion src/Eccube/Resource/doctrine/import_csv/en/dtb_block.csv
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ id,device_type_id,block_name,file_name,create_date,update_date,use_controller,de
8,10,Sign-In Navitations (Common),login,2017-03-07 10:14:52,2017-03-07 10:14:52,0,0,block
9,10,Sign-In Navitations (SP),login_sp,2017-03-07 10:14:52,2017-03-07 10:14:52,0,0,block
10,10,Logos,logo,2017-03-07 10:14:52,2017-03-07 10:14:52,0,0,block
11,10,New Items,new_item,2017-03-07 10:14:52,2017-03-07 10:14:52,0,0,block
11,10,New Items,new_item,2017-03-07 10:14:52,2017-03-07 10:14:52,1,0,block
12,10,News,news,2017-03-07 10:14:52,2017-03-07 10:14:52,0,0,block
13,10,Product Search,search_product,2017-03-07 10:14:52,2017-03-07 10:14:52,1,0,block
14,10,Featured,topic,2017-03-07 10:14:52,2017-03-07 10:14:52,0,0,block
2 changes: 1 addition & 1 deletion src/Eccube/Resource/doctrine/import_csv/ja/dtb_block.csv
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
"8","10","ログインナビ(共通)","login","2017-03-07 10:14:52","2017-03-07 10:14:52","0","0","block"
"9","10","ログインナビ(SP)","login_sp","2017-03-07 10:14:52","2017-03-07 10:14:52","0","0","block"
"10","10","ロゴ","logo","2017-03-07 10:14:52","2017-03-07 10:14:52","0","0","block"
"11","10","新着商品","new_item","2017-03-07 10:14:52","2017-03-07 10:14:52","0","0","block"
"11","10","新着商品","new_item","2017-03-07 10:14:52","2017-03-07 10:14:52","1","0","block"
"12","10","新着情報","news","2017-03-07 10:14:52","2017-03-07 10:14:52","0","0","block"
"13","10","商品検索","search_product","2017-03-07 10:14:52","2017-03-07 10:14:52","1","0","block"
"14","10","トピック","topic","2017-03-07 10:14:52","2017-03-07 10:14:52","0","0","block"

0 comments on commit 8048313

Please sign in to comment.