-
-
Notifications
You must be signed in to change notification settings - Fork 6.9k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fixed Oracle DB type mapping. (Fixes #4)
- Loading branch information
Showing
2 changed files
with
22 additions
and
16 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -15,26 +15,11 @@ | |
/** | ||
* Schema is the class for retrieving metadata from an Oracle database | ||
* | ||
* @todo mapping from physical types to abstract types | ||
* | ||
* @author Qiang Xue <[email protected]> | ||
* @since 2.0 | ||
*/ | ||
class Schema extends \yii\db\Schema | ||
{ | ||
const TYPE_PK = 'NUMBER(10) NOT NULL PRIMARY KEY'; | ||
const TYPE_STRING = 'VARCHAR2(255)'; | ||
const TYPE_TEXT = 'CLOB'; | ||
const TYPE_INTEGER = 'NUMBER(10)'; | ||
const TYPE_FLOAT = 'NUMBER'; | ||
const TYPE_DECIMAL = 'NUMBER'; | ||
const TYPE_DATETIME = 'TIMESTAMP'; | ||
const TYPE_TIMESTAMP = 'TIMESTAMP'; | ||
const TYPE_TIME = 'TIMESTAMP'; | ||
const TYPE_DATE = 'DATE'; | ||
const TYPE_BINARY = 'BLOB'; | ||
const TYPE_BOOLEAN = 'NUMBER(1)'; | ||
const TYPE_MONEY = 'NUMBER(19,4)'; | ||
/** | ||
* @inheritdoc | ||
*/ | ||
|
@@ -172,7 +157,6 @@ protected function findColumns($table) | |
* @internal param \yii\db\TableSchema $table ->name the table schema | ||
* @return string whether the sequence exists | ||
*/ | ||
|
||
protected function getTableSequenceName($tablename){ | ||
|
||
$seq_name_sql="select ud.referenced_name as sequence_name | ||
|