-
Notifications
You must be signed in to change notification settings - Fork 16
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Added scripts for creating tables with logs #797
base: dev
Are you sure you want to change the base?
Conversation
…rks, studentgroups, eventoccurrences)
@@ -36,6 +36,8 @@ public class AccountService : IAccountService | |||
Account user = await _unitOfWork.AccountRepository |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
please find more places where account is modified.
@@ -0,0 +1,46 @@ | |||
USE `Soft`; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
please do dev testing
@@ -0,0 +1,49 @@ | |||
USE `Soft`; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
please do dev testing
@@ -0,0 +1,51 @@ | |||
USE `Soft`; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
please do dev testing
@@ -17,5 +17,7 @@ public Course() | |||
public virtual ICollection<MentorOfCourse> MentorsOfCourses { get; set; } | |||
|
|||
public virtual ICollection<StudentGroup> StudentGroup { get; set; } | |||
|
|||
public long UpdatedByAccountId { get; set; } |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
please set property where needed.
@@ -33,7 +33,7 @@ public static void AddServices(this IServiceCollection services, IConfiguration | |||
|
|||
services.AddHttpClient<IHttpUtil, HttpUtil>(client => | |||
{ | |||
client.BaseAddress = new Uri(configuration.GetSection("Urls:Api:Https").Value); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
please revert
entity.Property(e => e.UpdatedByAccountId) | ||
.IsRequired() | ||
.HasColumnName("UpdatedByAccountId") | ||
.HasDefaultValueSql("1"); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
please remove
CREATE TABLE `CoursesChanges` ( | ||
`ID` BIGINT UNSIGNED NOT NULL AUTO_INCREMENT, | ||
`CourseID` BIGINT UNSIGNED NOT NULL, | ||
`OldName` TINYINT UNSIGNED DEFAULT NULL, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
please set appropriate types
@@ -0,0 +1,46 @@ | |||
USE `Soft`; | |||
|
|||
DROP TABLE IF EXISTS `CoursesChanges`; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
please rename courses -> course
`OldIsActive` BIT DEFAULT NULL, | ||
`NewIsActive` BIT DEFAULT NULL, | ||
`QueriedBy` BIGINT UNSIGNED NOT NULL, | ||
`DateTime` DATETIME DEFAULT NOW(), |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
update date
Added scripts for creating tables with logs. AccountChanges tab can log account ID of user, who disabled or enebled account. Other tabs arent provided with that feature, but have column in db for further adding this functional.
Change tabs were added for accounts, courses, homeworks, student groups and event occurrences.