Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
D
doctrine-dbal
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Tomáš Trávníček
doctrine-dbal
Commits
4030787a
Commit
4030787a
authored
May 22, 2012
by
Guilherme Blanco
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Added coverage for DDC-1737.
parent
5f837d4a
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
22 additions
and
1 deletion
+22
-1
doctrine-common
lib/vendor/doctrine-common
+1
-1
MySQLSchemaTest.php
.../Doctrine/Tests/DBAL/Schema/Platforms/MySQLSchemaTest.php
+21
-0
No files found.
doctrine-common
@
17e77400
Subproject commit 1
c9d2ab329746637d1c6c058523ec1ee769da31c
Subproject commit 1
7e774007b98beb2e253e645260e0f9c32f4c936
tests/Doctrine/Tests/DBAL/Schema/Platforms/MySQLSchemaTest.php
View file @
4030787a
...
@@ -64,4 +64,25 @@ class MySQLSchemaTest extends \PHPUnit_Framework_TestCase
...
@@ -64,4 +64,25 @@ class MySQLSchemaTest extends \PHPUnit_Framework_TestCase
$this
->
assertEquals
(
array
(
"ALTER TABLE test ADD CONSTRAINT FK_D87F7E0C8E48560F FOREIGN KEY (foo_id) REFERENCES test_foreign (foo_id)"
),
$sqls
);
$this
->
assertEquals
(
array
(
"ALTER TABLE test ADD CONSTRAINT FK_D87F7E0C8E48560F FOREIGN KEY (foo_id) REFERENCES test_foreign (foo_id)"
),
$sqls
);
}
}
/**
* @group DDC-1737
*/
public
function
testClobNoAlterTable
()
{
$tableOld
=
new
Table
(
"test"
);
$tableOld
->
addColumn
(
'id'
,
'integer'
);
$tableOld
->
addColumn
(
'description'
,
'string'
,
array
(
'length'
=>
65536
));
$tableNew
=
clone
$tableOld
;
$tableNew
->
setPrimaryKey
(
array
(
'id'
));
$diff
=
$this
->
comparator
->
diffTable
(
$tableOld
,
$tableNew
);
$sql
=
$this
->
platform
->
getAlterTableSQL
(
$diff
);
$this
->
assertEquals
(
array
(
'ALTER TABLE test ADD PRIMARY KEY (id)'
),
$sql
);
}
}
}
\ No newline at end of file
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment