This repository has been archived by the owner on Jul 10, 2022. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
bugfix(hvac): Fix syntax and add migrations
Refs: #16
- Loading branch information
Showing
5 changed files
with
90 additions
and
13 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,42 @@ | ||
# Generated by Django 3.1 on 2020-08-30 19:21 | ||
|
||
from django.db import migrations, models | ||
|
||
|
||
class Migration(migrations.Migration): | ||
|
||
dependencies = [ | ||
('hvac', '0001_initial'), | ||
] | ||
|
||
operations = [ | ||
migrations.CreateModel( | ||
name='Zone', | ||
fields=[ | ||
('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), | ||
('zone_id', models.PositiveIntegerField()), | ||
('name', models.CharField(max_length=250)), | ||
('enabled', models.BooleanField()), | ||
('current_activity', models.IntegerField(choices=[(1, 'Home'), (2, 'Sleep'), (3, 'Away'), (4, 'Awake'), (5, 'Manual')])), | ||
('current_temp', models.DecimalField(decimal_places=2, default=0.0, max_digits=5)), | ||
('current_humidity', models.PositiveIntegerField()), | ||
('fan', models.IntegerField(choices=[(1, 'Low')])), | ||
('heat_set_point', models.DecimalField(decimal_places=2, default=0.0, max_digits=5)), | ||
('cool_set_point', models.DecimalField(decimal_places=2, default=0.0, max_digits=5)), | ||
('hold', models.CharField(max_length=100)), | ||
('otmr', models.CharField(max_length=100)), | ||
('zone_conditioning', models.IntegerField(choices=[(1, 'Low')])), | ||
('damper_position', models.PositiveIntegerField()), | ||
], | ||
), | ||
migrations.AddField( | ||
model_name='hvac', | ||
name='cool_set_point', | ||
field=models.DecimalField(decimal_places=2, default=0.0, max_digits=5), | ||
), | ||
migrations.AddField( | ||
model_name='hvac', | ||
name='heat_set_point', | ||
field=models.DecimalField(decimal_places=2, default=0.0, max_digits=5), | ||
), | ||
] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
17 changes: 17 additions & 0 deletions
17
infinity_tracker/contrib/sites/migrations/0004_auto_20200830_1421.py
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
# Generated by Django 3.1 on 2020-08-30 19:21 | ||
|
||
from django.db import migrations | ||
|
||
|
||
class Migration(migrations.Migration): | ||
|
||
dependencies = [ | ||
('sites', '0003_set_site_domain_and_name'), | ||
] | ||
|
||
operations = [ | ||
migrations.AlterModelOptions( | ||
name='site', | ||
options={'ordering': ['domain'], 'verbose_name': 'site', 'verbose_name_plural': 'sites'}, | ||
), | ||
] |
18 changes: 18 additions & 0 deletions
18
infinity_tracker/users/migrations/0002_auto_20200830_1421.py
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
# Generated by Django 3.1 on 2020-08-30 19:21 | ||
|
||
from django.db import migrations, models | ||
|
||
|
||
class Migration(migrations.Migration): | ||
|
||
dependencies = [ | ||
('users', '0001_initial'), | ||
] | ||
|
||
operations = [ | ||
migrations.AlterField( | ||
model_name='user', | ||
name='first_name', | ||
field=models.CharField(blank=True, max_length=150, verbose_name='first name'), | ||
), | ||
] |