개정판 362123d0
issue #646: fix import
Change-Id: Iece2d0b2d9196c45999329c7ab4afc1875dc551f
DTI_PID/DTI_PID/DetectSymbolDialog.py | ||
---|---|---|
172 | 172 |
target_conn.execute('PRAGMA foreign_keys = ON') |
173 | 173 |
target_cursor.execute('begin') |
174 | 174 |
|
175 |
tables = ['SymbolType', 'SymbolName', 'SymbolAttribute', 'Symbol', 'SymbolAttributeCodeTable'] |
|
176 |
|
|
177 |
for table in reversed(tables): |
|
175 |
tables = ['SymbolAttributeCodeTable', 'SymbolAttribute', 'Libraries', 'Symbol', 'SymbolName', 'SymbolType'] |
|
176 |
for table in tables: |
|
178 | 177 |
target_cursor.execute(f"delete from {table}") |
179 | 178 |
|
179 |
tables = ['SymbolType', 'SymbolName', 'SymbolAttribute', 'Symbol', 'SymbolAttributeCodeTable'] |
|
180 | 180 |
for table in tables: |
181 | 181 |
if app_doc_data.project.database.db_type == 'MSSQL' and table == 'Symbol': |
182 | 182 |
target_cursor.execute(f"SET IDENTITY_INSERT {table} ON") |
내보내기 Unified diff