{% from "macros.html" import information %} {% extends "admin/master.html" %} {% block body %} {{ information(current_user, active_semester_str, role="admin") }}
{% for error in form.file.errors %}
Error! {{ error }}
{% endfor %}
{{ form.csrf_token }} {{ form.file.label }} {{ form.file }} {{ form.submit }}

Help

The import file has to be a text file (with .txt at the end) encoded in UTF-8. It has to strictly follow the required format.

You can take a look at the file example_database_import.txt for an example.

Required manipulation using the web interface

The following tables can not be imported from a file and have to be manipulated using the web interface.

Optional values

If an attribute is optional/nullable and has no value, then NULL (uppercase) has to be written.

How to understand the tables in the next section

ID

None of the mentioned ids in the import file is meant as a database id. The ids here only refer to the imported instances. The id in the database is assigned automatically.

Here is the format of a table in the "Tables" section:

Table

The type of attributes can be seen in the drawio file DB.drawio which can be opened using diagrams.net . Some attributes have constraints marked also in the drawio file.

Tables

Semester (only one!)
Part
Student
Notes:
Group
PartStudent
Experiment
GroupExperiment
Appointment
{{ footer|safe }} {% endblock body %}