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
d522ba73
Commit
d522ba73
authored
Oct 16, 2007
by
samw3
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
changes db drivers to match the new two parameter Export::getDeclaration()
parent
61274843
Changes
6
Show whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
648 additions
and
648 deletions
+648
-648
Firebird.php
lib/Doctrine/Export/Firebird.php
+1
-1
Frontbase.php
lib/Doctrine/Export/Frontbase.php
+3
-3
Mssql.php
lib/Doctrine/Export/Mssql.php
+1
-1
Mysql.php
lib/Doctrine/Export/Mysql.php
+638
-638
Oracle.php
lib/Doctrine/Export/Oracle.php
+2
-2
Sqlite.php
lib/Doctrine/Export/Sqlite.php
+3
-3
No files found.
lib/Doctrine/Export/Firebird.php
View file @
d522ba73
...
...
@@ -326,7 +326,7 @@ class Doctrine_Export_Firebird extends Doctrine_Export
if
(
$query
)
{
$query
.=
', '
;
}
$query
.=
'ADD '
.
$this
->
getDeclaration
(
$field
[
'type'
],
$fieldName
,
$field
,
$name
);
$query
.=
'ADD '
.
$this
->
getDeclaration
(
$field
Name
,
$field
);
}
}
...
...
lib/Doctrine/Export/Frontbase.php
View file @
d522ba73
...
...
@@ -187,7 +187,7 @@ class Doctrine_Export_Frontbase extends Doctrine_Export
if
(
$query
)
{
$query
.=
', '
;
}
$query
.=
'ADD '
.
$this
->
conn
->
getDeclaration
(
$field
[
'type'
],
$field
Name
,
$field
);
$query
.=
'ADD '
.
$this
->
conn
->
getDeclaration
(
$fieldName
,
$field
);
}
}
...
...
@@ -220,7 +220,7 @@ class Doctrine_Export_Frontbase extends Doctrine_Export
$oldFieldName
=
$fieldName
;
}
$oldFieldName
=
$this
->
conn
->
quoteIdentifier
(
$oldFieldName
,
true
);
$query
.=
'CHANGE '
.
$oldFieldName
.
' '
.
$this
->
conn
->
getDeclaration
(
$
field
[
'definition'
][
'type'
],
$
oldFieldName
,
$field
[
'definition'
]);
$query
.=
'CHANGE '
.
$oldFieldName
.
' '
.
$this
->
conn
->
getDeclaration
(
$oldFieldName
,
$field
[
'definition'
]);
}
}
...
...
@@ -231,7 +231,7 @@ class Doctrine_Export_Frontbase extends Doctrine_Export
}
$oldFieldName
=
$rename
[
$renamedFieldName
];
$field
=
$changes
[
'rename'
][
$oldFieldName
];
$query
.=
'CHANGE '
.
$this
->
conn
->
getDeclaration
(
$
field
[
'definition'
][
'type'
],
$
oldFieldName
,
$field
[
'definition'
]);
$query
.=
'CHANGE '
.
$this
->
conn
->
getDeclaration
(
$oldFieldName
,
$field
[
'definition'
]);
}
}
...
...
lib/Doctrine/Export/Mssql.php
View file @
d522ba73
...
...
@@ -183,7 +183,7 @@ class Doctrine_Export_Mssql extends Doctrine_Export
if
(
$query
)
{
$query
.=
', '
;
}
$query
.=
'ADD '
.
$this
->
conn
->
getDeclaration
(
$field
[
'type'
],
$field
Name
,
$field
);
$query
.=
'ADD '
.
$this
->
conn
->
getDeclaration
(
$fieldName
,
$field
);
}
}
...
...
lib/Doctrine/Export/Mysql.php
View file @
d522ba73
...
...
@@ -302,7 +302,7 @@ class Doctrine_Export_Mysql extends Doctrine_Export
if
(
$query
)
{
$query
.=
', '
;
}
$query
.=
'ADD '
.
$this
->
getDeclaration
(
$field
[
'type'
],
$fieldName
,
$field
);
$query
.=
'ADD '
.
$this
->
getDeclaration
(
$field
Name
,
$field
);
}
}
...
...
@@ -336,7 +336,7 @@ class Doctrine_Export_Mysql extends Doctrine_Export
}
$oldFieldName
=
$this
->
conn
->
quoteIdentifier
(
$oldFieldName
,
true
);
$query
.=
'CHANGE '
.
$oldFieldName
.
' '
.
$this
->
getDeclaration
(
$field
[
'definition'
][
'type'
],
$fieldName
,
$field
[
'definition'
]);
.
$this
->
getDeclaration
(
$field
Name
,
$field
[
'definition'
]);
}
}
...
...
@@ -348,7 +348,7 @@ class Doctrine_Export_Mysql extends Doctrine_Export
$field
=
$changes
[
'rename'
][
$renamedField
];
$renamedField
=
$this
->
conn
->
quoteIdentifier
(
$renamedField
,
true
);
$query
.=
'CHANGE '
.
$renamedField
.
' '
.
$this
->
getDeclaration
(
$field
[
'
definition'
][
'type'
],
$field
[
'name'
],
$field
[
'definition'
]);
.
$this
->
getDeclaration
(
$field
[
'
name'
],
$field
[
'definition'
]);
}
}
...
...
lib/Doctrine/Export/Oracle.php
View file @
d522ba73
...
...
@@ -423,7 +423,7 @@ END;
if
(
!
empty
(
$changes
[
'add'
])
&&
is_array
(
$changes
[
'add'
]))
{
$fields
=
array
();
foreach
(
$changes
[
'add'
]
as
$fieldName
=>
$field
)
{
$fields
[]
=
$this
->
conn
->
getDeclaration
(
$field
[
'type'
],
$field
Name
,
$field
);
$fields
[]
=
$this
->
conn
->
getDeclaration
(
$fieldName
,
$field
);
}
$result
=
$this
->
conn
->
exec
(
'ALTER TABLE '
.
$name
.
' ADD ('
.
implode
(
', '
,
$fields
)
.
')'
);
}
...
...
@@ -431,7 +431,7 @@ END;
if
(
!
empty
(
$changes
[
'change'
])
&&
is_array
(
$changes
[
'change'
]))
{
$fields
=
array
();
foreach
(
$changes
[
'change'
]
as
$fieldName
=>
$field
)
{
$fields
[]
=
$fieldName
.
' '
.
$this
->
conn
->
getDeclaration
(
$field
[
'definition'
][
'type'
],
''
,
$field
[
'definition'
]);
$fields
[]
=
$fieldName
.
' '
.
$this
->
conn
->
getDeclaration
(
''
,
$field
[
'definition'
]);
}
$result
=
$this
->
conn
->
exec
(
'ALTER TABLE '
.
$name
.
' MODIFY ('
.
implode
(
', '
,
$fields
)
.
')'
);
}
...
...
lib/Doctrine/Export/Sqlite.php
View file @
d522ba73
...
...
@@ -360,7 +360,7 @@ class Doctrine_Export_Sqlite extends Doctrine_Export
if
(
$query
)
{
$query
.=
', '
;
}
$query
.=
'ADD '
.
$this
->
getDeclaration
(
$field
[
'type'
],
$field
Name
,
$field
);
$query
.=
'ADD '
.
$this
->
getDeclaration
(
$fieldName
,
$field
);
}
}
...
...
@@ -384,7 +384,7 @@ class Doctrine_Export_Sqlite extends Doctrine_Export
}
$oldFieldName
=
$this
->
conn
->
quoteIdentifier
(
$oldFieldName
,
true
);
$query
.=
'CHANGE '
.
$oldFieldName
.
' '
.
$this
->
getDeclaration
(
$field
[
'definition'
][
'type'
],
$field
Name
,
$field
[
'definition'
]);
.
$this
->
getDeclaration
(
$fieldName
,
$field
[
'definition'
]);
}
}
...
...
@@ -396,7 +396,7 @@ class Doctrine_Export_Sqlite extends Doctrine_Export
$field
=
$changes
[
'rename'
][
$renamedField
];
$renamedField
=
$this
->
conn
->
quoteIdentifier
(
$renamedField
,
true
);
$query
.=
'CHANGE '
.
$renamedField
.
' '
.
$this
->
getDeclaration
(
$field
[
'
definition'
][
'type'
],
$field
[
'
name'
],
$field
[
'definition'
]);
.
$this
->
getDeclaration
(
$field
[
'name'
],
$field
[
'definition'
]);
}
}
...
...
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