yii\db\ColumnSchemaBuilder::unsigned PHP 메소드

unsigned() 공개 메소드

Marks column as unsigned.
부터: 2.0.7
public unsigned ( )
    public function unsigned()
    {
        switch ($this->type) {
            case Schema::TYPE_PK:
                $this->type = Schema::TYPE_UPK;
                break;
            case Schema::TYPE_BIGPK:
                $this->type = Schema::TYPE_UBIGPK;
                break;
        }
        $this->isUnsigned = true;
        return $this;
    }