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
6348e5f7
Commit
6348e5f7
authored
Jul 21, 2007
by
zYne
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
--no commit message
--no commit message
parent
141a9566
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
16 additions
and
4 deletions
+16
-4
Export.php
lib/Doctrine/Export.php
+16
-4
No files found.
lib/Doctrine/Export.php
View file @
6348e5f7
...
...
@@ -33,6 +33,19 @@ Doctrine::autoload('Doctrine_Connection_Module');
*/
class
Doctrine_Export
extends
Doctrine_Connection_Module
{
protected
$valid_default_values
=
array
(
'text'
=>
''
,
'boolean'
=>
true
,
'integer'
=>
0
,
'decimal'
=>
0.0
,
'float'
=>
0.0
,
'timestamp'
=>
'1970-01-01 00:00:00'
,
'time'
=>
'00:00:00'
,
'date'
=>
'1970-01-01'
,
'clob'
=>
''
,
'blob'
=>
''
,
);
/**
* drop an existing database
* (this method is implemented by the drivers)
...
...
@@ -658,10 +671,9 @@ class Doctrine_Export extends Doctrine_Connection_Module
$field
[
'default'
]
=
empty
(
$field
[
'notnull'
])
?
null
:
$this
->
valid_default_values
[
$field
[
'type'
]];
if
(
$field
[
'default'
]
===
''
&&
(
$conn
->
getAttribute
(
Doctrine
::
ATTR_PORTABILITY
)
&
Doctrine
::
PORTABILITY_EMPTY_TO_NULL
)
)
{
$field
[
'default'
]
=
' '
;
if
(
$field
[
'default'
]
===
''
&&
(
$conn
->
getAttribute
(
Doctrine
::
ATTR_PORTABILITY
)
&
Doctrine
::
PORTABILITY_EMPTY_TO_NULL
))
{
$field
[
'default'
]
=
null
;
}
}
...
...
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