added timestamp and author fields to codepot_file_list.

touched up some views to get rid of the infostrip class and use the title-band class.
added the database_store_gmt option which causes the database models classes to store date and time in GMT.
This commit is contained in:
2016-01-08 16:52:29 +00:00
parent 530e38ceb5
commit 070ccb3118
31 changed files with 489 additions and 243 deletions

View File

@ -187,6 +187,11 @@ CREATE TABLE file_list (
md5sum CHAR(32) NOT NULL,
description VARCHAR(255) NOT NULL,
createdon DATETIME NOT NULL,
updatedon DATETIME NOT NULL,
createdby VARCHAR(32) NOT NULL,
updatedby VARCHAR(32) NOT NULL,
INDEX file_list_id (projectid, name),
UNIQUE KEY file_list_fileid (projectid, filename),
UNIQUE KEY (encname),

View File

@ -170,6 +170,10 @@ CREATE TABLE "cpot_file_list" (
"encname" VARCHAR(255) NOT NULL,
"md5sum" CHAR(32) NOT NULL,
"description" CLOB NOT NULL,
"createdon" TIMESTAMP NOT NULL,
"updatedon" TIMESTAMP NOT NULL,
"createdby" VARCHAR(32) NOT NULL,
"updatedby" VARCHAR(32) NOT NULL,
UNIQUE ("projectid", "filename"),
UNIQUE ("encname"),
CONSTRAINT file_list_projectid FOREIGN KEY ("projectid","name") REFERENCES "cpot_file"("projectid","name")

View File

@ -225,6 +225,11 @@ CREATE TABLE file_list (
md5sum CHAR(32) NOT NULL,
description VARCHAR(255) NOT NULL,
createdon TIMESTAMP NOT NULL,
updatedon TIMESTAMP NOT NULL,
createdby VARCHAR(32) NOT NULL,
updatedby VARCHAR(32) NOT NULL,
UNIQUE (projectid, filename),
UNIQUE (encname),