Skip to content
Snippets Groups Projects
Select Git revision
  • 57e6687454486b120c637739f5e4c29c1c65c94e
  • main default protected
  • dev protected
  • f-linkahead-rename
  • f-real-id
  • f-filesystem-import
  • f-filesystem-link
  • f-filesystem-directory
  • f-filesystem-core
  • f-filesystem-cleanup
  • f-filesystem-main
  • f-name
  • keep_changes
  • f-permission-checks-2
  • f-mysql8-tests
  • f-retrieve-history
  • t-distinct-parents
  • v8.1.0
  • v8.0.0
  • v7.0.2
  • v7.0.1
  • v7.0.0
  • v6.0.1
  • v6.0.0
  • v5.0.0
  • v4.1.0
  • v4.0.0
  • v3.0
  • v2.0.30
29 results

drop_rules_table.sql

Blame
  • Code owners
    Assign users and groups as approvers for specific file changes. Learn more.
    insert_model.py 329 B
    #!/usr/bin/env python3
    import caosdb as db
    from caosadvancedtools.models.parser import parse_model_from_yaml
    
    model = parse_model_from_yaml("model.yml")
    model.sync_data_model(noquestion=True)
    
    if len(db.execute_query("FIND Property alias")) == 0:
        al = db.Property(name="alias")
        al.add_parent(name="name")
        al.insert()