diff --git a/docs/en/README.md b/docs/en/README.md index 4bd3edde4..7002fa3c0 100644 --- a/docs/en/README.md +++ b/docs/en/README.md @@ -19,7 +19,7 @@ Yii DB supports the following databases out of the box: - [MSSQL](https://www.microsoft.com/en-us/sql-server/sql-server-2019) of versions **2017, 2019, 2022**. - [MySQL](https://www.mysql.com/) of versions **5.7 - 8.0**. - [MariaDB](https://mariadb.org/) of versions **10.4 - 10.9**. -- [Oracle](https://www.oracle.com/database/) of versions **18c - 21c**. +- [Oracle](https://www.oracle.com/database/) of versions **12c - 21c**. - [PostgreSQL](https://www.postgresql.org/) of versions **9.6 - 15**. - [SQLite](https://www.sqlite.org/index.html) of version **3.3 and above**. diff --git a/tests/Provider/ColumnTypes.php b/tests/Provider/ColumnTypes.php index 0c1ecfed3..8312298df 100644 --- a/tests/Provider/ColumnTypes.php +++ b/tests/Provider/ColumnTypes.php @@ -472,7 +472,7 @@ public function getColumnTypes(): array 'mysql' => 'int(11) NOT NULL AUTO_INCREMENT PRIMARY KEY CHECK (value > 5)', 'pgsql' => 'serial NOT NULL PRIMARY KEY CHECK (value > 5)', 'sqlite' => 'integer PRIMARY KEY AUTOINCREMENT NOT NULL CHECK (value > 5)', - 'oci' => 'NUMBER(10) NOT NULL PRIMARY KEY CHECK (value > 5)', + 'oci' => 'NUMBER(10) GENERATED BY DEFAULT AS IDENTITY NOT NULL PRIMARY KEY CHECK (value > 5)', 'sqlsrv' => 'int IDENTITY PRIMARY KEY CHECK (value > 5)', ], ], @@ -480,14 +480,14 @@ public function getColumnTypes(): array SchemaInterface::TYPE_PK . '(8) CHECK (value > 5)', [ 'mysql' => 'int(8) NOT NULL AUTO_INCREMENT PRIMARY KEY CHECK (value > 5)', - 'oci' => 'NUMBER(8) NOT NULL PRIMARY KEY CHECK (value > 5)', + 'oci' => 'NUMBER(8) GENERATED BY DEFAULT AS IDENTITY NOT NULL PRIMARY KEY CHECK (value > 5)', ], ], '$this->primaryKey(8)' => [ SchemaInterface::TYPE_PK . '(8)', [ 'mysql' => 'int(8) NOT NULL AUTO_INCREMENT PRIMARY KEY', - 'oci' => 'NUMBER(8) NOT NULL PRIMARY KEY', + 'oci' => 'NUMBER(8) GENERATED BY DEFAULT AS IDENTITY NOT NULL PRIMARY KEY', ], ], '$this->primaryKey()' => [ @@ -496,7 +496,7 @@ public function getColumnTypes(): array 'mysql' => 'int(11) NOT NULL AUTO_INCREMENT PRIMARY KEY', 'pgsql' => 'serial NOT NULL PRIMARY KEY', 'sqlite' => 'integer PRIMARY KEY AUTOINCREMENT NOT NULL', - 'oci' => 'NUMBER(10) NOT NULL PRIMARY KEY', + 'oci' => 'NUMBER(10) GENERATED BY DEFAULT AS IDENTITY NOT NULL PRIMARY KEY', 'sqlsrv' => 'int IDENTITY PRIMARY KEY', ], ],