This commit is contained in:
alorig
2025-11-28 12:08:21 +05:00
parent 719e477a2f
commit 081f94ffdb
7 changed files with 1521 additions and 0 deletions

View File

@@ -0,0 +1,63 @@
# Generated migration for WordPress sync fields
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('content', '0001_initial'), # Adjust based on your actual migration
]
operations = [
migrations.AddField(
model_name='contentpost',
name='wordpress_sync_status',
field=models.CharField(
choices=[
('pending', 'Pending'),
('syncing', 'Syncing'),
('success', 'Success'),
('failed', 'Failed')
],
default='pending',
max_length=20,
help_text='Status of WordPress synchronization'
),
),
migrations.AddField(
model_name='contentpost',
name='wordpress_post_id',
field=models.PositiveIntegerField(
null=True,
blank=True,
help_text='WordPress post ID after successful sync'
),
),
migrations.AddField(
model_name='contentpost',
name='wordpress_post_url',
field=models.URLField(
null=True,
blank=True,
help_text='WordPress post URL after successful sync'
),
),
migrations.AddField(
model_name='contentpost',
name='wordpress_sync_attempts',
field=models.PositiveSmallIntegerField(
default=0,
help_text='Number of WordPress sync attempts'
),
),
migrations.AddField(
model_name='contentpost',
name='last_wordpress_sync',
field=models.DateTimeField(
null=True,
blank=True,
help_text='Timestamp of last WordPress sync attempt'
),
),
]