aboutsummaryrefslogtreecommitdiffstats
path: root/pydis_site
diff options
context:
space:
mode:
authorGravatar Leon Sandøy <[email protected]>2019-04-18 20:44:44 +0200
committerGravatar Leon Sandøy <[email protected]>2019-04-18 20:44:44 +0200
commitbb68776b4bcc8d7bb6d956484b0204d27c160d79 (patch)
treea49c6be3f6155d2f42617fd4855fb7fc67cc7c7b /pydis_site
parentUpdate docker/app/migrate_and_serve.sh (diff)
Adding the migration and the lockfile
Diffstat (limited to 'pydis_site')
-rw-r--r--pydis_site/apps/main/migrations/0001_initial.py26
1 files changed, 26 insertions, 0 deletions
diff --git a/pydis_site/apps/main/migrations/0001_initial.py b/pydis_site/apps/main/migrations/0001_initial.py
new file mode 100644
index 00000000..20a43d39
--- /dev/null
+++ b/pydis_site/apps/main/migrations/0001_initial.py
@@ -0,0 +1,26 @@
+# Generated by Django 2.2 on 2019-04-16 15:27
+
+from django.db import migrations, models
+import django.utils.timezone
+
+
+class Migration(migrations.Migration):
+
+ initial = True
+
+ dependencies = [
+ ]
+
+ operations = [
+ migrations.CreateModel(
+ name='RepoData',
+ fields=[
+ ('last_updated', models.DateTimeField(default=django.utils.timezone.now, help_text='The date and time this data was last fetched.')),
+ ('repo_name', models.CharField(help_text='The full name of the repo, e.g. python-discord/site', max_length=40, primary_key=True, serialize=False)),
+ ('description', models.CharField(help_text='The description of the repo.', max_length=400)),
+ ('forks', models.IntegerField(help_text='The number of forks of this repo')),
+ ('stargazers', models.IntegerField(help_text='The number of stargazers for this repo')),
+ ('language', models.CharField(help_text='The primary programming language used for this repo.', max_length=20)),
+ ],
+ ),
+ ]