{"id":15801772,"url":"https://github.com/kevindew/sfdoctrinemysqlsafemigrateplugin","last_synced_at":"2025-03-31T21:56:00.915Z","repository":{"id":1175221,"uuid":"1071792","full_name":"kevindew/sfDoctrineMysqlSafeMigratePlugin","owner":"kevindew","description":"A plugin for symfony to allow doctrine to migrate database versions on MySQL whilst being able to rollback to previous database state on an error","archived":false,"fork":false,"pushed_at":"2011-08-05T19:05:30.000Z","size":132,"stargazers_count":2,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2024-10-05T01:41:14.312Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","language":"PHP","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/kevindew.png","metadata":{"files":{"readme":"README","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2010-11-11T15:33:55.000Z","updated_at":"2012-12-15T23:23:58.000Z","dependencies_parsed_at":"2022-08-06T10:15:38.237Z","dependency_job_id":null,"html_url":"https://github.com/kevindew/sfDoctrineMysqlSafeMigratePlugin","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kevindew%2FsfDoctrineMysqlSafeMigratePlugin","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kevindew%2FsfDoctrineMysqlSafeMigratePlugin/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kevindew%2FsfDoctrineMysqlSafeMigratePlugin/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kevindew%2FsfDoctrineMysqlSafeMigratePlugin/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/kevindew","download_url":"https://codeload.github.com/kevindew/sfDoctrineMysqlSafeMigratePlugin/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":246547388,"owners_count":20794970,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-10-05T01:40:40.128Z","updated_at":"2025-03-31T21:56:00.899Z","avatar_url":"https://github.com/kevindew.png","language":"PHP","funding_links":[],"categories":[],"sub_categories":[],"readme":"sfDoctrineMysqlSafeMinifyPlugin\n===============================\n\nThis plugin is to ease the usage of Doctrine migrations with MySQL database by\nadding the ability to roll back on an error. \n\nDoctrine migrations are designed to roll back to the previous state when an\nerror occurs but this cannot happen with MySQL (at least InnoDB) because of\nimplicit commits on structure altering queries. To counter this problem this\nplugin uses mysqldump to get a snapshot of your database before the migration\nand then in the event of an error or a migration dry run the backup will be\nrestored. \n\nBecause of the nature of a database backup and a restore, there is the\npossibility for dataloss during the process of running a migration, with a\nlarge database this could of course make the process very slow. The primary\nusage of this plugin is for in a dev/test environment to ensure migration\nclasses are accurate. \n\nInstallation\n------------\n\n  * Install as SVN External:\n      In shell\n        $ svn pe svn:externals\n      then add\n        sfDoctrineMysqlSafeMigratePlugin http://svn.github.com/kevindew/sfDoctrineMysqlSafeMigratePlugin.git\n      Activate plugin in ProjectConfiguration::Setup\n        $this-\u003eenablePlugins('sfDoctrineMysqlSafeMigratePlugin');\n\n  * Install From files\n      Download contents to\n        plugins/sfDoctrineMysqlSafeMigratePlugin\n      Activate plugin in ProjectConfiguration::Setup\n        $this-\u003eenablePlugins('sfDoctrineMysqlSafeMigratePlugin');\n\n\nThen in config/app.yml define the paths to your mysqldump and mysql for each\nenvironment\n\nDefaults are:\ndefault:\n  sfDoctrineMysqlSafeMigratePlugin:\n    mysql_dump_path: mysqldump\n    mysql_path: mysql\n\n\nUsage\n-----\n\nOnce installed the task is ran by using doctrine:mysql-safe-migrate instead of\ndoctrine:migrate. For further info type:\n./symfony help doctrine:mysql-safe-migrate","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fkevindew%2Fsfdoctrinemysqlsafemigrateplugin","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fkevindew%2Fsfdoctrinemysqlsafemigrateplugin","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fkevindew%2Fsfdoctrinemysqlsafemigrateplugin/lists"}