Lines Matching refs:manager
9 def drop_views(manager, views): argument
19 check_exists(manager, views, VIEW_TYPE)
21 manager.execute('DROP VIEW `%s`' % view)
24 def rename(manager, mapping): argument
35 check_exists(manager, (table for table, _ in mapping.iteritems()),
38 manager.execute('RENAME TABLE `%s` TO `%s`' % (orig_name, new_name))
41 def move_tables(manager, src_manager, tables): argument
54 manager.execute('RENAME TABLE `%(db)s`.`%(table)s` TO `%(table)s`'
58 def drop_database(manager): argument
64 manager.execute('DROP DATABASE `%s`' % manager.get_db_name())
67 def check_exists(manager, names, type): argument
86 rows = manager.execute(query, manager.get_db_name())
95 def check_index_exists(manager, table_name, index_name): argument
105 rows = manager.execute(query, manager.get_db_name(), table_name, index_name)
111 def auth_tables_exist(manager): argument
113 check_exists(manager, DJANGO_AUTH_TABLES, TABLE_TYPE)