add comment fields to db and extend models ticket_type and custer

This commit is contained in:
Schneider Roland
2023-03-08 07:13:32 +01:00
parent 62f6e37d14
commit 31edf22e0e
3 changed files with 53 additions and 8 deletions

View File

@@ -0,0 +1,43 @@
<?php
use yii\db\Migration;
/**
* Class m230308_060353_add_customer_comment_and_ticket_type_comment
*/
class m230308_060353_add_customer_comment_and_ticket_type_comment extends Migration
{
/**
* {@inheritdoc}
*/
public function safeUp()
{
$this->addColumn("customer", "comment", $this->string());
$this->addColumn("ticket_type", "comment", $this->string());
}
/**
* {@inheritdoc}
*/
public function safeDown()
{
echo "m230308_060353_add_customer_comment_and_ticket_type_comment cannot be reverted.\n";
return false;
}
/*
// Use up()/down() to run migration code without a transaction.
public function up()
{
}
public function down()
{
echo "m230308_060353_add_customer_comment_and_ticket_type_comment cannot be reverted.\n";
return false;
}
*/
}