{"action":"created","issue":{"url":"https://api.github.com/repos/concrete5/concrete5/issues/3098","labels_url":"https://api.github.com/repos/concrete5/concrete5/issues/3098/labels{/name}","comments_url":"https://api.github.com/repos/concrete5/concrete5/issues/3098/comments","events_url":"https://api.github.com/repos/concrete5/concrete5/issues/3098/events","html_url":"https://github.com/concrete5/concrete5/issues/3098","id":115258257,"number":3098,"title":"Re-installing a package does not update block database tables","user":{"login":"ahukkanen","id":864340,"avatar_url":"https://avatars.githubusercontent.com/u/864340?v=3","gravatar_id":"","url":"https://api.github.com/users/ahukkanen","html_url":"https://github.com/ahukkanen","followers_url":"https://api.github.com/users/ahukkanen/followers","following_url":"https://api.github.com/users/ahukkanen/following{/other_user}","gists_url":"https://api.github.com/users/ahukkanen/gists{/gist_id}","starred_url":"https://api.github.com/users/ahukkanen/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ahukkanen/subscriptions","organizations_url":"https://api.github.com/users/ahukkanen/orgs","repos_url":"https://api.github.com/users/ahukkanen/repos","events_url":"https://api.github.com/users/ahukkanen/events{/privacy}","received_events_url":"https://api.github.com/users/ahukkanen/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/concrete5/concrete5/labels/code:core%20classes","name":"code:core classes","color":"0052cc"},{"url":"https://api.github.com/repos/concrete5/concrete5/labels/severity:minor","name":"severity:minor","color":"fbca04"},{"url":"https://api.github.com/repos/concrete5/concrete5/labels/status:awaiting%20development","name":"status:awaiting development","color":"c7def8"},{"url":"https://api.github.com/repos/concrete5/concrete5/labels/type:bug","name":"type:bug","color":"f7c6c7"}],"state":"open","locked":false,"assignee":null,"milestone":{"url":"https://api.github.com/repos/concrete5/concrete5/milestones/12","html_url":"https://github.com/concrete5/concrete5/milestones/Future","labels_url":"https://api.github.com/repos/concrete5/concrete5/milestones/12/labels","id":1000024,"number":12,"title":"Future","description":"","creator":{"login":"aembler","id":527809,"avatar_url":"https://avatars.githubusercontent.com/u/527809?v=3","gravatar_id":"","url":"https://api.github.com/users/aembler","html_url":"https://github.com/aembler","followers_url":"https://api.github.com/users/aembler/followers","following_url":"https://api.github.com/users/aembler/following{/other_user}","gists_url":"https://api.github.com/users/aembler/gists{/gist_id}","starred_url":"https://api.github.com/users/aembler/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/aembler/subscriptions","organizations_url":"https://api.github.com/users/aembler/orgs","repos_url":"https://api.github.com/users/aembler/repos","events_url":"https://api.github.com/users/aembler/events{/privacy}","received_events_url":"https://api.github.com/users/aembler/received_events","type":"User","site_admin":false},"open_issues":105,"closed_issues":37,"state":"open","created_at":"2015-02-28T15:33:57Z","updated_at":"2015-11-23T22:35:09Z","due_on":null,"closed_at":null},"comments":4,"created_at":"2015-11-05T10:48:20Z","updated_at":"2015-11-24T15:42:40Z","closed_at":null,"body":"When a package is first installed, it installs all block database tables according to their `db.xml` files. When this package is uninstalled and then re-installed, the latest `db.xml` of that package's blocks doesn not get applied in case the database table already exists.\r\n\r\nSteps to reproduce:\r\n\r\n1. Install concrete5\r\n2. Install a package that contains a block\r\n3. Uninstall the package\r\n4. Make changes to the packaged block's `db.xml`\r\n5. Re-install the package\r\n\r\nAfter this, check the schema of the block's database table. It does not have the latest changes to the `db.xml` applied to it.\r\n\r\nThis might lead into quite confusing situations regarding any marketplace add-ons.\r\n\r\nThis has been tested in and noticed with 5.7.5.2."},"comment":{"url":"https://api.github.com/repos/concrete5/concrete5/issues/comments/159308348","html_url":"https://github.com/concrete5/concrete5/issues/3098#issuecomment-159308348","issue_url":"https://api.github.com/repos/concrete5/concrete5/issues/3098","id":159308348,"user":{"login":"ahukkanen","id":864340,"avatar_url":"https://avatars.githubusercontent.com/u/864340?v=3","gravatar_id":"","url":"https://api.github.com/users/ahukkanen","html_url":"https://github.com/ahukkanen","followers_url":"https://api.github.com/users/ahukkanen/followers","following_url":"https://api.github.com/users/ahukkanen/following{/other_user}","gists_url":"https://api.github.com/users/ahukkanen/gists{/gist_id}","starred_url":"https://api.github.com/users/ahukkanen/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ahukkanen/subscriptions","organizations_url":"https://api.github.com/users/ahukkanen/orgs","repos_url":"https://api.github.com/users/ahukkanen/repos","events_url":"https://api.github.com/users/ahukkanen/events{/privacy}","received_events_url":"https://api.github.com/users/ahukkanen/received_events","type":"User","site_admin":false},"created_at":"2015-11-24T15:42:40Z","updated_at":"2015-11-24T15:42:40Z","body":"OK cool, so to conclude your answer: refactor and leave the default as it is.\r\n\r\nI'll go ahead with this in mind."}}