change cart to plain post from ajax

This commit is contained in:
2016-01-04 22:02:59 +01:00
parent 2d9b527909
commit 1e206011d0
27 changed files with 622 additions and 349 deletions

View File

@@ -0,0 +1,31 @@
<?php
use yii\db\Schema;
use yii\db\Migration;
class m160104_155510_alter__table__transaction__add__column__paid_by extends Migration
{
public function up()
{
$this->addColumn("transfer", "paid_by", "int");
$this->execute("update transfer set paid_by = id_user where paid_at is not null");
}
public function down()
{
echo "m160104_155510_alter__table__transaction__add__column__paid_by cannot be reverted.\n";
return false;
}
/*
// Use safeUp/safeDown to run migration code within a transaction
public function safeUp()
{
}
public function safeDown()
{
}
*/
}