-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
6 changed files
with
392 additions
and
23 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,299 @@ | ||
# Generated by Django 4.2.8 on 2024-11-09 16:50 | ||
|
||
from django.conf import settings | ||
from django.db import migrations, models | ||
import django.db.models.deletion | ||
import simple_history.models | ||
|
||
|
||
class Migration(migrations.Migration): | ||
dependencies = [ | ||
migrations.swappable_dependency(settings.AUTH_USER_MODEL), | ||
("authentikate", "0002_alter_user_unique_together_and_more"), | ||
("core", "0026_derivedview_operation_and_more"), | ||
] | ||
|
||
operations = [ | ||
migrations.CreateModel( | ||
name="TableView", | ||
fields=[ | ||
( | ||
"id", | ||
models.BigAutoField( | ||
auto_created=True, | ||
primary_key=True, | ||
serialize=False, | ||
verbose_name="ID", | ||
), | ||
), | ||
( | ||
"z_min", | ||
models.IntegerField( | ||
blank=True, help_text="The index of the channel", null=True | ||
), | ||
), | ||
( | ||
"z_max", | ||
models.IntegerField( | ||
blank=True, help_text="The index of the channel", null=True | ||
), | ||
), | ||
( | ||
"x_min", | ||
models.IntegerField( | ||
blank=True, help_text="The index of the channel", null=True | ||
), | ||
), | ||
( | ||
"x_max", | ||
models.IntegerField( | ||
blank=True, help_text="The index of the channel", null=True | ||
), | ||
), | ||
( | ||
"y_min", | ||
models.IntegerField( | ||
blank=True, help_text="The index of the channel", null=True | ||
), | ||
), | ||
( | ||
"y_max", | ||
models.IntegerField( | ||
blank=True, help_text="The index of the channel", null=True | ||
), | ||
), | ||
( | ||
"t_min", | ||
models.IntegerField( | ||
blank=True, help_text="The index of the channel", null=True | ||
), | ||
), | ||
( | ||
"t_max", | ||
models.IntegerField( | ||
blank=True, help_text="The index of the channel", null=True | ||
), | ||
), | ||
( | ||
"c_min", | ||
models.IntegerField( | ||
blank=True, help_text="The index of the channel", null=True | ||
), | ||
), | ||
( | ||
"c_max", | ||
models.IntegerField( | ||
blank=True, help_text="The index of the channel", null=True | ||
), | ||
), | ||
( | ||
"is_global", | ||
models.BooleanField( | ||
default=False, help_text="Whether the view is global or not" | ||
), | ||
), | ||
( | ||
"series_identifier", | ||
models.CharField( | ||
blank=True, | ||
help_text="The series identifier of the file", | ||
max_length=1000, | ||
null=True, | ||
), | ||
), | ||
( | ||
"collection", | ||
models.ForeignKey( | ||
blank=True, | ||
null=True, | ||
on_delete=django.db.models.deletion.CASCADE, | ||
to="core.viewcollection", | ||
), | ||
), | ||
( | ||
"image", | ||
simple_history.models.HistoricForeignKey( | ||
on_delete=django.db.models.deletion.CASCADE, to="core.image" | ||
), | ||
), | ||
( | ||
"table", | ||
models.ForeignKey( | ||
on_delete=django.db.models.deletion.CASCADE, | ||
related_name="views", | ||
to="core.table", | ||
), | ||
), | ||
], | ||
options={ | ||
"default_related_name": "table_views", | ||
}, | ||
), | ||
migrations.CreateModel( | ||
name="HistoricalTableView", | ||
fields=[ | ||
( | ||
"id", | ||
models.BigIntegerField( | ||
auto_created=True, blank=True, db_index=True, verbose_name="ID" | ||
), | ||
), | ||
( | ||
"assignation_id", | ||
models.CharField(blank=True, max_length=1000, null=True), | ||
), | ||
( | ||
"z_min", | ||
models.IntegerField( | ||
blank=True, help_text="The index of the channel", null=True | ||
), | ||
), | ||
( | ||
"z_max", | ||
models.IntegerField( | ||
blank=True, help_text="The index of the channel", null=True | ||
), | ||
), | ||
( | ||
"x_min", | ||
models.IntegerField( | ||
blank=True, help_text="The index of the channel", null=True | ||
), | ||
), | ||
( | ||
"x_max", | ||
models.IntegerField( | ||
blank=True, help_text="The index of the channel", null=True | ||
), | ||
), | ||
( | ||
"y_min", | ||
models.IntegerField( | ||
blank=True, help_text="The index of the channel", null=True | ||
), | ||
), | ||
( | ||
"y_max", | ||
models.IntegerField( | ||
blank=True, help_text="The index of the channel", null=True | ||
), | ||
), | ||
( | ||
"t_min", | ||
models.IntegerField( | ||
blank=True, help_text="The index of the channel", null=True | ||
), | ||
), | ||
( | ||
"t_max", | ||
models.IntegerField( | ||
blank=True, help_text="The index of the channel", null=True | ||
), | ||
), | ||
( | ||
"c_min", | ||
models.IntegerField( | ||
blank=True, help_text="The index of the channel", null=True | ||
), | ||
), | ||
( | ||
"c_max", | ||
models.IntegerField( | ||
blank=True, help_text="The index of the channel", null=True | ||
), | ||
), | ||
( | ||
"is_global", | ||
models.BooleanField( | ||
default=False, help_text="Whether the view is global or not" | ||
), | ||
), | ||
( | ||
"series_identifier", | ||
models.CharField( | ||
blank=True, | ||
help_text="The series identifier of the file", | ||
max_length=1000, | ||
null=True, | ||
), | ||
), | ||
("history_id", models.AutoField(primary_key=True, serialize=False)), | ||
("history_date", models.DateTimeField(db_index=True)), | ||
("history_change_reason", models.CharField(max_length=100, null=True)), | ||
( | ||
"history_type", | ||
models.CharField( | ||
choices=[("+", "Created"), ("~", "Changed"), ("-", "Deleted")], | ||
max_length=1, | ||
), | ||
), | ||
( | ||
"app", | ||
models.ForeignKey( | ||
blank=True, | ||
null=True, | ||
on_delete=django.db.models.deletion.SET_NULL, | ||
to="authentikate.app", | ||
), | ||
), | ||
( | ||
"collection", | ||
models.ForeignKey( | ||
blank=True, | ||
db_constraint=False, | ||
null=True, | ||
on_delete=django.db.models.deletion.DO_NOTHING, | ||
related_name="+", | ||
to="core.viewcollection", | ||
), | ||
), | ||
( | ||
"history_relation", | ||
models.ForeignKey( | ||
db_constraint=False, | ||
on_delete=django.db.models.deletion.DO_NOTHING, | ||
related_name="provenance", | ||
to="core.tableview", | ||
), | ||
), | ||
( | ||
"history_user", | ||
models.ForeignKey( | ||
null=True, | ||
on_delete=django.db.models.deletion.SET_NULL, | ||
related_name="+", | ||
to=settings.AUTH_USER_MODEL, | ||
), | ||
), | ||
( | ||
"image", | ||
simple_history.models.HistoricForeignKey( | ||
blank=True, | ||
db_constraint=False, | ||
null=True, | ||
on_delete=django.db.models.deletion.DO_NOTHING, | ||
related_name="+", | ||
to="core.image", | ||
), | ||
), | ||
( | ||
"table", | ||
models.ForeignKey( | ||
blank=True, | ||
db_constraint=False, | ||
null=True, | ||
on_delete=django.db.models.deletion.DO_NOTHING, | ||
related_name="+", | ||
to="core.table", | ||
), | ||
), | ||
], | ||
options={ | ||
"verbose_name": "historical table view", | ||
"verbose_name_plural": "historical table views", | ||
"ordering": ("-history_date", "-history_id"), | ||
"get_latest_by": ("history_date", "history_id"), | ||
}, | ||
bases=(simple_history.models.HistoricalChanges, models.Model), | ||
), | ||
] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.