Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 3890290

Browse files
author
xuxinhua
committed
Merge remote-tracking branch 'origin/master'
2 parents 2246126 + 139eef6 commit 3890290

File tree

2 files changed

+34
-3
lines changed

2 files changed

+34
-3
lines changed

websites/code/studygolang/install.bat

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ set VERSION=%VERNAME%-%VERCODE%
2323
gofmt -w src
2424

2525
:: -tags "debug" 表示测试
26-
go install -tags "debug" -ldflags "-X util.Version "%VERSION%" -X util.Date "%date:~3,10%T%time%"" ./...
26+
go install -tags "debug" -ldflags "-X util.version.Version "%VERSION%" -X util.Date "%date:~3,10%T%time%"" ./...
2727

2828
set GOPATH=%OLDGOPATH%
2929

websites/databases/studygolang_db.sql

Lines changed: 33 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -292,7 +292,8 @@ CREATE TABLE `resource` (
292292
`catid` int unsigned NOT NULL COMMENT '所属类别',
293293
`ctime` timestamp NOT NULL DEFAULT 0,
294294
`mtime` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP,
295-
PRIMARY KEY (`id`)
295+
PRIMARY KEY (`id`),
296+
KEY (`url`)
296297
) COMMENT '资源' ENGINE=InnoDB DEFAULT CHARSET=utf8;
297298

298299
/*---------------------------------------------------------------------------*
@@ -470,4 +471,34 @@ CREATE TABLE `morning_reading` (
470471
`username` varchar(20) NOT NULL DEFAULT '' COMMENT '发布人',
471472
`ctime` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP,
472473
PRIMARY KEY (`id`)
473-
)ENGINE=InnoDB DEFAULT CHARSET=utf8 COMMENT '技术晨读表';
474+
)ENGINE=InnoDB DEFAULT CHARSET=utf8 COMMENT '技术晨读表';
475+
476+
477+
/*---------------------------------------------------------------------------*
478+
NAME: advertisement
479+
用途: 广告表
480+
*---------------------------------------------------------------------------*/
481+
DROP TABLE IF EXISTS `advertisement`;
482+
CREATE TABLE `advertisement` (
483+
`id` int unsigned NOT NULL AUTO_INCREMENT,
484+
`name` varchar(20) NOT NULL DEFAULT '' COMMENT '广告名称',
485+
`code` varchar(255) NOT NULL DEFAULT '' COMMENT '广告内容代码(html、js等)',
486+
`source` varchar(20) NOT NULL DEFAULT '' COMMENT '广告来源,如 baidu_union,shiyanlou',
487+
`ctime` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP,
488+
PRIMARY KEY (`id`)
489+
)ENGINE=InnoDB DEFAULT CHARSET=utf8 COMMENT '广告表';
490+
491+
/*---------------------------------------------------------------------------*
492+
NAME: page_ad
493+
用途: 页面广告管理表
494+
*---------------------------------------------------------------------------*/
495+
DROP TABLE IF EXISTS `page_ad`;
496+
CREATE TABLE `page_ad` (
497+
`id` int unsigned NOT NULL AUTO_INCREMENT,
498+
`ad_id` varchar(20) NOT NULL DEFAULT '' COMMENT '广告名称',
499+
`ad_id` varchar(20) NOT NULL DEFAULT '' COMMENT '广告名称',
500+
`code` varchar(255) NOT NULL DEFAULT '' COMMENT '广告内容代码(html、js等)',
501+
`source` varchar(20) NOT NULL DEFAULT '' COMMENT '广告来源,如 baidu_union,shiyanlou',
502+
`ctime` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP,
503+
PRIMARY KEY (`id`)
504+
)ENGINE=InnoDB DEFAULT CHARSET=utf8 COMMENT '页面广告管理表';

0 commit comments

Comments
 (0)