Skip to content
Newer
Older
100644 101 lines (68 sloc) 3.65 KB
7fbeaea @beberlei Update UPGRADE with last change
beberlei authored Apr 1, 2012
1 # Upgrade to 2.3
2
9b0bd88 @beberlei Remove Doctrine\DBAL\Table\Schema#renameColumn()
beberlei authored Jun 30, 2012
3 ## Doctrine\DBAL\Schema\Table#renameColumn() removed
4
5 Doctrine\DBAL\Schema\Table#renameColumn() was removed, because it drops and recreates
6 the column instead. There is no fix available, because a schema diff
7 cannot reliably detect if a column was renamed or one column was created
8 and another one dropped.
9
11a2244 @beberlei Add sentence to clarify user solution for last commit
beberlei authored Jun 30, 2012
10 You should use explicit SQL ALTER TABLE statements to change columns names.
11
fc3ead2 @beberlei Add BC break note about latest change
beberlei authored May 5, 2012
12 ## Schema Filter paths
13
9b0bd88 @beberlei Remove Doctrine\DBAL\Table\Schema#renameColumn()
beberlei authored Jun 30, 2012
14 The Filter Schema assets expression is not wrapped in () anymore for the regexp automatically.
fc3ead2 @beberlei Add BC break note about latest change
beberlei authored May 5, 2012
15
16 Before:
17
18 $config->setFilterSchemaAssetsExpression('foo');
19
20 After:
21
22 $config->setFilterSchemaAssetsExpression('(foo)');
23
7fbeaea @beberlei Update UPGRADE with last change
beberlei authored Apr 1, 2012
24 ## Creating MySQL Tables now defaults to UTF-8
25
26 If you are creating a new MySQL Table through the Doctrine API, charset/collate are
27 now set to 'utf8'/'utf8_general_ci' by default. Previously the MySQL server defaults were used.
28
d919b50 @beberlei DBAL-6 - Add support for BLOBs
beberlei authored Oct 30, 2011
29 # Upgrade to 2.2
30
31 ## Doctrine\DBAL\Connection#insert and Doctrine\DBAL\Connnection#update
32
33 Both methods now accept an optional last parameter $types with binding types of the values passed.
7101ecd @beberlei Work a little bit on the setFetchMode()/traversable patch from damz
beberlei authored Nov 3, 2011
34 This can potentially break child classes that have overwritten one of these methods.
35
36 ## Doctrine\DBAL\Connection#executeQuery
37
38 Doctrine\DBAL\Connection#executeQuery() got a new last parameter "QueryCacheProfile $qcp"
39
40 ## Doctrine\DBAL\Driver\Statement split
41
42 The Driver statement was split into a ResultStatement and the normal statement extending from it.
43 This seperates the configuration and the retrieval API from a statement.
b8033f8 @beberlei [DBAL-203] SQLServerPlatform Refactoring
beberlei authored Jan 15, 2012
44
45 ## MsSql Platform/SchemaManager renamed
46
47 The MsSqlPlatform was renamed to SQLServerPlatform, the MsSqlSchemaManager was renamed
48 to SQLServerSchemaManager.
49
50 ## Cleanup SQLServer Platform version mess
51
52 DBAL 2.1 and before were actually only compatible to SQL Server 2008, not earlier versions.
c878bd0 @beberlei Fix SQL Platform/Schema Manager problems.
beberlei authored Jan 16, 2012
53 Still other parts of the platform did use old features instead of newly introduced datatypes
b8033f8 @beberlei [DBAL-203] SQLServerPlatform Refactoring
beberlei authored Jan 15, 2012
54 in SQL Server 2005. Starting with DBAL 2.2 you can pick the Doctrine abstraction exactly
55 matching your SQL Server version.
56
57 The PDO SqlSrv driver now uses the new `SQLServer2008Platform` as default platform.
58 This platform uses new features of SQL Server as of version 2008. This also includes a switch
59 in the used fields for "text" and "blob" field types to:
60
61 "text" => "VARCHAR(MAX)"
62 "blob" => "VARBINARY(MAX)"
63
64 Additionally `SQLServerPlatform` in DBAL 2.1 and before used "DATE", "TIME" and "DATETIME2" for dates.
65 This types are only available since version 2008 and the introduction of an explicit
66 SQLServer 2008 platform makes this dependency explicit.
67
68 An `SQLServer2005Platform` was also introduced to differentiate the features between
69 versions 2003, earlier and 2005.
70
71 With this change the `SQLServerPlatform` now throws an exception for using limit queries
72 with an offset, since SQLServer 2003 and lower do not support this feature.
73
74 To use the old SQL Server Platform, because you are using SQL Server 2003 and below use
75 the following configuration code:
76
77 use Doctrine\DBAL\DriverManager;
78 use Doctrine\DBAL\Platforms\SQLServerPlatform;
79 use Doctrine\DBAL\Platforms\SQLServer2005Platform;
80
81 // You are using SQL Server 2003 or earlier
82 $conn = DriverManager::getConnection(array(
83 'driver' => 'pdo_sqlsrv',
84 'platform' => new SQLServerPlatform()
85 // .. additional parameters
86 ));
87
88 // You are using SQL Server 2005
89 $conn = DriverManager::getConnection(array(
90 'driver' => 'pdo_sqlsrv',
91 'platform' => new SQLServer2005Platform()
92 // .. additional parameters
93 ));
94
95 // You are using SQL Server 2008
96 $conn = DriverManager::getConnection(array(
97 'driver' => 'pdo_sqlsrv',
98 // 2008 is default platform
99 // .. additional parameters
100 ));
Something went wrong with that request. Please try again.