aboutsummaryrefslogtreecommitdiffstats
path: root/api/migrations
diff options
context:
space:
mode:
authorGravatar Johannes Christ <[email protected]>2018-09-01 00:23:54 +0200
committerGravatar Johannes Christ <[email protected]>2018-09-01 17:11:30 +0200
commite9c65c836f5d269d0f597986f6ec37214e5edd92 (patch)
tree108bea6b0eb74b776ecceda18959a171d72589fb /api/migrations
parentMerge branch 'django' into django+documentation-link-api (diff)
Add the `OffTopicChannelName` model.
Diffstat (limited to 'api/migrations')
-rw-r--r--api/migrations/0002_offtopicchannelname.py20
1 files changed, 20 insertions, 0 deletions
diff --git a/api/migrations/0002_offtopicchannelname.py b/api/migrations/0002_offtopicchannelname.py
new file mode 100644
index 00000000..890cd81f
--- /dev/null
+++ b/api/migrations/0002_offtopicchannelname.py
@@ -0,0 +1,20 @@
+# Generated by Django 2.1 on 2018-08-31 22:21
+
+import django.core.validators
+from django.db import migrations, models
+
+
+class Migration(migrations.Migration):
+
+ dependencies = [
+ ('api', '0001_initial'),
+ ]
+
+ operations = [
+ migrations.CreateModel(
+ name='OffTopicChannelName',
+ fields=[
+ ('name', models.CharField(max_length=96, primary_key=True, serialize=False, validators=[django.core.validators.RegexValidator(regex='^[a-z0-9-]+$')])),
+ ],
+ ),
+ ]