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
2564ab0a
Commit
2564ab0a
authored
Jan 05, 2014
by
Steve Müller
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix DBAL-630 ticket functional test
parent
262deeb1
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
5 deletions
+8
-5
DBAL630Test.php
tests/Doctrine/Tests/DBAL/Functional/Ticket/DBAL630Test.php
+8
-5
No files found.
tests/Doctrine/Tests/DBAL/Functional/Ticket/DBAL630Test.php
View file @
2564ab0a
...
...
@@ -3,6 +3,7 @@
namespace
Doctrine\Tests\DBAL\Functional\Ticket
;
use
Doctrine\DBAL\Exception\TableExistsException
;
use
Doctrine\DBAL\Schema\Table
;
use
PDO
;
/**
...
...
@@ -24,11 +25,13 @@ class DBAL630Test extends \Doctrine\Tests\DbalFunctionalTestCase
$sm
=
$this
->
_conn
->
getSchemaManager
();
try
{
$sm
->
tryMethod
(
'dropTable'
,
'dbal630'
);
$this
->
_conn
->
exec
(
'CREATE TABLE dbal630 (id SERIAL, bool_col BOOLEAN NOT NULL);'
);
}
catch
(
TableExistsException
$e
)
{
}
$table
=
new
Table
(
'dbal630'
);
$table
->
addColumn
(
'id'
,
'integer'
,
array
(
'autoincrement'
=>
true
));
$table
->
addColumn
(
'bool_col'
,
'boolean'
);
$table
->
setPrimaryKey
(
array
(
'id'
));
$sm
->
dropAndCreateTable
(
$table
);
$this
->
running
=
true
;
}
...
...
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