add newsletter

This commit is contained in:
2016-05-20 08:16:30 +02:00
parent 0b866917d5
commit e51f4a5934
27 changed files with 1120 additions and 16 deletions

View File

@@ -0,0 +1,30 @@
<?php
use yii\db\Schema;
use yii\db\Migration;
class m160516_114454_add__customer_newsletter extends Migration
{
public function up()
{
$this->addColumn("customer", "newsletter", "int default 1");
}
public function down()
{
echo "m160516_114454_add__customer_newsletter cannot be reverted.\n";
return false;
}
/*
// Use safeUp/safeDown to run migration code within a transaction
public function safeUp()
{
}
public function safeDown()
{
}
*/
}