Skip to content

Commit

Permalink
Redo migration
Browse files Browse the repository at this point in the history
  • Loading branch information
cslzchen committed Nov 28, 2024
1 parent effeb79 commit 3fd8954
Showing 1 changed file with 41 additions and 0 deletions.
41 changes: 41 additions & 0 deletions osf/migrations/0025_versioned_guid_for_preprints_doi_versioning.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,41 @@
# Generated by Django 4.2.15 on 2024-11-28 21:33

import django.contrib.postgres.fields
from django.db import migrations, models
import django.db.models.deletion
import django_extensions.db.fields
import osf.models.base
import osf.utils.fields


class Migration(migrations.Migration):

dependencies = [
('contenttypes', '0002_remove_content_type_name'),
('osf', '0024_institution_link_to_external_reports_archive'),
]

operations = [
migrations.AlterField(
model_name='notificationdigest',
name='node_lineage',
field=django.contrib.postgres.fields.ArrayField(base_field=models.CharField(max_length=31), size=None),
),
migrations.CreateModel(
name='GuidVersionsThrough',
fields=[
('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
('modified', django_extensions.db.fields.ModificationDateTimeField(auto_now=True, verbose_name='modified')),
('created', osf.utils.fields.NonNaiveDateTimeField(auto_now_add=True, db_index=True)),
('object_id', models.PositiveIntegerField(blank=True, null=True)),
('version', models.PositiveIntegerField(blank=True, null=True)),
('is_rejected', models.BooleanField(default=False)),
('content_type', models.ForeignKey(blank=True, null=True, on_delete=django.db.models.deletion.CASCADE, to='contenttypes.contenttype')),
('guid', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, related_name='versions', to='osf.guid')),
],
options={
'abstract': False,
},
bases=(models.Model, osf.models.base.QuerySetExplainMixin),
),
]

0 comments on commit 3fd8954

Please sign in to comment.