mirror of
				https://github.com/zulip/zulip.git
				synced 2025-10-31 03:53:50 +00:00 
			
		
		
		
	This prep commit adds a new OnboardingUserMessage model that will be used to mark the new onboarding messages for new users as unread and the first message of each onboarding topic as starred. This table won't include the old onboarding messages.
		
			
				
	
	
		
			39 lines
		
	
	
		
			1.1 KiB
		
	
	
	
		
			Python
		
	
	
	
	
	
			
		
		
	
	
			39 lines
		
	
	
		
			1.1 KiB
		
	
	
	
		
			Python
		
	
	
	
	
	
| # Generated by Django 5.0.6 on 2024-06-27 06:03
 | |
| 
 | |
| import bitfield.models
 | |
| import django.db.models.deletion
 | |
| from django.db import migrations, models
 | |
| 
 | |
| 
 | |
| class Migration(migrations.Migration):
 | |
|     dependencies = [
 | |
|         ("zerver", "0541_alter_realmauditlog_options"),
 | |
|     ]
 | |
| 
 | |
|     operations = [
 | |
|         migrations.CreateModel(
 | |
|             name="OnboardingUserMessage",
 | |
|             fields=[
 | |
|                 (
 | |
|                     "id",
 | |
|                     models.BigAutoField(
 | |
|                         auto_created=True, primary_key=True, serialize=False, verbose_name="ID"
 | |
|                     ),
 | |
|                 ),
 | |
|                 ("flags", bitfield.models.BitField(["read", "historical", "starred"], default=0)),
 | |
|                 (
 | |
|                     "message",
 | |
|                     models.ForeignKey(
 | |
|                         on_delete=django.db.models.deletion.CASCADE, to="zerver.message"
 | |
|                     ),
 | |
|                 ),
 | |
|                 (
 | |
|                     "realm",
 | |
|                     models.ForeignKey(
 | |
|                         on_delete=django.db.models.deletion.CASCADE, to="zerver.realm"
 | |
|                     ),
 | |
|                 ),
 | |
|             ],
 | |
|         ),
 | |
|     ]
 |