mirror of https://github.com/zulip/zulip.git
migrations: Transition to new squashed migration.
This commit is contained in:
parent
cec78e23bc
commit
a21f2d7715
|
@ -13,13 +13,6 @@ import zerver.models
|
|||
from django.db.backends.postgresql_psycopg2.schema import DatabaseSchemaEditor
|
||||
from django.db.migrations.state import StateApps
|
||||
|
||||
|
||||
# Functions from the following migrations need manual copying.
|
||||
# Move them and any dependencies into this file, then update the
|
||||
# RunPython operations to refer to the local versions:
|
||||
# zerver.migrations.0011_remove_guardian
|
||||
# zerver.migrations.0021_migrate_attachment_data
|
||||
|
||||
def migrate_existing_attachment_data(apps, schema_editor):
|
||||
# type: (StateApps, DatabaseSchemaEditor) -> None
|
||||
Attachment = apps.get_model('zerver', 'Attachment')
|
||||
|
@ -41,8 +34,6 @@ def migrate_existing_attachment_data(apps, schema_editor):
|
|||
|
||||
class Migration(migrations.Migration):
|
||||
|
||||
replaces = [('zerver', '0001_initial'), ('zerver', '0002_django_1_8'), ('zerver', '0003_custom_indexes'), ('zerver', '0004_userprofile_left_side_userlist'), ('zerver', '0005_auto_20150920_1340'), ('zerver', '0006_zerver_userprofile_email_upper_idx'), ('zerver', '0007_userprofile_is_bot_active_indexes'), ('zerver', '0008_preregistrationuser_upper_email_idx'), ('zerver', '0009_add_missing_migrations'), ('zerver', '0010_delete_streamcolor'), ('zerver', '0011_remove_guardian'), ('zerver', '0012_remove_appledevicetoken'), ('zerver', '0013_realmemoji'), ('zerver', '0014_realm_emoji_url_length'), ('zerver', '0015_attachment'), ('zerver', '0016_realm_create_stream_by_admins_only'), ('zerver', '0017_userprofile_bot_type'), ('zerver', '0018_realm_emoji_message'), ('zerver', '0019_preregistrationuser_realm_creation'), ('zerver', '0020_add_tracking_attachment'), ('zerver', '0021_migrate_attachment_data'), ('zerver', '0022_subscription_pin_to_top'), ('zerver', '0023_userprofile_default_language'), ('zerver', '0024_realm_allow_message_editing'), ('zerver', '0025_realm_message_content_edit_limit'), ('zerver', '0026_delete_mituser'), ('zerver', '0027_realm_default_language'), ('zerver', '0028_userprofile_tos_version')]
|
||||
|
||||
initial = True
|
||||
|
||||
dependencies = [
|
|
@ -23,7 +23,7 @@ def set_subdomain_of_default_realm(apps, schema_editor):
|
|||
class Migration(migrations.Migration):
|
||||
|
||||
dependencies = [
|
||||
('zerver', '0028_userprofile_tos_version'),
|
||||
('zerver', '0001_initial'),
|
||||
]
|
||||
|
||||
operations = [
|
||||
|
|
Loading…
Reference in New Issue