kopia lustrzana https://github.com/dukethis/activitypub-example
Migrations for Activity
rodzic
be1fcfd88e
commit
7631c9ca74
|
@ -0,0 +1,27 @@
|
|||
# -*- coding: utf-8 -*-
|
||||
# Generated by Django 1.11.3 on 2017-08-02 22:22
|
||||
from __future__ import unicode_literals
|
||||
|
||||
from django.db import migrations, models
|
||||
import django.db.models.deletion
|
||||
|
||||
|
||||
class Migration(migrations.Migration):
|
||||
|
||||
dependencies = [
|
||||
('activitypub', '0006_auto_20170720_1211'),
|
||||
]
|
||||
|
||||
operations = [
|
||||
migrations.CreateModel(
|
||||
name='Activity',
|
||||
fields=[
|
||||
('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
|
||||
('ap_id', models.TextField()),
|
||||
('payload', models.BinaryField()),
|
||||
('created_at', models.DateField(auto_now_add=True)),
|
||||
('remote', models.BooleanField()),
|
||||
('person', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, related_name='activities', to='activitypub.Person')),
|
||||
],
|
||||
),
|
||||
]
|
|
@ -0,0 +1,20 @@
|
|||
# -*- coding: utf-8 -*-
|
||||
# Generated by Django 1.11.3 on 2017-08-02 22:32
|
||||
from __future__ import unicode_literals
|
||||
|
||||
from django.db import migrations, models
|
||||
|
||||
|
||||
class Migration(migrations.Migration):
|
||||
|
||||
dependencies = [
|
||||
('activitypub', '0007_activity'),
|
||||
]
|
||||
|
||||
operations = [
|
||||
migrations.AlterField(
|
||||
model_name='activity',
|
||||
name='remote',
|
||||
field=models.BooleanField(default=False),
|
||||
),
|
||||
]
|
Ładowanie…
Reference in New Issue