File indexing completed on 2026-04-09 07:58:22
0001
0002
0003
0004
0005
0006
0007
0008
0009
0010
0011 import argparse
0012 import sys
0013 import os.path
0014 base_path = os.path.dirname(os.path.dirname(os.path.abspath(__file__)))
0015 sys.path.append(base_path)
0016 os.chdir(base_path)
0017
0018 from idds.orm.base.utils import destroy_database, destroy_everything
0019
0020
0021 if __name__ == '__main__':
0022 parser = argparse.ArgumentParser()
0023 parser.add_argument("--destroy-everything", action="store_true", default=False, help='Destroy all tables+constraints')
0024 args = parser.parse_args()
0025 if args.destroy_everything:
0026 destroy_everything()
0027 else:
0028 destroy_database()