first commit
This commit is contained in:
65
socials/migrations/0001_initial.py
Normal file
65
socials/migrations/0001_initial.py
Normal file
@@ -0,0 +1,65 @@
|
||||
# Generated by Django 5.1.1 on 2024-12-04 05:42
|
||||
|
||||
from django.db import migrations, models
|
||||
|
||||
|
||||
class Migration(migrations.Migration):
|
||||
|
||||
initial = True
|
||||
|
||||
dependencies = [
|
||||
]
|
||||
|
||||
operations = [
|
||||
migrations.CreateModel(
|
||||
name='Faq',
|
||||
fields=[
|
||||
('id', models.BigAutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
|
||||
('question', models.CharField(max_length=516)),
|
||||
('post', models.TextField()),
|
||||
('seq_num', models.SmallIntegerField()),
|
||||
('published', models.BooleanField(default=False)),
|
||||
],
|
||||
options={
|
||||
'verbose_name_plural': 'FAQs',
|
||||
'ordering': ['seq_num'],
|
||||
},
|
||||
),
|
||||
migrations.CreateModel(
|
||||
name='SocialPost',
|
||||
fields=[
|
||||
('id', models.BigAutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
|
||||
('title', models.CharField(max_length=64)),
|
||||
('post', models.TextField()),
|
||||
('created_at', models.DateField(auto_now=True)),
|
||||
('author', models.CharField(blank=True, max_length=64, null=True)),
|
||||
('published', models.BooleanField(default=False)),
|
||||
],
|
||||
options={
|
||||
'verbose_name_plural': 'Social Posts',
|
||||
'ordering': ['created_at', 'title'],
|
||||
},
|
||||
),
|
||||
migrations.CreateModel(
|
||||
name='SocialLink',
|
||||
fields=[
|
||||
('id', models.BigAutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
|
||||
('cid', models.CharField(blank=True, max_length=255, null=True)),
|
||||
('uri', models.URLField()),
|
||||
('text', models.CharField(blank=True, max_length=515, null=True)),
|
||||
('text_link', models.URLField(blank=True, null=True)),
|
||||
('handle', models.CharField(blank=True, max_length=63, null=True)),
|
||||
('likes', models.IntegerField()),
|
||||
('reposts', models.IntegerField()),
|
||||
('quotes', models.IntegerField()),
|
||||
('replies', models.IntegerField()),
|
||||
('more_details', models.JSONField(blank=True, null=True)),
|
||||
('created_at', models.DateTimeField(auto_now=True)),
|
||||
],
|
||||
options={
|
||||
'verbose_name_plural': 'Events',
|
||||
'ordering': ['created_at'],
|
||||
'unique_together': {('uri',)},
|
||||
},
|
||||
),
|
||||
]
|
||||
31
socials/migrations/0002_alter_sociallink_options_and_more.py
Normal file
31
socials/migrations/0002_alter_sociallink_options_and_more.py
Normal file
@@ -0,0 +1,31 @@
|
||||
# Generated by Django 5.1.1 on 2024-12-04 07:34
|
||||
|
||||
from django.db import migrations, models
|
||||
|
||||
|
||||
class Migration(migrations.Migration):
|
||||
|
||||
dependencies = [
|
||||
('socials', '0001_initial'),
|
||||
]
|
||||
|
||||
operations = [
|
||||
migrations.AlterModelOptions(
|
||||
name='sociallink',
|
||||
options={'ordering': ['-created_at'], 'verbose_name_plural': 'Social Links'},
|
||||
),
|
||||
migrations.RenameField(
|
||||
model_name='sociallink',
|
||||
old_name='text_link',
|
||||
new_name='link',
|
||||
),
|
||||
migrations.RemoveField(
|
||||
model_name='sociallink',
|
||||
name='more_details',
|
||||
),
|
||||
migrations.AlterField(
|
||||
model_name='sociallink',
|
||||
name='created_at',
|
||||
field=models.DateTimeField(),
|
||||
),
|
||||
]
|
||||
19
socials/migrations/0003_socialpost_uri.py
Normal file
19
socials/migrations/0003_socialpost_uri.py
Normal file
@@ -0,0 +1,19 @@
|
||||
# Generated by Django 5.1.1 on 2025-10-03 01:42
|
||||
|
||||
from django.db import migrations, models
|
||||
|
||||
|
||||
class Migration(migrations.Migration):
|
||||
|
||||
dependencies = [
|
||||
('socials', '0002_alter_sociallink_options_and_more'),
|
||||
]
|
||||
|
||||
operations = [
|
||||
migrations.AddField(
|
||||
model_name='socialpost',
|
||||
name='uri',
|
||||
field=models.URLField(default='test'),
|
||||
preserve_default=False,
|
||||
),
|
||||
]
|
||||
@@ -0,0 +1,38 @@
|
||||
# Generated by Django 5.1.1 on 2025-10-03 05:44
|
||||
|
||||
from django.db import migrations, models
|
||||
|
||||
|
||||
class Migration(migrations.Migration):
|
||||
|
||||
dependencies = [
|
||||
('socials', '0003_socialpost_uri'),
|
||||
]
|
||||
|
||||
operations = [
|
||||
migrations.AlterModelOptions(
|
||||
name='sociallink',
|
||||
options={'ordering': ['-likes'], 'verbose_name_plural': 'Social Links'},
|
||||
),
|
||||
migrations.AddField(
|
||||
model_name='sociallink',
|
||||
name='rt_handle',
|
||||
field=models.CharField(blank=True, max_length=63, null=True),
|
||||
),
|
||||
migrations.AddField(
|
||||
model_name='sociallink',
|
||||
name='rt_link',
|
||||
field=models.URLField(blank=True, null=True),
|
||||
),
|
||||
migrations.AddField(
|
||||
model_name='sociallink',
|
||||
name='rt_text',
|
||||
field=models.CharField(blank=True, max_length=515, null=True),
|
||||
),
|
||||
migrations.AddField(
|
||||
model_name='sociallink',
|
||||
name='rt_uri',
|
||||
field=models.URLField(default='blank'),
|
||||
preserve_default=False,
|
||||
),
|
||||
]
|
||||
@@ -0,0 +1,23 @@
|
||||
# Generated by Django 5.1.1 on 2025-10-03 05:50
|
||||
|
||||
from django.db import migrations, models
|
||||
|
||||
|
||||
class Migration(migrations.Migration):
|
||||
|
||||
dependencies = [
|
||||
('socials', '0004_alter_sociallink_options_sociallink_rt_handle_and_more'),
|
||||
]
|
||||
|
||||
operations = [
|
||||
migrations.AlterField(
|
||||
model_name='sociallink',
|
||||
name='rt_link',
|
||||
field=models.CharField(blank=True, max_length=64, null=True),
|
||||
),
|
||||
migrations.AlterField(
|
||||
model_name='sociallink',
|
||||
name='uri',
|
||||
field=models.CharField(blank=True, max_length=64, null=True),
|
||||
),
|
||||
]
|
||||
@@ -0,0 +1,32 @@
|
||||
# Generated by Django 5.1.1 on 2025-10-03 05:59
|
||||
|
||||
from django.db import migrations, models
|
||||
|
||||
|
||||
class Migration(migrations.Migration):
|
||||
|
||||
dependencies = [
|
||||
('socials', '0005_alter_sociallink_rt_link_alter_sociallink_uri'),
|
||||
]
|
||||
|
||||
operations = [
|
||||
migrations.RemoveField(
|
||||
model_name='sociallink',
|
||||
name='cid',
|
||||
),
|
||||
migrations.AlterField(
|
||||
model_name='sociallink',
|
||||
name='rt_link',
|
||||
field=models.URLField(blank=True, null=True),
|
||||
),
|
||||
migrations.AlterField(
|
||||
model_name='sociallink',
|
||||
name='rt_uri',
|
||||
field=models.CharField(blank=True, max_length=63, null=True),
|
||||
),
|
||||
migrations.AlterField(
|
||||
model_name='sociallink',
|
||||
name='uri',
|
||||
field=models.CharField(blank=True, max_length=63, null=True),
|
||||
),
|
||||
]
|
||||
@@ -0,0 +1,23 @@
|
||||
# Generated by Django 5.1.1 on 2025-10-04 00:19
|
||||
|
||||
from django.db import migrations, models
|
||||
|
||||
|
||||
class Migration(migrations.Migration):
|
||||
|
||||
dependencies = [
|
||||
('socials', '0006_remove_sociallink_cid_alter_sociallink_rt_link_and_more'),
|
||||
]
|
||||
|
||||
operations = [
|
||||
migrations.AlterModelOptions(
|
||||
name='sociallink',
|
||||
options={'ordering': ['-created_at'], 'verbose_name_plural': 'Social Links'},
|
||||
),
|
||||
migrations.AddField(
|
||||
model_name='sociallink',
|
||||
name='platform',
|
||||
field=models.CharField(default='bluesky', max_length=16),
|
||||
preserve_default=False,
|
||||
),
|
||||
]
|
||||
@@ -0,0 +1,33 @@
|
||||
# Generated by Django 5.1.1 on 2025-10-04 00:28
|
||||
|
||||
from django.db import migrations, models
|
||||
|
||||
|
||||
class Migration(migrations.Migration):
|
||||
|
||||
dependencies = [
|
||||
('socials', '0007_alter_sociallink_options_sociallink_platform'),
|
||||
]
|
||||
|
||||
operations = [
|
||||
migrations.AlterField(
|
||||
model_name='sociallink',
|
||||
name='likes',
|
||||
field=models.IntegerField(blank=True, null=True),
|
||||
),
|
||||
migrations.AlterField(
|
||||
model_name='sociallink',
|
||||
name='quotes',
|
||||
field=models.IntegerField(blank=True, null=True),
|
||||
),
|
||||
migrations.AlterField(
|
||||
model_name='sociallink',
|
||||
name='replies',
|
||||
field=models.IntegerField(blank=True, null=True),
|
||||
),
|
||||
migrations.AlterField(
|
||||
model_name='sociallink',
|
||||
name='reposts',
|
||||
field=models.IntegerField(blank=True, null=True),
|
||||
),
|
||||
]
|
||||
@@ -0,0 +1,23 @@
|
||||
# Generated by Django 5.1.1 on 2025-10-04 20:07
|
||||
|
||||
from django.db import migrations, models
|
||||
|
||||
|
||||
class Migration(migrations.Migration):
|
||||
|
||||
dependencies = [
|
||||
('socials', '0008_alter_sociallink_likes_alter_sociallink_quotes_and_more'),
|
||||
]
|
||||
|
||||
operations = [
|
||||
migrations.AddField(
|
||||
model_name='sociallink',
|
||||
name='pub_link',
|
||||
field=models.URLField(blank=True, null=True),
|
||||
),
|
||||
migrations.AddField(
|
||||
model_name='sociallink',
|
||||
name='published',
|
||||
field=models.BooleanField(default=0),
|
||||
),
|
||||
]
|
||||
30
socials/migrations/0010_socialimg.py
Normal file
30
socials/migrations/0010_socialimg.py
Normal file
@@ -0,0 +1,30 @@
|
||||
# Generated by Django 5.1.1 on 2025-10-05 07:56
|
||||
|
||||
from django.db import migrations, models
|
||||
|
||||
|
||||
class Migration(migrations.Migration):
|
||||
|
||||
dependencies = [
|
||||
('socials', '0009_sociallink_pub_link_sociallink_published'),
|
||||
]
|
||||
|
||||
operations = [
|
||||
migrations.CreateModel(
|
||||
name='SocialImg',
|
||||
fields=[
|
||||
('id', models.BigAutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
|
||||
('uri', models.CharField(blank=True, max_length=63, null=True)),
|
||||
('text', models.CharField(blank=True, max_length=515, null=True)),
|
||||
('img_link', models.URLField(blank=True, null=True)),
|
||||
('handle', models.CharField(blank=True, max_length=63, null=True)),
|
||||
('created_at', models.DateTimeField()),
|
||||
('platform', models.CharField(max_length=16)),
|
||||
],
|
||||
options={
|
||||
'verbose_name_plural': 'Social Images',
|
||||
'ordering': ['-created_at'],
|
||||
'unique_together': {('uri',)},
|
||||
},
|
||||
),
|
||||
]
|
||||
0
socials/migrations/__init__.py
Normal file
0
socials/migrations/__init__.py
Normal file
Reference in New Issue
Block a user