igny8-wp
This commit is contained in:
63
backend/igny8_core/migrations/0002_wordpress_sync_fields.py
Normal file
63
backend/igny8_core/migrations/0002_wordpress_sync_fields.py
Normal 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'
|
||||
),
|
||||
),
|
||||
]
|
||||
Reference in New Issue
Block a user