Skip to content

Commit

Permalink
ipv6
Browse files Browse the repository at this point in the history
  • Loading branch information
skeeks-semenov committed Jun 7, 2024
1 parent 99a68ea commit 4bb1087
Show file tree
Hide file tree
Showing 2 changed files with 25 additions and 1 deletion.
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
<?php
/**
* @author Semenov Alexander <[email protected]>
* @link http://skeeks.com/
* @copyright 2010 SkeekS (СкикС)
* @date 15.07.2015
*/
use yii\db\Schema;
use yii\db\Migration;

class m240607_172718_alter_table__cms_callcheck_message extends Migration
{
public function safeUp()
{
//$tableName = '{{%cms_session}}';
$tableName = 'cms_callcheck_message';
$this->alterColumn($tableName, "user_ip", $this->string(255));
}

public function safeDown()
{
$this->dropTable("{{%cms_callcheck_message}}");
}
}
2 changes: 1 addition & 1 deletion src/models/CmsCallcheckMessage.php
Original file line number Diff line number Diff line change
Expand Up @@ -97,7 +97,7 @@ public function rules()
[['created_by', 'updated_by', 'created_at', 'updated_at', 'cms_site_id', 'cms_callcheck_provider_id'], 'integer'],
[['phone'], 'required'],
[['provider_response_data'], 'safe'],
[['user_ip'], 'string', 'max' => 20],
[['user_ip'], 'string', 'max' => 255],
[['phone', 'status', 'code', 'error_message', 'provider_status', 'provider_call_id'], 'string', 'max' => 255],
[['cms_callcheck_provider_id'], 'exist', 'skipOnError' => true, 'targetClass' => CmsCallcheckProvider::className(), 'targetAttribute' => ['cms_callcheck_provider_id' => 'id']],
[['cms_site_id'], 'exist', 'skipOnError' => true, 'targetClass' => CmsSite::className(), 'targetAttribute' => ['cms_site_id' => 'id']],
Expand Down

0 comments on commit 4bb1087

Please sign in to comment.