diff --git a/tables/appdb_tables.sql b/tables/appdb_tables.sql index a088418..0bf88ad 100644 --- a/tables/appdb_tables.sql +++ b/tables/appdb_tables.sql @@ -19,8 +19,6 @@ drop table if exists appBundle; drop table if exists appVotes; drop table if exists appRating; drop table if exists appNotes; -drop table if exists appMaintainers; -drop table if exists appMaintainerQueue; drop table if exists sessionMessages; @@ -247,37 +245,6 @@ create table appNotes ( ); -/* - * List of the application maintainers. These users have the rights - * to delete comments, edit the application description and otherwise - * care for an application. - */ -create table appMaintainers ( - maintainerId int not null auto_increment, - appId int, - versionId int, - userId int, - superMaintainer bool, - submitTime datetime, - key(maintainerId) -); - -/* - * Queue where users names will go if they request to become an application - * maintainer. This includes the reason they want to become a maintainer. - */ -create table appMaintainerQueue ( - queueId int not null auto_increment, - appId int, - versionId int, - userId int, - maintainReason text, - superMaintainer bool, - submitTime datetime, - key(queueId) -); - - /* * */ diff --git a/tables/maintainers.sql b/tables/maintainers.sql index 22d2c97..5b7abf6 100644 --- a/tables/maintainers.sql +++ b/tables/maintainers.sql @@ -3,21 +3,32 @@ use apidb; drop table if exists appMaintainerQueue; drop table if exists appMaintainers; +/* + * List of the application maintainers. These users have the rights + * to delete comments, edit the application description and otherwise + * care for an application. + */ +create table appMaintainers ( + maintainerId int not null auto_increment, + appId int, + versionId int, + userId int, + superMaintainer bool, + submitTime datetime, + key(maintainerId) +); + +/* + * Queue where users names will go if they request to become an application + * maintainer. This includes the reason they want to become a maintainer. + */ create table appMaintainerQueue ( queueId int not null auto_increment, appId int, versionId int, userId int, maintainReason text, - submitTime timestamp, + superMaintainer bool, + submitTime datetime, key(queueId) ); - -create table appMaintainers ( - maintainerId int not null auto_increment, - appId int, - versionId int, - userId int, - submitTime timestamp, - key(maintainerId) -);