Skip to content
This repository has been archived by the owner on Jan 30, 2024. It is now read-only.

Commit

Permalink
Remove steps to generate migrations
Browse files Browse the repository at this point in the history
refs #5321
  • Loading branch information
David Davis committed Sep 3, 2019
1 parent 45e3979 commit 934257f
Showing 1 changed file with 0 additions and 25 deletions.
25 changes: 0 additions & 25 deletions roles/pulp-database/tasks/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,31 +24,6 @@

- block:

- name: Create the pulpcore migrations directory
file:
name: '{{ result.files[0].path }}/site-packages/pulpcore/app/migrations'
state: directory
owner: '{{ pulp_user }}'
group: '{{ pulp_group }}'
mode: 0700
when: pulp_source_dir is undefined

- name: Create the plugin migrations directories
file:
name: '{{ result.files[0].path }}/site-packages/{{ item }}/app/migrations'
state: directory
owner: '{{ pulp_user }}'
group: '{{ pulp_group }}'
mode: 0700
with_items: "{{ pulp_install_plugins }}"
when: pulp_install_plugins[item].source_dir is undefined

- name: Create database migrations for plugins
command: '{{ pulp_install_dir }}/bin/django-admin makemigrations {{ pulp_install_plugins[item].app_label }}'
with_items: "{{ pulp_install_plugins }}"
register: result
changed_when: "'No changes detected in app' not in result.stdout"

- name: Run database auth migrations
command: '{{ pulp_install_dir }}/bin/django-admin migrate auth --no-input'
register: migrate_auth
Expand Down

0 comments on commit 934257f

Please sign in to comment.