Просмотр исходного кода

修改maven模块配置和初始化数据库的SQL语句

suntg 7 лет назад
Родитель
Сommit
9085c9571d

+ 3 - 3
jpress-web-core/src/main/config/db.properties

@@ -1,9 +1,9 @@
 
 
 #Auto create by JPress
 #Auto create by JPress
 #Thu Jan 12 10:11:40 CST 2017
 #Thu Jan 12 10:11:40 CST 2017
-db_name=mall_cms
+db_name=usoftchina_home
 db_host_port=3306
 db_host_port=3306
 db_tablePrefix=cms_
 db_tablePrefix=cms_
-db_host=192.168.253.12
-db_password=select111***
+db_host=10.10.100.18
+db_password=select
 db_user=root
 db_user=root

+ 26 - 1
jpress-web-core/src/main/webapp/WEB-INF/install/sqls/mysql.sql

@@ -259,4 +259,29 @@ CREATE TABLE `{table_prefix}user` (
   KEY `created` (`created`),
   KEY `created` (`created`),
   KEY `content_count` (`content_count`),
   KEY `content_count` (`content_count`),
   KEY `comment_count` (`comment_count`)
   KEY `comment_count` (`comment_count`)
-) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COMMENT='用户信息表,保存用户信息。';
+) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COMMENT='用户信息表,保存用户信息。';
+
+# Dump of table modconf
+# ------------------------------------------------------------
+
+DROP TABLE IF EXISTS `{table_prefix}modconf`;
+
+CREATE TABLE `{table_prefix}modconf` (
+  `id` int(10) unsigned NOT NULL AUTO_INCREMENT COMMENT '主键id',
+  `title` varchar(100) NOT NULL COMMENT '模块名称',
+  `name` varchar(100) NOT NULL COMMENT '模块名称编码',
+  `has_contentList` int(2) NOT NULL DEFAULT '0' COMMENT '1,开启内容列表功能; 0,不开启',
+  `has_contentAdd` tinyint(2) NOT NULL DEFAULT '0' COMMENT '1,开启新增内容功能;0,冻结新增内容',
+  `isParent` tinyint(4) NOT NULL DEFAULT '0' COMMENT '1,是父模块;0,不是父模块',
+  `parentId` tinyint(4) NOT NULL DEFAULT '0' COMMENT '父模块id',
+  `module_type` varchar(100) DEFAULT 'new' COMMENT 'module的类型',
+  `module_sort` int(10) DEFAULT NULL,
+  `status` tinyint(4) DEFAULT '1' COMMENT '1,代表常用启用.0,代表逻辑删除;',
+  PRIMARY KEY (`id`)
+) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COMMENT='模块信息表,保存模块管理信息。';
+
+# Init data of table modconf
+# ------------------------------------------------------------
+
+INSERT INTO `{table_prefix}modconf` (`id`, `title`, `name`, `has_contentList`, `has_contentAdd`, `isParent`, `parentId`, `module_type`, `module_sort`, `status`) VALUES ('1', '首页', 'index', '0', '0', '1', '0', 'picture', '1000', '1');
+INSERT INTO `{table_prefix}modconf` (`id`, `title`, `name`, `has_contentList`, `has_contentAdd`, `isParent`, `parentId`, `module_type`, `module_sort`, `status`) VALUES ('2', '首页banner轮播图', 'index_banner_carousel', '1', '1', '0', '1', 'picture', '1001', '1');

+ 1 - 1
pom.xml

@@ -3,7 +3,7 @@
 	xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
 	xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
 	<modelVersion>4.0.0</modelVersion>
 	<modelVersion>4.0.0</modelVersion>
 
 
-	<groupId>com.uas.cms</groupId>
+	<groupId>com.usoftchina</groupId>
 	<artifactId>usoftchina-cms</artifactId>
 	<artifactId>usoftchina-cms</artifactId>
 	<version>1.0</version>
 	<version>1.0</version>
 	<packaging>pom</packaging>
 	<packaging>pom</packaging>