-
-
Notifications
You must be signed in to change notification settings - Fork 89
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
Added support for testing on postgres using docker #113
Conversation
418a607
to
264d379
Compare
264d379
to
533acf2
Compare
docs/example-app.rst
Outdated
Postgres | ||
######## | ||
|
||
You can use Postgres as the source database. To do this, you will need to have `Docker <https://docker.com/>`_ installed. |
There was a problem hiding this comment.
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 :)
There was a problem hiding this comment.
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 |
There was a problem hiding this comment.
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...
There was a problem hiding this comment.
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'},
),
There was a problem hiding this comment.
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
Merged, thanks ! |
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