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

Added support for testing on postgres using docker #113

Merged
merged 2 commits into from
Aug 18, 2021

Conversation

matthewhegarty
Copy link
Collaborator

@matthewhegarty matthewhegarty commented Jul 20, 2021

Adds a docker-compose.yml file and supporting scripts to optionally test on Postgres.
This was added to test #102.

Incidentally, running makemigrations added a new migration for the example app.

No changes to functional code

@matthewhegarty matthewhegarty force-pushed the pg-test-for-issue-102 branch from 418a607 to 264d379 Compare July 20, 2021 21:48
@matthewhegarty matthewhegarty force-pushed the pg-test-for-issue-102 branch from 264d379 to 533acf2 Compare July 21, 2021 09:17
Postgres
########

You can use Postgres as the source database. To do this, you will need to have `Docker <https://docker.com/>`_ installed.
Copy link
Owner

Choose a reason for hiding this comment

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

You will need to have => You can use
Docker not being the only option to install postgres :)

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Have updated the wording.

@@ -0,0 +1,25 @@
# Generated by Django 3.2.5 on 2021-07-20 21:32
Copy link
Owner

Choose a reason for hiding this comment

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

Is this migration really needed ? I don't see any changes to the models of example app but maybe I'm missing something...

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

It adds the 'ordering' (no idea why it didn't appear in the initial migration). I can remove it if preferred - probably doesn't make any difference in the test app.

1st migration:

            options={
                'verbose_name': 'Album',
                'verbose_name_plural': 'Albums',
            },

new migration:

        migrations.AlterModelOptions(
            name='album',
            options={'ordering': ['name'], 'verbose_name': 'Album', 'verbose_name_plural': 'Albums'},
        ),

Copy link
Owner

Choose a reason for hiding this comment

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

OK thanks, we'll keep it

@izimobil izimobil merged commit 8ac744f into izimobil:master Aug 18, 2021
@izimobil
Copy link
Owner

Merged, thanks !

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants