Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Change OC_Migrate from MDB2 to Doctrine #6005

Closed
wants to merge 8 commits into from
Closed

Conversation

bartv2
Copy link
Contributor

@bartv2 bartv2 commented Nov 22, 2013

@karlitschek
Copy link
Contributor

Sweet!! Thanks a lot @bartv2 👍 Haven't tested

@DeepDiver1975
Copy link
Member

@bartv2 can we add a unit test? thx

@karlitschek
Copy link
Contributor

ping

@tomneedham
Copy link
Contributor

@bartv2 the migration now runs, but I can't see that the migration.db sqlite database is actually generated?

@bartv2
Copy link
Contributor Author

bartv2 commented Nov 25, 2013

@tomneedham
Copy link
Contributor

@bartv2 In the resulting zip file that is sent to the user, there is no migration.db present.

@tomneedham
Copy link
Contributor

@bartv2 Can you take a look at this? The export runs ok but I don't see a migration.db generated in the export zip.

@@ -1 +1 @@
Subproject commit 42efd966284debadf83b761367e529bc45f806d6
Subproject commit daf25846dbb8a326f4801dc3310cd2b8ab1f84b9
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'm quite sure that the tests fail because of this commit. We had the same problem with the xsendfile pull request. Why do we change the 3rdparty reference in this pull request?

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The commit without this also failes the ci tests. The only changes in those commits are:

  • add php-cloudfiles
  • something with CommentOnColumnSQL
  • remove MDB2
    thus, not very critical

@bartv2
Copy link
Contributor Author

bartv2 commented Dec 16, 2013

Can you take a look at this? The export runs ok but I don't see a migration.db generated in the export zip.

I checked, only the user export has a migration.db which is also what the code suggests.

@ghost
Copy link

ghost commented Dec 16, 2013

Test failed.
Refer to this link for build results: https://ci.owncloud.org/job/pull-request-analyser/2409/

@tomneedham
Copy link
Contributor

@bartv2 which applications did you have installed that use migration of db content?

@tomneedham
Copy link
Contributor

@bartv We need to change this code to doctrine too:

static private function createAppTables( $appid ) {

When migrating it tries to recreate the tables in the new instance (which may already be there). I get the following for example when migrating the calendar to an instance with the calendar already installed:

An exception occurred while executing 'CREATE TABLE "clndr_objects" ("id" INTEGER NOT NULL, "calendarid" INTEGER DEFAULT 0 NOT NULL, "objecttype" VARCHAR(40) DEFAULT '' NOT NULL, "startdate" DATETIME DEFAULT '1970-01-01 00:00:00', "enddate" DATETIME DEFAULT '1970-01-01 00:00:00', "repeating" INTEGER DEFAULT 0, "summary" VARCHAR(255) DEFAULT NULL, "calendardata" CLOB DEFAULT NULL, "uri" VARCHAR(255) DEFAULT NULL, "lastmodified" INTEGER DEFAULT 0, PRIMARY KEY("id"))': SQLSTATE[HY000]: General error: 1 table "clndr_objects" already exists

@bartv2
Copy link
Contributor Author

bartv2 commented Dec 20, 2013

@tomneedham createAppTables is only used when exporting, so not sure how you get that error

@ghost
Copy link

ghost commented Dec 20, 2013

Test passed.
Refer to this link for build results: https://ci.owncloud.org/job/pull-request-analyser/2460/

@tomneedham
Copy link
Contributor

👍 Just need to work on unit tests. Not going to be easy.

@bartv2 bartv2 closed this Feb 11, 2014
@bartv2 bartv2 deleted the fix-5388-master branch February 11, 2014 19:35
@lock lock bot locked as resolved and limited conversation to collaborators Aug 26, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants