aboutsummaryrefslogtreecommitdiffstats
path: root/src/account/migrations/0004_downtime.py
diff options
context:
space:
mode:
authorSawyer Bergeron <sbergeron@iol.unh.edu>2019-08-29 16:35:53 +0000
committerGerrit Code Review <gerrit@opnfv.org>2019-08-29 16:35:53 +0000
commit01bdb95d22840393a20378559cf3cf59c4bdce78 (patch)
tree7880970eb7f55c2e9a6af7ada2ee5900cac9e2be /src/account/migrations/0004_downtime.py
parent99f96e86bdf78e9d93ad1d259fc18e3fff772720 (diff)
parentd78fcef6ec55dbaa225c6607bdac430539bf3f0b (diff)
Merge "Adds Downtime Awareness"
Diffstat (limited to 'src/account/migrations/0004_downtime.py')
-rw-r--r--src/account/migrations/0004_downtime.py24
1 files changed, 24 insertions, 0 deletions
diff --git a/src/account/migrations/0004_downtime.py b/src/account/migrations/0004_downtime.py
new file mode 100644
index 0000000..fc700d1
--- /dev/null
+++ b/src/account/migrations/0004_downtime.py
@@ -0,0 +1,24 @@
+# Generated by Django 2.2 on 2019-08-13 16:45
+
+from django.db import migrations, models
+import django.db.models.deletion
+
+
+class Migration(migrations.Migration):
+
+ dependencies = [
+ ('account', '0003_publicnetwork'),
+ ]
+
+ operations = [
+ migrations.CreateModel(
+ name='Downtime',
+ fields=[
+ ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
+ ('start', models.DateTimeField()),
+ ('end', models.DateTimeField()),
+ ('description', models.TextField(default='This lab will be down for maintenance')),
+ ('lab', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, to='account.Lab')),
+ ],
+ ),
+ ]