Test report
Excellent work! Now you can check the box next to the
Write a unit test for my
database model
TODO item on your list!
Key points
• When creating an SQLite database, you should define a
database schema
— a
group of
String
constants, used
to define your
database structure
.
• A database needs to be
created
and
updated
, according
to the context of the app,
and the
version of the database
.
• If an app doesn't have a database with the same name as in your schema, it will
create one, using the defined schema.
• If the app already has
a database with the same name, it will run the
update
process, but only if the database version
Do'stlaringiz bilan baham: