convert-to-sql: create missing tables and views with publisher.initialize_sql (#43191)

This commit is contained in:
Thomas NOËL 2020-05-21 17:42:23 +02:00
parent 117df635e4
commit b8ee2c4207
1 changed files with 1 additions and 4 deletions

View File

@ -56,6 +56,7 @@ class Command(BaseCommand):
self.store_forms()
self.publisher.write_cfg()
self.enable_connection()
self.publisher.initialize_sql()
self.publisher.cleanup()
def get_publisher(self, domain):
@ -139,10 +140,6 @@ class Command(BaseCommand):
self.update_progress(100*i/count)
sql_data_class.fix_sequences()
sql.do_tracking_code_table()
sql.do_session_table()
sql.do_meta_table()
if errors:
error_log = open('error_formdata.log', 'w')
for formdata, trace in errors: