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
dfdcf002
Commit
dfdcf002
authored
Oct 19, 2007
by
romanb
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fixes for exporting indices
parent
9b4f5db1
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
4 additions
and
4 deletions
+4
-4
Mysql.php
lib/Doctrine/Export/Mysql.php
+2
-2
Migration.php
lib/Doctrine/Migration.php
+2
-2
No files found.
lib/Doctrine/Export/Mysql.php
View file @
dfdcf002
...
...
@@ -471,7 +471,7 @@ class Doctrine_Export_Mysql extends Doctrine_Export
public
function
createIndexSql
(
$table
,
$name
,
array
$definition
)
{
$table
=
$table
;
$name
=
$this
->
conn
->
getIndexName
(
$name
);
$name
=
$this
->
conn
->
formatter
->
getIndexName
(
$name
);
$name
=
$this
->
conn
->
quoteIdentifier
(
$name
);
$type
=
''
;
if
(
isset
(
$definition
[
'type'
]))
{
...
...
@@ -485,7 +485,7 @@ class Doctrine_Export_Mysql extends Doctrine_Export
}
}
$query
=
'CREATE '
.
$type
.
'INDEX '
.
$name
.
' ON '
.
$table
;
$query
.=
' ('
.
$this
->
getIndexFieldDeclarationList
()
.
')'
;
$query
.=
' ('
.
$this
->
getIndexFieldDeclarationList
(
$definition
[
'fields'
]
)
.
')'
;
return
$query
;
}
...
...
lib/Doctrine/Migration.php
View file @
dfdcf002
...
...
@@ -39,13 +39,13 @@ class Doctrine_Migration
'dropped_fks'
=>
array
(),
'created_fks'
=>
array
(),
'dropped_constraints'
=>
array
(),
'removed_indexes'
=>
array
(),
'dropped_tables'
=>
array
(),
'added_columns'
=>
array
(),
'renamed_columns'
=>
array
(),
'changed_columns'
=>
array
(),
'removed_columns'
=>
array
(),
'added_indexes'
=>
array
(),
'removed_indexes'
=>
array
()
),
$migrationTableName
=
'migration_version'
,
$migrationClassesDirectory
=
array
(),
...
...
@@ -524,7 +524,7 @@ class Doctrine_Migration
* @param string $array
* @return void
*/
public
function
addIndex
(
$tableName
,
$indexName
,
array
$
options
=
array
()
)
public
function
addIndex
(
$tableName
,
$indexName
,
array
$
definition
)
{
$options
=
get_defined_vars
();
...
...
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