This repository has been archived by the owner on Jun 2, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 745
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add a new table for module-maintainers.
* fix #362 update maintianers change the lastmodified. remove version and change last modified. * #363 change isMaintainer detect logic.
- Loading branch information
Showing
12 changed files
with
379 additions
and
90 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -93,6 +93,7 @@ var config = { | |
sourceNpmRegistry: 'http://registry.npmjs.org', | ||
enablePrivate: true, // enable private mode, only admin can publish, other use just can sync package from source npm | ||
admins: { | ||
// name: email | ||
fengmk2: '[email protected]', | ||
admin: '[email protected]', | ||
dead_horse: '[email protected]', | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,27 +1,9 @@ | ||
-- http://nodejs.org/dist/ mirror | ||
CREATE TABLE `dist_dir` ( | ||
CREATE TABLE `module_maintainer` ( | ||
`id` bigint(20) unsigned NOT NULL AUTO_INCREMENT COMMENT 'primary key', | ||
`gmt_create` datetime NOT NULL COMMENT 'create time', | ||
`gmt_modified` datetime NOT NULL COMMENT 'modified time', | ||
`name` varchar(200) NOT NULL COMMENT 'user name', | ||
`parent` varchar(200) NOT NULL COMMENT 'parent dir' DEFAULT '/', | ||
`date` varchar(20) COMMENT '02-May-2014 01:06', | ||
`user` varchar(100) CHARACTER SET utf8 COLLATE utf8_general_ci NOT NULL COMMENT 'user name', | ||
`name` varchar(100) CHARACTER SET utf8 COLLATE utf8_bin NOT NULL COMMENT 'module name', | ||
PRIMARY KEY (`id`), | ||
UNIQUE KEY `name` (`parent`, `name`), | ||
KEY `gmt_modified` (`gmt_modified`) | ||
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COMMENT='dist dir info'; | ||
|
||
CREATE TABLE `dist_file` ( | ||
`id` bigint(20) unsigned NOT NULL AUTO_INCREMENT COMMENT 'primary key', | ||
`gmt_create` datetime NOT NULL COMMENT 'create time', | ||
`gmt_modified` datetime NOT NULL COMMENT 'modified time', | ||
`name` varchar(100) NOT NULL COMMENT 'user name', | ||
`parent` varchar(200) NOT NULL COMMENT 'parent dir' DEFAULT '/', | ||
`date` varchar(20) COMMENT '02-May-2014 01:06', | ||
`size` int(10) unsigned NOT NULL COMMENT 'file size' DEFAULT '0', | ||
`sha1` varchar(40) COMMENT 'sha1 hex value', | ||
`url` varchar(2048), | ||
PRIMARY KEY (`id`), | ||
UNIQUE KEY `fullname` (`parent`, `name`), | ||
KEY `gmt_modified` (`gmt_modified`) | ||
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COMMENT='dist file info'; | ||
UNIQUE KEY `user_module_name` (`user`,`name`), | ||
KEY `name` (`name`) | ||
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COMMENT='module maintainers'; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
admin user can publish new version to other user's package?