mirror of
https://github.com/zulip/zulip.git
synced 2025-11-02 13:03:29 +00:00
migrations: Remove noop migration operations.
Since validators do not affect the database, this migration is a noop. Removing the migration fails check-database-compatibility. We might eventually delete it when Django supports a cleaner method for deletion. TODO: Remove the type annotation when django-stubs is integrated. Signed-off-by: Zixuan James Li <p359101898@gmail.com>
This commit is contained in:
committed by
Tim Abbott
parent
9bf383dcae
commit
87921315be
@@ -1,7 +1,6 @@
|
||||
import django.core.validators
|
||||
from django.db import migrations, models
|
||||
from typing import List
|
||||
|
||||
from zerver.models import filter_format_validator, filter_pattern_validator
|
||||
from django.db import migrations
|
||||
|
||||
|
||||
class Migration(migrations.Migration):
|
||||
@@ -10,17 +9,4 @@ class Migration(migrations.Migration):
|
||||
("zerver", "0042_attachment_file_name_length"),
|
||||
]
|
||||
|
||||
operations = [
|
||||
migrations.AlterField(
|
||||
model_name="realmfilter",
|
||||
name="pattern",
|
||||
field=models.TextField(validators=[filter_pattern_validator]),
|
||||
),
|
||||
migrations.AlterField(
|
||||
model_name="realmfilter",
|
||||
name="url_format_string",
|
||||
field=models.TextField(
|
||||
validators=[django.core.validators.URLValidator, filter_format_validator]
|
||||
),
|
||||
),
|
||||
]
|
||||
operations: List[migrations.operations.base.Operation] = []
|
||||
|
||||
Reference in New Issue
Block a user