Skip to content

Commit

Permalink
postgres support | low case table names
Browse files Browse the repository at this point in the history
  • Loading branch information
tkorchug committed Nov 7, 2022
1 parent 03cc1bf commit 2eb767f
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
6 changes: 3 additions & 3 deletions core/common/models.py
Original file line number Diff line number Diff line change
Expand Up @@ -387,7 +387,7 @@ class TasksStatusLog(models.Model):
attemptnr = models.IntegerField(db_column='attemptnr', blank=True)
reason = models.CharField(max_length=600, db_column='reason', blank=True)
class Meta:
db_table = f'"{settings.DB_SCHEMA_PANDA}"."TASKS_STATUSLOG"'
db_table = f'"{settings.DB_SCHEMA_PANDA}"."tasks_statuslog"'
app_label = 'jedi'


Expand Down Expand Up @@ -457,7 +457,7 @@ class JobsStatuslog(models.Model):
modificationhost = models.CharField(max_length=384, db_column='modificationhost', blank=True)
modiftime_extended = models.DateTimeField(db_column='modiftime_extended')
class Meta:
db_table = f'"{settings.DB_SCHEMA_PANDA}"."JOBS_STATUSLOG"'
db_table = f'"{settings.DB_SCHEMA_PANDA}"."jobs_statuslog"'
app_label = 'panda'


Expand Down Expand Up @@ -535,7 +535,7 @@ class RucioAccounts(models.Model):
rucio_account = models.CharField(max_length=40, db_column='rucio_account')
create_time = models.DateTimeField(db_column='create_time')
class Meta:
db_table = f'"{settings.DB_SCHEMA}"."RUCIO_ACCOUNTS"'
db_table = f'"{settings.DB_SCHEMA}"."rucio_accounts"'
app_label = 'pandamon'


Expand Down
2 changes: 1 addition & 1 deletion core/compare/modelsCompare.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,5 +10,5 @@ class ObjectsComparison(models.Model):
comparisonlist = models.CharField(db_column='comparison_list', max_length=2000)

class Meta:
db_table = f'"{settings.DB_SCHEMA}"."OBJECTS_COMPARISON"'
db_table = f'"{settings.DB_SCHEMA}"."objects_comparison"'
app_label = 'pandamon'
2 changes: 1 addition & 1 deletion core/reports/models.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,5 +11,5 @@ class ReportEmails(models.Model):
email = models.CharField(max_length=256, db_column='EMAIL', null=False)

class Meta:
db_table = f'"{settings.DB_SCHEMA}"."REPORT_EMAIL"'
db_table = f'"{settings.DB_SCHEMA}"."report_email"'

0 comments on commit 2eb767f

Please sign in to comment.