Exemplo n.º 1
0
def DropOldTables():

    tables = [
        "Music_Table",
        "Pictures_Table",
        "SortData",
        "Video_Table",
        "_Backup_Files_CarlosMac",
        "_Backup_Files_Code",
        "_Backup_Files_GigaByteMotherBoard",
        "_Backup_Files_SaoriMac",
        "_Media",
        "_Pictures",
        "_Temp_FolderComp",
        "_Temp_FolderComp2",
        "_music",
        "_videos",
        "c_Temp_FolderComp",
        "c_Temp_FolderComp2",
        "d_Pictures",
        "d_music",
        "d_videos",
        "g_Backup_Files",
        "g_Backup_Files_CarlosMac",
        "g_Backup_Files_Code",
        "g_Backup_Files_GigaByteMotherBoard",
        "g_Backup_Files_Samsung_GS2",
        "g_Backup_Files_SaoriMac",
        "g_Backup_Files__CCC_Archives",
        "sort_data",
    ]

    for table in tables:
        sql.drop_table(table.strip())
Exemplo n.º 2
0
 def UnRegister(self):
     sql.drop_table(self.Table)
     if sql.tables(FolderComp.RegistryTable):
         sql.execute(Expand("delete from {0} where folder=?".format(FolderComp.RegistryTable)), Verbose=self.Verbose, Data=[self.Folder])
Exemplo n.º 3
0
 def ResetRegistry(self):
     sql.drop_table(FolderComp.RegistryTable)
Exemplo n.º 4
0
 def clear():
     sql.drop_table(FolderComp.FolderTable)
Exemplo n.º 5
0
 def UnRegister(self):
     sql.drop_table(self.Table)
     if sql.tables(FindDups.RegistryTable):
         sql.execute(Expand("delete from {0} where folder='[Folder]'".format(FindDups.RegistryTable)), Verbose=self.Verbose)
Exemplo n.º 6
0
 def ResetRegistry(self):
     sql.drop_table(FindDups.RegistryTable)