framework/db/Command.php
public function addDefaultValue($name, $table, $column, $value)
    {
        $sql = $this->db->getQueryBuilder()->addDefaultValue($name, $table, $column, $value);

        return $this->setSql($sql)->requireTableSchemaRefresh($table);
    }
public function addDefaultValue($name, $table, $column, $value)
    {
        $sql = $this->db->getQueryBuilder()->addDefaultValue($name, $table, $column, $value);

        return $this->setSql($sql)->requireTableSchemaRefresh($table);
    }
public function addDefaultValue ( $ name , $ table , $ column , $ value ) { $ sql = $ this -> db -> getQueryBuilder ( ) -> addDefaultValue ( $ name , $ table , $ column , $ value ) ; return $ this -> setSql ( $ sql ) -> requireTableSchemaRefresh ( $ table ) ; }
Creates a SQL command for adding a default value constraint to an existing table.
@param string $name the name of the default value constraint.
The name will be properly quoted by the method.
@param string $table the table that the default value constraint will be added to.
The name will be properly quoted by the method.
@param string $column the name of the column to that the constraint will be added on.
The name will be properly quoted by the method.
@param mixed $value default value.
@return $this the command object itself.
@since 2.0.13
Creates a SQL command for adding a default value constraint to an existing table .