Files
zulip/zerver/migrations/0462_realmplayground_url_template.py
Zixuan James Li 641f60305d realm_playgrounds: Add url_template field.
As an intermediate step before we fully support url_template for realm
playgrounds, we populate url_template in the backend ensuring that all
the new entries will be validated. With a later backfilling migration,

we prepare the database such that all the records will have a valid URL
template.

Signed-off-by: Zixuan James Li <p359101898@gmail.com>
2023-07-24 10:29:40 -07:00

20 lines
501 B
Python

# Generated by Django 4.2.1 on 2023-05-27 00:06
from django.db import migrations, models
from zerver.models import url_template_validator
class Migration(migrations.Migration):
dependencies = [
("zerver", "0461_alter_realm_default_code_block_language"),
]
operations = [
migrations.AddField(
model_name="realmplayground",
name="url_template",
field=models.TextField(null=True, validators=[url_template_validator]),
),
]