Complete the code to check if the new database schema has the expected table.
assert '[1]' in new_db.get_tables()
The assertion checks if the 'users' table exists in the new database schema after migration.
Complete the code to verify the row count matches before and after migration.
assert old_db.count_rows('orders') [1] new_db.count_rows('orders')
The row count should be equal before and after migration to ensure data integrity.
Fix the error in the assertion that checks if a column exists in the migrated table.
assert '[1]' in new_db.get_columns('customers')
The assertion verifies that the 'customer_id' column exists in the 'customers' table after migration.
Fill both blanks to create a dictionary comprehension that maps table names to their row counts after migration.
row_counts = {table: new_db.[1](table) for table in new_db.[2]()}The comprehension uses count_rows to get row counts for each table returned by get_tables.
Fill all three blanks to filter migrated tables with more than 1000 rows and create a summary dictionary.
summary = {tbl: new_db.[1](tbl) for tbl in new_db.[2]() if new_db.[3](tbl) > 1000}The code counts rows for each table from get_tables() and filters those with more than 1000 rows.