Jose: Hi guys and welcome back.
In this video I wanted to tell you about diffs
and how we can check for changes in code.
I also wanted to share with all the changes
that we've made in this section
to migrate our movie watchlist app over to Postgres.
So let's get to it.
What I've got here, is something I've linked
in the resources section of this lecture, is a diff.
Diffs are widely used in programming,
especially when you're using things like GitHub,
and they show you what was removed and what was added.
So here on the left we've got
what was removed from database.py
and here on the right we've got what was added
to database.py.
So if you've got any trouble whatsoever in this section,
you can always double check this diff
and see what changes we made.
As you can see, we removed the word SQLite three
from line two, for example,
and instead we replaced it with psycopg2.
Similarly, we then added a couple new lines
and then we changed integer for serial,
we changed all the question marks for percent S's,
then we changed the connection to use
the environment variable,
and then we used cursors throughout.
Again, feel free to go through this.
I've got this in the resources section of this lecture
and I think this is really helpful a way
to see the differences in code,
and again, widely used.
So thank you guys for joining me in this section.
I hope that everything's clear so far.
If you have any questions, feel free to ask
or join our Discord server and we can help you out as well.
Thanks guys, I'll see you in the next video.