add customerapi + customer auth

This commit is contained in:
2019-09-30 19:33:48 +02:00
committed by Roland Schneider
parent 51788f2194
commit 9aee187d11
55 changed files with 21835 additions and 14 deletions

View File

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