summaryrefslogtreecommitdiffstats
path: root/tools/pharos-dashboard/booking/migrations
diff options
context:
space:
mode:
Diffstat (limited to 'tools/pharos-dashboard/booking/migrations')
-rw-r--r--tools/pharos-dashboard/booking/migrations/0001_initial.py36
-rw-r--r--tools/pharos-dashboard/booking/migrations/0002_remove_booking_deleted.py19
-rw-r--r--tools/pharos-dashboard/booking/migrations/0003_remove_booking_status.py19
-rw-r--r--tools/pharos-dashboard/booking/migrations/__init__.py0
4 files changed, 74 insertions, 0 deletions
diff --git a/tools/pharos-dashboard/booking/migrations/0001_initial.py b/tools/pharos-dashboard/booking/migrations/0001_initial.py
new file mode 100644
index 00000000..57735eef
--- /dev/null
+++ b/tools/pharos-dashboard/booking/migrations/0001_initial.py
@@ -0,0 +1,36 @@
+# -*- coding: utf-8 -*-
+# Generated by Django 1.10 on 2016-08-12 09:51
+from __future__ import unicode_literals
+
+from django.conf import settings
+from django.db import migrations, models
+import django.db.models.deletion
+
+
+class Migration(migrations.Migration):
+
+ initial = True
+
+ dependencies = [
+ migrations.swappable_dependency(settings.AUTH_USER_MODEL),
+ ('dashboard', '0001_initial'),
+ ]
+
+ operations = [
+ migrations.CreateModel(
+ name='Booking',
+ fields=[
+ ('id', models.AutoField(primary_key=True, serialize=False)),
+ ('deleted', models.BooleanField(default=False)),
+ ('start', models.DateTimeField()),
+ ('end', models.DateTimeField()),
+ ('status', models.CharField(max_length=20)),
+ ('purpose', models.CharField(max_length=300)),
+ ('resource', models.ForeignKey(on_delete=django.db.models.deletion.PROTECT, to='dashboard.Resource')),
+ ('user', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, to=settings.AUTH_USER_MODEL)),
+ ],
+ options={
+ 'db_table': 'booking',
+ },
+ ),
+ ]
diff --git a/tools/pharos-dashboard/booking/migrations/0002_remove_booking_deleted.py b/tools/pharos-dashboard/booking/migrations/0002_remove_booking_deleted.py
new file mode 100644
index 00000000..335379d5
--- /dev/null
+++ b/tools/pharos-dashboard/booking/migrations/0002_remove_booking_deleted.py
@@ -0,0 +1,19 @@
+# -*- coding: utf-8 -*-
+# Generated by Django 1.10 on 2016-08-13 12:50
+from __future__ import unicode_literals
+
+from django.db import migrations
+
+
+class Migration(migrations.Migration):
+
+ dependencies = [
+ ('booking', '0001_initial'),
+ ]
+
+ operations = [
+ migrations.RemoveField(
+ model_name='booking',
+ name='deleted',
+ ),
+ ]
diff --git a/tools/pharos-dashboard/booking/migrations/0003_remove_booking_status.py b/tools/pharos-dashboard/booking/migrations/0003_remove_booking_status.py
new file mode 100644
index 00000000..95089a7a
--- /dev/null
+++ b/tools/pharos-dashboard/booking/migrations/0003_remove_booking_status.py
@@ -0,0 +1,19 @@
+# -*- coding: utf-8 -*-
+# Generated by Django 1.10 on 2016-08-13 12:51
+from __future__ import unicode_literals
+
+from django.db import migrations
+
+
+class Migration(migrations.Migration):
+
+ dependencies = [
+ ('booking', '0002_remove_booking_deleted'),
+ ]
+
+ operations = [
+ migrations.RemoveField(
+ model_name='booking',
+ name='status',
+ ),
+ ]
diff --git a/tools/pharos-dashboard/booking/migrations/__init__.py b/tools/pharos-dashboard/booking/migrations/__init__.py
new file mode 100644
index 00000000..e69de29b
--- /dev/null
+++ b/tools/pharos-dashboard/booking/migrations/__init__.py