Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
O
our_own_cloud_project
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Deploy
Releases
Model registry
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
GitLab community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
die_coolen_jungs
our_own_cloud_project
Commits
6f71419f
Commit
6f71419f
authored
11 years ago
by
Robin Appelman
Browse files
Options
Downloads
Patches
Plain Diff
Skip migration checks for all sql backends besides mysql, postgres and sqlite
parent
a59f6818
Branches
Branches containing commit
No related tags found
No related merge requests found
Changes
3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
lib/private/db/mdb2schemamanager.php
+5
-1
5 additions, 1 deletion
lib/private/db/mdb2schemamanager.php
lib/private/db/nocheckmigrator.php
+24
-0
24 additions, 0 deletions
lib/private/db/nocheckmigrator.php
lib/private/db/oraclemigrator.php
+1
-9
1 addition, 9 deletions
lib/private/db/oraclemigrator.php
with
30 additions
and
10 deletions
lib/private/db/mdb2schemamanager.php
+
5
−
1
View file @
6f71419f
...
...
@@ -8,7 +8,9 @@
namespace
OC\DB
;
use
Doctrine\DBAL\Platforms\MySqlPlatform
;
use
Doctrine\DBAL\Platforms\OraclePlatform
;
use
Doctrine\DBAL\Platforms\PostgreSqlPlatform
;
use
Doctrine\DBAL\Platforms\SqlitePlatform
;
class
MDB2SchemaManager
{
...
...
@@ -62,8 +64,10 @@ class MDB2SchemaManager {
return
new
SQLiteMigrator
(
$this
->
conn
);
}
else
if
(
$platform
instanceof
OraclePlatform
)
{
return
new
OracleMigrator
(
$this
->
conn
);
}
else
{
}
else
if
(
$platform
instanceof
MySqlPlatform
or
$platform
instanceof
PostgreSqlPlatform
)
{
return
new
Migrator
(
$this
->
conn
);
}
else
{
return
new
NoCheckMigrator
(
$this
->
conn
);
}
}
...
...
This diff is collapsed.
Click to expand it.
lib/private/db/nocheckmigrator.php
0 → 100644
+
24
−
0
View file @
6f71419f
<?php
/**
* Copyright (c) 2014 Robin Appelman <icewind@owncloud.com>
* This file is licensed under the Affero General Public License version 3 or
* later.
* See the COPYING-README file.
*/
namespace
OC\DB
;
use
Doctrine\DBAL\Schema\Schema
;
/**
* migrator for database platforms that don't support the upgrade check
*
* @package OC\DB
*/
class
NoCheckMigrator
extends
Migrator
{
/**
* @param \Doctrine\DBAL\Schema\Schema $targetSchema
* @throws \OC\DB\MigrationException
*/
public
function
checkMigrate
(
Schema
$targetSchema
)
{}
}
This diff is collapsed.
Click to expand it.
lib/private/db/oraclemigrator.php
+
1
−
9
View file @
6f71419f
...
...
@@ -10,15 +10,7 @@ namespace OC\DB;
use
Doctrine\DBAL\Schema\Schema
;
class
OracleMigrator
extends
Migrator
{
/**
* @param \Doctrine\DBAL\Schema\Schema $targetSchema
* @throws \OC\DB\MigrationException
*
* Migration testing is skipped for oracle
*/
public
function
checkMigrate
(
Schema
$targetSchema
)
{}
class
OracleMigrator
extends
NoCheckMigrator
{
/**
* @param Schema $targetSchema
* @param \Doctrine\DBAL\Connection $connection
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment