Browse Source

moved MSSQL specific property to mssql TableSchema

tags/2.0.0-beta
Carsten Brandt 11 years ago
parent
commit
8976b7cbd8
  1. 6
      framework/yii/db/TableSchema.php
  2. 2
      framework/yii/db/mssql/Schema.php
  3. 23
      framework/yii/db/mssql/TableSchema.php

6
framework/yii/db/TableSchema.php

@ -21,12 +21,6 @@ use yii\base\InvalidParamException;
class TableSchema extends Object class TableSchema extends Object
{ {
/** /**
* @var string name of the catalog (database) that this table belongs to.
* Defaults to null, meaning no catalog (or the current database).
* This property is only meaningful for MSSQL.
*/
public $catalogName;
/**
* @var string name of the schema that this table belongs to. * @var string name of the schema that this table belongs to.
*/ */
public $schemaName; public $schemaName;

2
framework/yii/db/mssql/Schema.php

@ -7,7 +7,7 @@
namespace yii\db\mssql; namespace yii\db\mssql;
use yii\db\TableSchema; use yii\db\mssql\TableSchema;
use yii\db\ColumnSchema; use yii\db\ColumnSchema;
/** /**

23
framework/yii/db/mssql/TableSchema.php

@ -0,0 +1,23 @@
<?php
/**
* @link http://www.yiiframework.com/
* @copyright Copyright &copy; 2008-2011 Yii Software LLC
* @license http://www.yiiframework.com/license/
*/
namespace yii\db\mssql;
/**
* TableSchema represents the metadata of a database table.
*
* @author Qiang Xue <qiang.xue@gmail.com>
* @since 2.0
*/
class TableSchema extends \yii\db\TableSchema
{
/**
* @var string name of the catalog (database) that this table belongs to.
* Defaults to null, meaning no catalog (or the current database).
*/
public $catalogName;
}
Loading…
Cancel
Save