From 584cd18eb8245256cb1563afbc31f6b9be5842f7 Mon Sep 17 00:00:00 2001 From: Daochen Date: Mon, 11 May 2020 00:38:46 -0500 Subject: [PATCH] Django migrations --- .gitignore | 1 - server/tournament/migrations/0001_initial.py | 37 ++++++++++++++++++ server/tournament/migrations/__init__.py | 0 .../__pycache__/0001_initial.cpython-35.pyc | Bin 0 -> 1077 bytes .../__pycache__/__init__.cpython-35.pyc | Bin 0 -> 177 bytes 5 files changed, 37 insertions(+), 1 deletion(-) create mode 100644 server/tournament/migrations/0001_initial.py create mode 100644 server/tournament/migrations/__init__.py create mode 100644 server/tournament/migrations/__pycache__/0001_initial.cpython-35.pyc create mode 100644 server/tournament/migrations/__pycache__/__init__.cpython-35.pyc diff --git a/.gitignore b/.gitignore index 84e5c0c..b0e9c03 100644 --- a/.gitignore +++ b/.gitignore @@ -22,5 +22,4 @@ npm-debug.log* yarn-debug.log* yarn-error.log* -migrations/ db.sqlite3 diff --git a/server/tournament/migrations/0001_initial.py b/server/tournament/migrations/0001_initial.py new file mode 100644 index 0000000..b34e5fb --- /dev/null +++ b/server/tournament/migrations/0001_initial.py @@ -0,0 +1,37 @@ +# Generated by Django 2.2.12 on 2020-05-11 05:03 + +from django.db import migrations, models + + +class Migration(migrations.Migration): + + initial = True + + dependencies = [ + ] + + operations = [ + migrations.CreateModel( + name='Game', + fields=[ + ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), + ('name', models.CharField(max_length=100)), + ('index', models.CharField(max_length=100)), + ('agent0', models.CharField(max_length=100)), + ('agent1', models.CharField(max_length=100)), + ('win', models.BooleanField()), + ('payoff', models.FloatField()), + ('replay', models.TextField(blank=True)), + ], + ), + migrations.CreateModel( + name='Payoff', + fields=[ + ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), + ('name', models.CharField(max_length=100)), + ('agent0', models.CharField(max_length=100)), + ('agent1', models.CharField(max_length=100)), + ('payoff', models.FloatField()), + ], + ), + ] diff --git a/server/tournament/migrations/__init__.py b/server/tournament/migrations/__init__.py new file mode 100644 index 0000000..e69de29 diff --git a/server/tournament/migrations/__pycache__/0001_initial.cpython-35.pyc b/server/tournament/migrations/__pycache__/0001_initial.cpython-35.pyc new file mode 100644 index 0000000000000000000000000000000000000000..97ef20de5787a9eb8ae6230c26f2d08b4e8f6031 GIT binary patch literal 1077 zcmbtT%Wl&^6uo}LjUA`q)v{pALs?L#VvA6rRVx;)km#xltV!m^aca-FV}~|u%TMqL z`~lxGV#lh#zy|J2QniRIkZ>|L_nsM_b03q18dGNk;SQ0^g)5J=Edh^>~i8FIb7%KQJ~J=UDJsyE)e}n>8{WDP#?D-KkVw zGBr<6ajwG}RnCh16YlHyBdVdSF|{=A+dY~+yGRQZSu?q!p@MGZg5!k_Scak*EPuDP zcb*F!RBSHCV;v~03O3iRVZp?y4&GV#sK2h;sijU+9i=HyS^G h$mA9u+NRh(*v*?77Ty!$*6o*zKEE>Us!bO+z29{02HF4s literal 0 HcmV?d00001 diff --git a/server/tournament/migrations/__pycache__/__init__.cpython-35.pyc b/server/tournament/migrations/__pycache__/__init__.cpython-35.pyc new file mode 100644 index 0000000000000000000000000000000000000000..6aa2f0dec13511f5e6809189f3464ae13185b659 GIT binary patch literal 177 zcmWgR<>fNFup^EE2p)q77+?f49Dul(1xTbYFa&Ed`mJOr0tq9CUvc^w`MIh3DT(>X z8L4^tE~&-YCHV#VMLEfdMJc+)8TsWY`Q>>S{NmK2veY8|lKj%5yu{qpyb}G~%=Dtf llFawF@ literal 0 HcmV?d00001