change accesses table access column to text type
This commit is contained in:
parent
888080229a
commit
8c1c2cf5cd
@ -32,7 +32,8 @@ class Accesses extends \yii\db\ActiveRecord
|
|||||||
public function rules()
|
public function rules()
|
||||||
{
|
{
|
||||||
return [
|
return [
|
||||||
[['name', 'access'], 'string', 'max' => 255],
|
[['name'], 'string', 'max' => 255],
|
||||||
|
[['access'], 'string'],
|
||||||
[['_projects'], 'safe'],
|
[['_projects'], 'safe'],
|
||||||
[['_users'], 'safe'],
|
[['_users'], 'safe'],
|
||||||
];
|
];
|
||||||
|
@ -0,0 +1,17 @@
|
|||||||
|
<?php
|
||||||
|
|
||||||
|
use yii\db\Migration;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Class m191206_100300_accesses_table_access_field_to_text_type
|
||||||
|
*/
|
||||||
|
class m191206_100300_accesses_table_access_field_to_text_type extends Migration
|
||||||
|
{
|
||||||
|
/**
|
||||||
|
* {@inheritdoc}
|
||||||
|
*/
|
||||||
|
public function safeUp()
|
||||||
|
{
|
||||||
|
$this->alterColumn('accesses', 'access', 'text');
|
||||||
|
}
|
||||||
|
}
|
Loading…
Reference in New Issue
Block a user