From 5e3e48a982cd0ab5909881954b7b2ee6ee5b61ae Mon Sep 17 00:00:00 2001 From: Jetske Date: Wed, 10 Jul 2024 15:16:54 +0200 Subject: [PATCH] Migrations added #1266 --- .../0083_annotatedsentencesource.py | 24 +++++++++++++++++++ ...tatedvideo_corpus_annotatedvideo_source.py | 24 +++++++++++++++++++ 2 files changed, 48 insertions(+) create mode 100644 signbank/dictionary/migrations/0083_annotatedsentencesource.py create mode 100644 signbank/video/migrations/0011_remove_annotatedvideo_corpus_annotatedvideo_source.py diff --git a/signbank/dictionary/migrations/0083_annotatedsentencesource.py b/signbank/dictionary/migrations/0083_annotatedsentencesource.py new file mode 100644 index 000000000..9a6c7c335 --- /dev/null +++ b/signbank/dictionary/migrations/0083_annotatedsentencesource.py @@ -0,0 +1,24 @@ +# Generated by Django 4.2.10 on 2024-07-10 13:06 + +from django.db import migrations, models +import django.db.models.deletion + + +class Migration(migrations.Migration): + + dependencies = [ + ('dictionary', '0082_signbankapitoken_remove_userprofile_api_token_and_more'), + ] + + operations = [ + migrations.CreateModel( + name='AnnotatedSentenceSource', + fields=[ + ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), + ('name', models.CharField(max_length=200)), + ('source', models.TextField()), + ('url', models.TextField(blank=True)), + ('dataset', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, to='dictionary.dataset')), + ], + ), + ] diff --git a/signbank/video/migrations/0011_remove_annotatedvideo_corpus_annotatedvideo_source.py b/signbank/video/migrations/0011_remove_annotatedvideo_corpus_annotatedvideo_source.py new file mode 100644 index 000000000..195ac0f86 --- /dev/null +++ b/signbank/video/migrations/0011_remove_annotatedvideo_corpus_annotatedvideo_source.py @@ -0,0 +1,24 @@ +# Generated by Django 4.2.10 on 2024-07-10 13:06 + +from django.db import migrations, models +import django.db.models.deletion + + +class Migration(migrations.Migration): + + dependencies = [ + ('dictionary', '0083_annotatedsentencesource'), + ('video', '0010_delete_video_alter_glossvideonme_options_and_more'), + ] + + operations = [ + migrations.RemoveField( + model_name='annotatedvideo', + name='corpus', + ), + migrations.AddField( + model_name='annotatedvideo', + name='source', + field=models.ForeignKey(null=True, on_delete=django.db.models.deletion.SET_NULL, to='dictionary.annotatedsentencesource'), + ), + ]