def pre_track_containers_create_policy_stat(self, conn):
 conn.executescript('\n        CREATE TABLE policy_stat (\n            storage_policy_index INTEGER PRIMARY KEY,\n            object_count INTEGER DEFAULT 0,\n            bytes_used INTEGER DEFAULT 0\n        );\n        INSERT OR IGNORE INTO policy_stat (\n            storage_policy_index, object_count, bytes_used\n        )\n        SELECT 0, object_count, bytes_used\n        FROM account_stat\n        WHERE container_count > 0;\n    ')

def pre_track_containers_create_policy_stat ( self , conn ) : conn . executescript ( '\n        CREATE TABLE policy_stat (\n            storage_policy_index INTEGER PRIMARY KEY,\n            object_count INTEGER DEFAULT 0,\n            bytes_used INTEGER DEFAULT 0\n        );\n        INSERT OR IGNORE INTO policy_stat (\n            storage_policy_index, object_count, bytes_used\n        )\n        SELECT 0, object_count, bytes_used\n        FROM account_stat\n        WHERE container_count > 0;\n    ' )
copied from accountbroker before the container_count column was added .