From c403278f9f7d92259fad0d194d45ab9a0f94c39a Mon Sep 17 00:00:00 2001 From: Lunastra Date: Wed, 15 Dec 2021 15:15:28 -0800 Subject: [PATCH] Remove archive table and some settings. Cleaned up DDL --- .../ArchivingXUnitTest.cs | 4 +++ src/dbCode/fullDDL.txt | 25 +------------------ 2 files changed, 5 insertions(+), 24 deletions(-) diff --git a/Source Code/TeamHobby.HobbyProjectGenerator/TeamHobby.Archiving.xTests/ArchivingXUnitTest.cs b/Source Code/TeamHobby.HobbyProjectGenerator/TeamHobby.Archiving.xTests/ArchivingXUnitTest.cs index 0e53def..5b04c84 100644 --- a/Source Code/TeamHobby.HobbyProjectGenerator/TeamHobby.Archiving.xTests/ArchivingXUnitTest.cs +++ b/Source Code/TeamHobby.HobbyProjectGenerator/TeamHobby.Archiving.xTests/ArchivingXUnitTest.cs @@ -290,7 +290,11 @@ namespace TeamHobby.Archiving.xTests [Fact] public void IsArchiveOnFirstOfMonth() { + // Arrange + // Act + + // } diff --git a/src/dbCode/fullDDL.txt b/src/dbCode/fullDDL.txt index ffcc31a..ce96ed7 100644 --- a/src/dbCode/fullDDL.txt +++ b/src/dbCode/fullDDL.txt @@ -42,16 +42,12 @@ INSERT INTO hobby.roles (Role, CreatedBy, CreatedDate) VALUES SET Global innodb_file_per_table=ON; --- SET GLOBAL innodb_file_format='Barracuda'; SET GLOBAL innodb_default_row_format='dynamic'; SET GLOBAL innodb_compression_algorithm='zlib'; --- Check for system settings -SHOW VARIABLES LIKE 'innodb_compression_algorithm'; -SHOW VARIABLES LIKE 'innodb_default_row_format'; -SHOW VARIABLES LIKE '%innodb%'; + CREATE TABLE Persons ( PersonID int, @@ -97,23 +93,6 @@ create table Log ); -create table Archive -( - LtimeStamp datetime null, - logID int not null, - LvName varchar(50) not null, - catName varchar(50) not null, - userOP varchar(50) not null, - logMessage varchar(255) not null, - - constraint Archive_pk primary key (logID) -) - ENGINE=InnoDB - PAGE_COMPRESSED=1 - PAGE_COMPRESSION_LEVEL=9; - -drop table archive; - -- Dummy data for testing purposes -- Log categories data INSERT into logcategories(catName, catComment) values @@ -137,8 +116,6 @@ INSERT into log(lvname, catname, userop, logmessage) values ('Info', 'Business', 'log in', 'log in successfully'), ('Info', 'View', 'search for projects', 'result return'); -select * from logcategories; -select * from log;