https://pulp.plan.io/https://pulp.plan.io/favicon.ico2017-10-03T20:35:40ZPulpPulp - Issue #3053: pclean does not remove migrations in the pulp_app or plugin projectshttps://pulp.plan.io/issues/3053?journal_id=222102017-10-03T20:35:40Zbmbouterbmbouter@redhat.com
<ul></ul><p>I ran into this and I had to manually delete the migrations directories before running pclean.</p> Pulp - Issue #3053: pclean does not remove migrations in the pulp_app or plugin projectshttps://pulp.plan.io/issues/3053?journal_id=222612017-10-05T17:23:49Zamacdona@redhat.comaustin@redhat.com
<ul></ul><p>pclean doesn't makemigrations, that is done by Ansible at install time[0], and I'd like to keep pclean out of the business of generating migrations.</p>
<p>My thinking is that migrations are generated, but they are still code, and the developers should be aware of them. Later, when we have committed the migrations, developers will be expected to commit new migrations alongside their changes to the data layer, so I think it would be good to get into the habit of making new migrations when you change the data layer.</p>
<p>I wouldn't mind a new dev alias to remove and recreate migrations, though it might get tricky if we want to include plugin migrations.</p>
<p>[0]: <a href="https://github.com/pulp/devel/pull/91/files#diff-c674e6be1d4fd8bed7f77bad58146d18R106" class="external">https://github.com/pulp/devel/pull/91/files#diff-c674e6be1d4fd8bed7f77bad58146d18R106</a></p> Pulp - Issue #3053: pclean does not remove migrations in the pulp_app or plugin projectshttps://pulp.plan.io/issues/3053?journal_id=222772017-10-06T14:25:31Zdaviddavis
<ul></ul><p>I concur with @asmacdona. I don't think we should update our aliases since we should be checking in migrations soon for the next major release of Pulp.</p> Pulp - Issue #3053: pclean does not remove migrations in the pulp_app or plugin projectshttps://pulp.plan.io/issues/3053?journal_id=222832017-10-06T14:53:42Zamacdona@redhat.comaustin@redhat.com
<ul><li><strong>Status</strong> changed from <i>NEW</i> to <i>CLOSED - WONTFIX</i></li></ul><p>Closing as WONTFIX since this is a temporary problem until we commit the migrations.</p>
<p>The problem occurs because migrations from other branches are not removed (because they aren't tracked in git).</p>
<p>Workaround is to remove and remake the migrations.</p>
<pre><code>rm -rf ~/3dev/pulp/platform/pulpcore/app/migrations
</code></pre>
<p>You may also need to remove and remake the migrations for the plugins:</p>
<pre><code>rm -rf ~/3dev/pulp_file/pulp_file/app/migrations/
</code></pre>
<p>After migrations are removed, remake them all before you try to migrate:</p>
<pre><code>pulp-manager makemigrations pulp_app
pulp-manager makemigrations pulp_<each_plugin>
pclean
</code></pre> Pulp - Issue #3053: pclean does not remove migrations in the pulp_app or plugin projectshttps://pulp.plan.io/issues/3053?journal_id=415262019-04-25T16:46:00Zdaviddavis
<ul><li><strong>Sprint/Milestone</strong> set to <i>3.0.0</i></li></ul> Pulp - Issue #3053: pclean does not remove migrations in the pulp_app or plugin projectshttps://pulp.plan.io/issues/3053?journal_id=428072019-04-26T20:37:41Zbmbouterbmbouter@redhat.com
<ul><li><strong>Tags</strong> deleted (<del><i>Pulp 3</i></del>)</li></ul>