diff --git a/common/models/Customer.php b/common/models/Customer.php index 81cf7c2..a801dc3 100644 --- a/common/models/Customer.php +++ b/common/models/Customer.php @@ -34,14 +34,15 @@ use yii\web\IdentityInterface; * @property string $address * @property string $created_at * @property string $updated_at - * @property \common\models\Card card - * @property integer status - * @property integer towel_count - * @property \common\models\User user - * @property mixed bank_account - * @property string password_plain - * @property string password_hash - * @property string auth_key + * @property \common\models\Card $card + * @property integer $status + * @property integer $towel_count + * @property \common\models\User $user + * @property mixed $bank_account + * @property string $password_plain + * @property string $password_hash + * @property string $auth_key + * @property string $comment */ class Customer extends BaseFitnessActiveRecord implements IdentityInterface, RateLimitInterface { diff --git a/common/models/TicketType.php b/common/models/TicketType.php index d377ac0..ebff2d0 100644 --- a/common/models/TicketType.php +++ b/common/models/TicketType.php @@ -29,6 +29,7 @@ use yii\helpers\ArrayHelper; * @property string $typeHuman * @property string $timeUnitHuman * @property string $accountName + * @property string $comment */ class TicketType extends BaseFitnessActiveRecord { diff --git a/console/migrations/m230308_060353_add_customer_comment_and_ticket_type_comment.php b/console/migrations/m230308_060353_add_customer_comment_and_ticket_type_comment.php new file mode 100755 index 0000000..41ccfb5 --- /dev/null +++ b/console/migrations/m230308_060353_add_customer_comment_and_ticket_type_comment.php @@ -0,0 +1,43 @@ +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; + } + */ +}