diff --git a/dashboard/src/components/app/Backups.vue b/dashboard/src/components/app/Backups.vue index c0461046f..e324b20d0 100644 --- a/dashboard/src/components/app/Backups.vue +++ b/dashboard/src/components/app/Backups.vue @@ -34,14 +34,14 @@ const columns = ref({ label: t('app.backups.backups.packageVersion'), sort: true, }, - creationTime: { - label: t('app.backups.backups.time'), - sort: true, - }, site: { label: t('backup.target.label'), sort: true, }, + creationTime: { + label: t('app.backups.backups.time'), + sort: true, + }, actions: { label: '', sort: false, diff --git a/dashboard/src/views/BackupListView.vue b/dashboard/src/views/BackupListView.vue index de357a780..a0edcfe54 100644 --- a/dashboard/src/views/BackupListView.vue +++ b/dashboard/src/views/BackupListView.vue @@ -34,20 +34,20 @@ const columns = { sort: true, hideMobile: true, }, - creationTime: { - label: t('main.table.date'), - sort: true + site: { + label: t('backup.target.label'), + sort(a, b) { + return b.name <= a.name ? 1 : -1; + }, }, content: { label: t('backups.listing.contents'), sort: false, hideMobile: true, }, - site: { - label: t('backup.target.label'), - sort(a, b) { - return b.name <= a.name ? 1 : -1; - }, + creationTime: { + label: t('main.table.date'), + sort: true }, actions: {} }; diff --git a/migrations/schema.sql b/migrations/schema.sql index f352e30e2..006732bd0 100644 --- a/migrations/schema.sql +++ b/migrations/schema.sql @@ -160,7 +160,7 @@ CREATE TABLE IF NOT EXISTS backups( appConfigJson TEXT, /* useful for clone and archive */ siteId VARCHAR(128) NOT NULL, integrityJson TEXT, /* { signature } */ - statsJSON TEXT, + statsJson TEXT, FOREIGN KEY(siteId) REFERENCES backupSites(id), INDEX creationTime_index (creationTime),