added initial migration
This commit is contained in:
@@ -0,0 +1,30 @@
|
|||||||
|
# Generated by Django 4.2.13 on 2026-01-28 15:27
|
||||||
|
|
||||||
|
from django.db import migrations, models
|
||||||
|
import django.db.models.deletion
|
||||||
|
|
||||||
|
|
||||||
|
class Migration(migrations.Migration):
|
||||||
|
|
||||||
|
initial = True
|
||||||
|
|
||||||
|
dependencies = [
|
||||||
|
('pyscada', '0109_alter_variable_value_class'),
|
||||||
|
]
|
||||||
|
|
||||||
|
operations = [
|
||||||
|
migrations.CreateModel(
|
||||||
|
name='InfluxDatabase',
|
||||||
|
fields=[
|
||||||
|
('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
|
||||||
|
('bucket', models.CharField(max_length=255)),
|
||||||
|
('api_key', models.CharField(max_length=255)),
|
||||||
|
('organisation', models.CharField(max_length=255)),
|
||||||
|
('write_precision', models.CharField(default='ms', max_length=2)),
|
||||||
|
('url', models.CharField(default='127.0.0.1:8086', max_length=255)),
|
||||||
|
('measurement_name', models.CharField(default='pyscada.models.RecordedData', max_length=255)),
|
||||||
|
('only_write_to_influxdb', models.BooleanField(default=True, help_text='when selected only a copy of the data is written to the InfluxDB and the SQL Database is used for everything else')),
|
||||||
|
('datasource', models.OneToOneField(on_delete=django.db.models.deletion.CASCADE, to='pyscada.datasource')),
|
||||||
|
],
|
||||||
|
),
|
||||||
|
]
|
||||||
Reference in New Issue
Block a user