mirror of
https://github.com/sphildreth/roadie
synced 2025-03-01 13:47:16 +00:00
Cache work
This commit is contained in:
parent
3a42b23ddf
commit
1c528a9d9c
4 changed files with 10 additions and 9 deletions
|
@ -165,6 +165,7 @@ namespace Roadie.Api.Services
|
|||
TimeSpanInSeconds = (int)sw.Elapsed.TotalSeconds
|
||||
});
|
||||
await this.DbContext.SaveChangesAsync();
|
||||
this.CacheManager.Clear();
|
||||
await this.LogAndPublish($"**Completed!Processed Folders[{ processedFolders }], Processed Files[{ processedFiles}] : Elapsed Time[{ sw.Elapsed}]");
|
||||
return new OperationResult<bool>
|
||||
{
|
||||
|
|
|
@ -12,11 +12,17 @@ namespace Roadie.Library.Data
|
|||
[Column("userId")]
|
||||
public int UserId { get; set; }
|
||||
public ApplicationUser User { get; set; }
|
||||
[Column("forArtistId")]
|
||||
public int? ForArtistId { get; set; }
|
||||
[Column("forReleaseId")]
|
||||
public int? ForReleaseId { get; set; }
|
||||
[Column("newArtists")]
|
||||
public int? NewArtists { get; set; }
|
||||
[Column("newReleases")]
|
||||
public int? NewReleases { get; set; }
|
||||
[Column("newTracks")]
|
||||
public int? NewTracks { get; set; }
|
||||
[Column("timeSpanInSeconds")]
|
||||
public int TimeSpanInSeconds { get; set; }
|
||||
[NotMapped]
|
||||
public new bool? IsLocked { get; set; }
|
||||
|
|
|
@ -1,6 +0,0 @@
|
|||
DELETE FROM `userrole`;
|
||||
|
||||
INSERT INTO `userrole` (isLocked,status,roadieId,createdDate,lastUpdated,name,description,ConcurrencyStamp,NormalizedName) VALUES
|
||||
(1,1,'0f3ff165-7b4a-468d-b6ea-35180d8afc4b',UTC_DATE(),NULL,'Admin','Users with Administrative (full) access','0d325432-9bc9-4329-bc49-e07c7eccadf4','ADMIN')
|
||||
,(1,1,'c2443173-8653-4c86-ae74-92799380c5eb',UTC_DATE(),NULL,'Editor','Users who have Edit Permissions','0d325432-9bc9-4329-bc49-e07c7eccadf4','EDITOR')
|
||||
;
|
|
@ -181,7 +181,7 @@ CREATE TABLE `collection` (
|
|||
KEY `maintainerId` (`maintainerId`),
|
||||
KEY `ix_collection_roadieId` (`roadieId`),
|
||||
CONSTRAINT `collection_ibfk_1` FOREIGN KEY (`maintainerId`) REFERENCES `user` (`id`) ON DELETE SET NULL
|
||||
) ENGINE=InnoDB AUTO_INCREMENT=92 DEFAULT CHARSET=utf8;
|
||||
) ENGINE=InnoDB AUTO_INCREMENT=0 DEFAULT CHARSET=utf8;
|
||||
/*!40101 SET character_set_client = @saved_cs_client */;
|
||||
|
||||
--
|
||||
|
@ -417,7 +417,7 @@ CREATE TABLE `releaseGenreTable` (
|
|||
KEY `idx_releaseGenreTableReleaseAndGenre` (`releaseId`,`genreId`),
|
||||
CONSTRAINT `releaseGenreTable_ibfk_1` FOREIGN KEY (`releaseId`) REFERENCES `release` (`id`) ON DELETE CASCADE,
|
||||
CONSTRAINT `releaseGenreTable_ibfk_2` FOREIGN KEY (`genreId`) REFERENCES `genre` (`id`) ON DELETE CASCADE
|
||||
) ENGINE=InnoDB AUTO_INCREMENT=29802 DEFAULT CHARSET=utf8;
|
||||
) ENGINE=InnoDB AUTO_INCREMENT=0 DEFAULT CHARSET=utf8;
|
||||
/*!40101 SET character_set_client = @saved_cs_client */;
|
||||
|
||||
--
|
||||
|
@ -821,7 +821,7 @@ CREATE TABLE `usersInRoles` (
|
|||
KEY `ix_usersInRoles_userId` (`userId`),
|
||||
CONSTRAINT `usersInRoles_ibfk_1` FOREIGN KEY (`userId`) REFERENCES `user` (`id`) ON DELETE CASCADE,
|
||||
CONSTRAINT `usersInRoles_ibfk_2` FOREIGN KEY (`userRoleId`) REFERENCES `userrole` (`id`) ON DELETE CASCADE
|
||||
) ENGINE=InnoDB AUTO_INCREMENT=10 DEFAULT CHARSET=utf8;
|
||||
) ENGINE=InnoDB AUTO_INCREMENT=0 DEFAULT CHARSET=utf8;
|
||||
/*!40101 SET character_set_client = @saved_cs_client */;
|
||||
|
||||
--
|
||||
|
|
Loading…
Add table
Reference in a new issue