add discount to product sell js

This commit is contained in:
2015-10-21 07:46:15 +02:00
parent f2e30779f0
commit 4e04425403
9 changed files with 63 additions and 10 deletions

View File

@@ -0,0 +1,31 @@
<?php
use yii\db\Schema;
use yii\db\Migration;
class m151020_164936_alter__table__discount__timestamps extends Migration
{
public function up()
{
$this->alterColumn('discount', 'created_at', 'datetime' );
$this->alterColumn('discount', 'updated_at', 'datetime' );
}
public function down()
{
echo "m151020_164936_alter__table__discount__timestamps cannot be reverted.\n";
return false;
}
/*
// Use safeUp/safeDown to run migration code within a transaction
public function safeUp()
{
}
public function safeDown()
{
}
*/
}