Robert Korulczyk
5a8c3d537b
Enable `phpdoc_summary` rule in php-cs-fixer config ( #14675 )
...
* Enable `phpdoc_summary` rule in php-cs-fixer config.
* Fix case in "PHPDoc".
7 years ago
Robert Korulczyk
1501c659ac
Add empty lines before return statements. ( #14682 ) [skip ci]
7 years ago
Robert Korulczyk
12eb936083
Enable `heredoc_to_nowdoc` rule in php-cs-fixer ( #14419 )
7 years ago
Sergey Makinen
164d3c83e9
Have I fixed these phpdocs? Let’s see…
7 years ago
Sergey Makinen
452974cab3
Mark not supported constraint retrieving methods
7 years ago
Sergey Makinen
c8856ccd4e
Fix merging issues & CS
7 years ago
Robert Korulczyk
ba0ab403b5
Added php-cs-fixer coding standards validation to Travis CI ( #14100 )
...
* php-cs-fixer: PSR2 rule.
* php-cs-fixer: PSR2 rule - fix views.
* Travis setup refactoring.
* Add php-cs-fixer to travis cs tests.
* Fix tests on hhvm-3.12
* improve travis config
* composer update
* revert composer update
* improve travis config
* Fix CS.
* Extract config to separate classes.
* Extract config to separate classes.
* Add file header.
* Force short array syntax.
* binary_operator_spaces fixer
* Fix broken tests
* cast_spaces fixer
* concat_space fixer
* dir_constant fixer
* ereg_to_preg fixer
* function_typehint_space fixer
* hash_to_slash_comment fixer
* is_null fixer
* linebreak_after_opening_tag fixer
* lowercase_cast fixer
* magic_constant_casing fixer
* modernize_types_casting fixer
* native_function_casing fixer
* new_with_braces fixer
* no_alias_functions fixer
* no_blank_lines_after_class_opening fixer
* no_blank_lines_after_phpdoc fixer
* no_empty_comment fixer
* no_empty_phpdoc fixer
* no_empty_statement fixer
* no_extra_consecutive_blank_lines fixer
* no_leading_import_slash fixer
* no_leading_namespace_whitespace fixer
* no_mixed_echo_print fixer
* no_multiline_whitespace_around_double_arrow fixer
* no_multiline_whitespace_before_semicolons fixer
* no_php4_constructor fixer
* no_short_bool_cast fixer
* no_singleline_whitespace_before_semicolons fixer
* no_spaces_around_offset fixer
* no_trailing_comma_in_list_call fixer
* no_trailing_comma_in_singleline_array fixer
* no_unneeded_control_parentheses fixer
* no_unused_imports fixer
* no_useless_return fixer
* no_whitespace_before_comma_in_array fixer
* no_whitespace_in_blank_line fixer
* not_operator_with_successor_space fixer
* object_operator_without_whitespace fixer
* ordered_imports fixer
* php_unit_construct fixer
* php_unit_dedicate_assert fixer
* php_unit_fqcn_annotation fixer
* phpdoc_indent fixer
* phpdoc_no_access fixer
* phpdoc_no_empty_return fixer
* phpdoc_no_package fixer
* phpdoc_no_useless_inheritdoc fixer
* Fix broken tests
* phpdoc_return_self_reference fixer
* phpdoc_single_line_var_spacing fixer
* phpdoc_single_line_var_spacing fixer
* phpdoc_to_comment fixer
* phpdoc_trim fixer
* phpdoc_var_without_name fixer
* psr4 fixer
* self_accessor fixer
* short_scalar_cast fixer
* single_blank_line_before_namespace fixer
* single_quote fixer
* standardize_not_equals fixer
* ternary_operator_spaces fixer
* trailing_comma_in_multiline_array fixer
* trim_array_spaces fixer
* protected_to_private fixer
* unary_operator_spaces fixer
* whitespace_after_comma_in_array fixer
* `parent::setRules()` -> `$this->setRules()`
* blank_line_after_opening_tag fixer
* Update finder config.
* Revert changes for YiiRequirementChecker.
* Fix array formatting.
* Add missing import.
* Fix CS for new code merged from master.
* Fix some indentation issues.
7 years ago
Sergey Makinen
73ac13e6d7
Implement retrieving dbms constraints
7 years ago
Nikolay Oleynikov
323568c2e9
Remove trailing spaces from sources and tests ( #13621 ) [skip ci]
8 years ago
João Pedro Pereira
3692941ead
Fixes #11464 : Foreign key name is not provided by schema
8 years ago
Zlakomanov Alexander
b8bf0d0c0c
added hint into foreign keys query for oracle 11g optimisation
...
update oci tests
improved varible name
Closes #13122
8 years ago
Robert Korulczyk
4aa935e69e
Fixes #12055 : Changed `boolean` to `bool` and `integer` to `int` in phpdoc
8 years ago
Nikola Kovacs
9d327baa8b
coding style fixes
8 years ago
SilverFire - Dmitry Naumenko
a23cbda185
Code style fixed
8 years ago
SSiwek
5fc46d900b
Moved setting of isPrimaryKey #11484
9 years ago
SSiwek
5f8881cfbd
#11428 (oci) speedup SQL SELECT in findColumns
9 years ago
Chris Harris
96fa375b16
Refactored to a more functional way of accessing database connection
9 years ago
SilverFire - Dmitry Naumenko
cd87d67f34
Global DOCS update: ~~~ replaced with ```
9 years ago
Alexander Makarov
1b3770fd21
Use === instead of == where possible
9 years ago
Alexander Makarov
5ab4f0f090
Better quotes usage in strings
...
- Use single quote where interpolation isn't necessary
- Use interpolation when it's better than concatenation
9 years ago
jeicd
c2f83da8d8
Fix phpdoc
9 years ago
Carsten Brandt
34d5b45b35
proper fix for #8844 , convert array before using it
...
fixes #9415
9 years ago
Carsten Brandt
681db52ba6
refactored SchemaBuilder
...
- rename class to ColumnSchemaBuilder as this is more appropriate
- changed internal organisation to match how the rest of schema related classes work
- the ColumnSchemaBuilder is now created the same way as QueryBuilder is
- removed static call magic and method annotations, now real methods are called as they are
- the whole code works on objects in a db context now instead of setting database connection in global state
- trait is now used by Migration by default but can be used in other contexts as well
Migration usage is now as follows:
```php
$this->createTable('example_table', [
'id' => $this->primaryKey(),
'name' => $this->string(64)->notNull(),
'type' => $this->integer()->notNull()->defaultValue(10),
'description' => $this->text(),
'rule_name' => $this->string(64),
'data' => $this->text(),
'created_at' => $this->datetime()->notNull(),
'updated_at' => $this->datetime(),
]);
```
9 years ago
Carsten Brandt
6d9fe671de
various code style and whitespace adjustments
9 years ago
nidgetgod
b8fefe513c
fixed: Oracle 11g 11.2.0.1.0 ORA-03113: end-of-file on communication channel
...
This is a workaround for an oracle bug:
https://code.google.com/p/yii/issues/detail?id=1779
close #8844
9 years ago
Alexander Mohorev
ae42a054bb
PSR-2 spaces, commas, etc
9 years ago
Alexander Mohorev
2134c72bb0
Undefined class Expression
9 years ago
prog5
1f8aafd36b
#8573 fix
9 years ago
vbelogai
672510d521
Update Schema.php
...
insert: added $columnSchemas initialization; added size parameter to pdoStatement->bindParam
10 years ago
Carsten Brandt
ef662b57be
added missing `@since` annotations
10 years ago
Klimov Paul
60aa5f3eb9
Redundant checks at `yii\db\oci\Schema::insert()` and `yii\db\pgsql\Schema::insert()` removed
10 years ago
Paul Klimov
31ef4c4504
Command execution at `yii\db\oci\Schema::insert()` fixed
10 years ago
Paul Klimov
4e8ee7b001
Use RETURNING for inserts for pgsql and oci to support PKs with a custom default value expression
10 years ago
John Was
901d640b55
Fixes #7973 : Added `Schema::getSchemaNames` method
10 years ago
John Was
664958548f
fix oci\Schema::findConstraints() and pgsql\Schema::findTableNames(); added missing view to oci tests
10 years ago
John Was
4d1ca9ff17
Fixes #7831 : Add order when fetching database table names and constraints
10 years ago
John Was
29304a185a
Fixes #7833 : Support (materialized) views and foreign tables along normal tables when fetching table schema
10 years ago
Jan Was
48255a446d
Fixes #7867 : Fixes findUniqueIndexes not to perform any processing on unique index on function for pgsql, Implemented findUniqueIndexes for oci and mssql
10 years ago
John Was
4f49feee8d
fixes #7757 : in oci schema fix query results row keys case when PDO::ATTR_CASE is set to PDO::CASE_LOWER
...
added test to check support for setting PDO::ATTR_CASE and fetching table schemas
fixed fetching table schemas for mysql when PDO::ATTR_CASE is set
added tests for oci
fixed fetching composite fks for oci
improvements in oci schema parsing
removed autoIncrement detection fro oci and added test to verify that
implement batchInsert for oci
fix detecting IntegrityException for oci
fixed creating raw sql by skipping object and resource params
fix command test failing for sqlite
10 years ago
wenbin1989
2202ae6cb8
Fixes #6080 : Oracle DB schema did not load column types correctly
10 years ago
wenbin1989
b733a18904
fix oci bugs: \yii\db\oci\Schema::findColumns($table) return true when table doesn't exist When table doesn't exist, query in method `findColumns` return empty array instead of throw a exception.
10 years ago
mcd.php
20774165bc
Fixes #4644 : Added `\yii\db\Schema::createColumnSchema()` to be able to customize column schema used
10 years ago
RichWeber
92cd13a913
pull origin
10 years ago
Carsten Brandt
1f31f27787
phpdoc
10 years ago
Alexander Makarov
0edd8bc65a
Fixed missing and incorrect phpdoc
10 years ago
Qiang Xue
1f0d2ab7d9
Fixed Oracle DB type mapping. ( Fixes #4 )
10 years ago
Qiang Xue
91e0c5ae8a
Added Connection::useMaster() and refactored code.
10 years ago
Qiang Xue
e67d0b3c39
WIP
10 years ago
Qiang Xue
ff50f15056
proper quoting of sequence name.
10 years ago
Qiang Xue
b147e6516d
minor CS fixes [skip ci]
10 years ago