8000 MySQL:更新表 · coder-caicai/APIJSON@1cac05d · GitHub
[go: up one dir, main page]

Skip to content

Commit 1cac05d

Browse files
committed
MySQL:更新表
1 parent a0cb251 commit 1cac05d

14 files changed

+51
-51
lines changed

MySQL/sys_Comment.sql

Lines changed: 4 additions & 4 deletions
Large diffs are not rendered by default.

MySQL/sys_Document.sql

Lines changed: 4 additions & 4 deletions
Large diffs are not rendered by default.

MySQL/sys_Function.sql

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
-- MySQL dump 10.13 Distrib 5.7.17, for macos10.12 (x86_64)
22
--
3-
-- Host: 47.98.196.224 Database: sys
3+
-- Host: localhost Database: sys
44
-- ------------------------------------------------------
5-
-- Server version 5.7.19-log
5+
-- Server version 5.7.17
66

77
/*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */;
88
/*!40101 SET @OLD_CHARACTER_SET_RESULTS=@@CHARACTER_SET_RESULTS */;
@@ -53,4 +53,4 @@ UNLOCK TABLES;
5353
/*!40101 SET COLLATION_CONNECTION=@OLD_COLLATION_CONNECTION */;
5454
/*!40111 SET SQL_NOTES=@OLD_SQL_NOTES */;
5555

56-
-- Dump completed on 2018-11-03 22:05:42
56+
-- Dump completed on 2018-11-11 4:18:27

MySQL/sys_Login.sql

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
-- MySQL dump 10.13 Distrib 5.7.17, for macos10.12 (x86_64)
22
--
3-
-- Host: 47.98.196.224 Database: sys
3+
-- Host: localhost Database: sys
44
-- ------------------------------------------------------
5-
-- Server version 5.7.19-log
5+
-- Server version 5.7.17
66

77
/*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */;
88
/*!40101 SET @OLD_CHARACTER_SET_RESULTS=@@CHARACTER_SET_RESULTS */;
@@ -50,4 +50,4 @@ UNLOCK TABLES;
5050
/*!40101 SET COLLATION_CONNECTION=@OLD_COLLATION_CONNECTION */;
5151
/*!40111 SET SQL_NOTES=@OLD_SQL_NOTES */;
5252

53-
-- Dump completed on 2018-11-03 22:05:51
53+
-- Dump completed on 2018-11-11 4:18:31

MySQL/sys_Moment.sql

Lines changed: 4 additions & 4 deletions
Large diffs are not rendered by default.

MySQL/sys_Praise.sql

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
-- MySQL dump 10.13 Distrib 5.7.17, for macos10.12 (x86_64)
22
--
3-
-- Host: 47.98.196.224 Database: sys
3+
-- Host: localhost Database: sys
44
-- ------------------------------------------------------
5-
-- Server version 5.7.19-log
5+
-- Server version 5.7.17
66

77
/*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */;
88
/*!40101 SET @OLD_CHARACTER_SET_RESULTS=@@CHARACTER_SET_RESULTS */;
@@ -50,4 +50,4 @@ UNLOCK TABLES;
5050
/*!40101 SET COLLATION_CONNECTION=@OLD_COLLATION_CONNECTION */;
5151
/*!40111 SET SQL_NOTES=@OLD_SQL_NOTES */;
5252

53-
-- Dump completed on 2018-11-03 22:05:49
53+
-- Dump completed on 2018-11-11 4:18:30

MySQL/sys_Request.sql

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
-- MySQL dump 10.13 Distrib 5.7.17, for macos10.12 (x86_64)
22
--
3-
-- Host: 47.98.196.224 Database: sys
3+
-- Host: localhost Database: sys
44
-- ------------------------------------------------------
5-
-- Server version 5.7.19-log
5+
-- Server version 5.7.17
66

77
/*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */;
88
/*!40101 SET @OLD_CHARACTER_SET_RESULTS=@@CHARACTER_SET_RESULTS */;
@@ -40,7 +40,7 @@ CREATE TABLE `Request` (
4040

4141
LOCK TABLES `Request` WRITE;
4242
/*!40000 ALTER TABLE `Request` DISABLE KEYS */;
43-
INSERT INTO `Request` VALUES (1,1,'POST','register','{\"User\": {\"PUT\": {\"id@\": \"Privacy/id\"}, \"DISALLOW\": \"id\", \"NECESSARY\": \"name\"}, \"Privacy\": {\"UNIQUE\": \"phone\", \"VERIFY\": {\"phone?\": \"phone\"}, \"DISALLOW\": \"id\", \"NECESSARY\": \"_password,phone\"}}','UNIQUE校验phone是否已存在。VERIFY校验phone是否符合手机号的格式','2017-02-01 11:19:51'),(2,1,'POST','Moment','{\"ADD\": {\"pictureList\": [], \"praiseUserIdList\": []}, \"PUT\": {\"verifyIdList-()\": \"verifyIdList(praiseUserIdList)\", \"verifyURLList-()\": \"verifyURLList(pictureList)\"}, \"DISALLOW\": \"id\", \"NECESSARY\": \"userId\"}','ADD当没传pictureList和praiseUserIdList时用空数组[]补全,保证不会为null','2017-02-01 11:19:51'),(3,1,'POST','Comment','{\"DISALLOW\": \"id\", \"NECESSARY\": \"userId,momentId,content\"}','必须传userId,momentId,content,不允许传id','2017-02-01 11:19:51'),(4,1,'PUT','User','{\"ADD\": {\"@role\": \"owner\"}, \"DISALLOW\": \"phone\", \"NECESSARY\": \"id\"}','必须传id,不允许传phone。ADD当没传@role时用owner补全','2017-02-01 11:19:51'),(5,1,'DELETE','Moment','{\"PUT\": {\"Comment\": {\"@role\": \"admin\", \"momentId@\": \"Moment/id\"}}, \"Moment\": {\"ADD\": {\"@role\": \"owner\"}, \"NECESSARY\": \"id\"}}',NULL,'2017-02-01 11:19:51'),(6,1,'DELETE','Comment','{\"ADD\": {\"@role\": \"owner\"}, \"PUT\": {\"childCount()\": \"deleteChildComment(id)\"}, \"NECESSARY\": \"id\"}','disallow没必要用于DELETE','2017-02-01 11:19:51'),(8,1,'PUT','User-phone','{\"User\": {\"ADD\": {\"@role\": \"owner\"}, \"PUT\": {\"@combine\": \"_password\"}, \"DISALLOW\": \"!\", \"NECESSARY\": \"id,phone,_password\"}}','! 表示其它所有,这里指necessary所有未包含的字段','2017-02-01 11:19:51'),(14,1,'POST','Verify','{\"DISALLOW\": \"!\", \"NECESSARY\": \"phone,verify\"}','必须传phone,verify,其它都不允许传','2017-02-18 14:20:43'),(15,1,'GETS','Verify','{\"NECESSARY\": \"phone\"}','必须传phone','2017-02-18 14:20:43'),(16,1,'HEADS','Verify','{}','允许任意内容','2017-02-18 14:20:43'),(17,1,'PUT','Moment','{\"DISALLOW\": \"userId,date\", \"NECESSARY\": \"id\"}',NULL,'2017-02-01 11:19:51'),(21,1,'HEADS','Login','{\"DISALLOW\": \"!\", \"NECESSARY\": \"userId,type\"}',NULL,'2017-02-18 14:20:43'),(22,1,'GETS','User','{}','允许传任何内容,除了表对象','2017-02-18 14:20:43'),(23,1,'PUT','Privacy','{\"ADD\": {\"@role\": \"owner\"}, \"NECESSARY\": \"id\"}','ADD当没传@role时用owner补全','2017-02-01 11:19:51'),(25,1,'PUT','Praise','{\"NECESSARY\": \"id\"}','必须传id','2017-02-01 11:19:51'),(26,1,'DELETE','Comment[]','{\"Comment\": {\"ADD\": {\"@role\": \"owner\"}, \"NECESSARY\": \"id{}\"}}','DISALLOW没必要用于DELETE','2017-02-01 11:19:51'),(27,1,'PUT','Comment[]','{\"Comment\": {\"ADD\": {\"@role\": \"owner\"}, \"NECESSARY\": \"id{}\"}}','DISALLOW没必要用于DELETE','2017-02-01 11:19:51'),(28,1,'PUT','Comment','{\"ADD\": {\"@role\": \"owner\"}, \"NECESSARY\": \"id\"}','这里省略了Comment,因为tag就是Comment,Parser.getCorrectRequest会自动补全','2017-02-01 11:19:51'),(29,1,'GETS','login','{\"Privacy\": {\"DISALLOW\": \"id\", \"NECESSARY\": \"phone,_password\"}}',NULL,'2017-10-15 10:04:52'),(30,1,'PUT','balance+','{\"Privacy\": {\"VERIFY\": {\"balance+&{}\": \">=1,<=100000\"}, \"DISALLOW\": \"!\", \"NECESSARY\": \"id,balance+\"}}','验证balance+对应的值是否满足>=1且<=100000','2017-10-21 08:48:34'),(31,1,'PUT','balance-','{\"Privacy\": {\"PUT\": {\"@combine\": \"_password\"}, \"VERIFY\": {\"balance-&{}\": \">=1,<=10000\"}, \"DISALLOW\": \"!\", \"NECESSARY\": \"id,balance-,_password\"}}','PUT强制把_password作为WHERE条件','2017-10-21 08:48:34'),(32,2,'GETS','Privacy','{\"ADD\": {\"@role\": \"owner\"}, \"DISALLOW\": \"_password,_payPassword\", \"NECESSARY\": \"id\"}',NULL,'2017-06-12 16:05:51'),(33,2,'GETS','Privacy-CIRCLE','{\"Privacy\": {\"PUT\": {\"@role\": \"CIRCLE\", \"@column\": \"phone\"}, \"DISALLOW\": \"!\", \"NECESSARY\": \"id\"}}',NULL,'2017-06-12 16:05:51'),(35,2,'POST','Document','{\"DISALLOW\": \"id\", \"NECESSARY\": \"userId,name,url,request\"}',NULL,'2017-11-26 08:34:41'),(36,2,'PUT','Document','{\"DISALLOW\": \"userId\", \"NECESSARY\": \"id\"}',NULL,'2017-11-26 08:35:15'),(37,2,'DELETE','Document','{\"ADD\": {\"@role\": \"owner\"}, \"PUT\": {\"TestRecord\": {\"@role\": \"owner\", \"documentId@\": \"Document/id\"}}, \"DISALLOW\": \"!\", \"NECESSARY\": \"id\"}',NULL,'2017-11-26 00:36:20'),(38,2,'POST','TestRecord','{\"DISALLOW\": \"id\", \"NECESSARY\": \"userId,documentId,response\"}',NULL,'2018-06-16 23:44:36');
43+
INSERT INTO `Request` VALUES (1,1,'POST','register','{\"User\": {\"PUT\": {\"id@\": \"Privacy/id\"}, \"DISALLOW\": \"id\", \"NECESSARY\": \"name\"}, \"Privacy\": {\"UNIQUE\": \"phone\", \"VERIFY\": {\"phone?\": \"phone\"}, \"DISALLOW\": \"id\", \"NECESSARY\": \"_password,phone\"}}','UNIQUE校验phone是否已存在。VERIFY校验phone是否符合手机号的格式','2017-02-01 11:19:51'),(2,1,'POST','Moment','{\"ADD\": {\"@role\": \"owner\", \"pictureList\": [], \"praiseUserIdList\": []}, \"PUT\": {\"verifyIdList-()\": \"verifyIdList(praiseUserIdList)\", \"verifyURLList-()\": \"verifyURLList(pictureList)\"}, \"DISALLOW\": \"id\"}','ADD当没传pictureList和praiseUserIdList时用空数组[]补全,保证不会为null','2017-02-01 11:19:51'),(3,1,'POST','Comment','{\"PUT\": {\"@role\": \"owner\"}, \"DISALLOW\": \"id\", \"NECESSARY\": \"momentId,content\"}','必须传userId,momentId,content,不允许传id','2017-02-01 11:19:51'),(4,1,'PUT','User','{\"ADD\": {\"@role\": \"owner\"}, \"DISALLOW\": \"phone\", \"NECESSARY\": \"id\"}','必须传id,不允许传phone。ADD当没传@role时用owner补全','2017-02-01 11:19:51'),(5,1,'DELETE','Moment','{\"Moment\": {\"ADD\": {\"@role\": \"owner\"}, \"PUT\": {\"commentCount()\": \"deleteCommentOfMoment(id)\"}, \"NECESSARY\": \"id\"}}',NULL,'2017-02-01 11:19:51'),(6,1,'DELETE','Comment','{\"ADD\": {\"@role\": \"owner\"}, \"PUT\": {\"childCount()\": \"deleteChildComment(id)\"}, \"NECESSARY\": \"id\"}','disallow没必要用于DELETE','2017-02-01 11:19:51'),(8,1,'PUT','User-phone','{\"User\": {\"ADD\": {\"@role\": \"owner\"}, \"PUT\": {\"@combine\": \"_password\"}, \"DISALLOW\": \"!\", \"NECESSARY\": \"id,phone,_password\"}}','! 表示其它所有,这里指necessary所有未包含的字段','2017-02-01 11:19:51'),(14,1,'POST','Verify','{\"DISALLOW\": \"!\", \"NECESSARY\": \"phone,verify\"}','必须传phone,verify,其它都不允许传','2017-02-18 14:20:43'),(15,1,'GETS','Verify','{\"NECESSARY\": \"phone\"}','必须传phone','2017-02-18 14:20:43'),(16,1,'HEADS','Verify','{}','允许任意内容','2017-02-18 14:20:43'),(17,1,'PUT','Moment','{\"DISALLOW\": \"userId,date\", \"NECESSARY\": \"id\"}',NULL,'2017-02-01 11:19:51'),(21,1,'HEADS','Login','{\"DISALLOW\": \"!\", \"NECESSARY\": \"userId,type\"}',NULL,'2017-02-18 14:20:43'),(22,1,'GETS','User','{}','允许传任何内容,除了表对象','2017-02-18 14:20:43'),(23,1,'PUT','Privacy','{\"ADD\": {\"@role\": \"owner\"}, \"NECESSARY\": \"id\"}','ADD当没传@role时用owner补全','2017-02-01 11:19:51'),(25,1,'PUT','Praise','{\"NECESSARY\": \"id\"}','必须传id','2017-02-01 11:19:51'),(26,1,'DELETE','Comment[]','{\"Comment\": {\"ADD\": {\"@role\": \"owner\"}, \"NECESSARY\": \"id{}\"}}','DISALLOW没必要用于DELETE','2017-02-01 11:19:51'),(27,1,'PUT','Comment[]','{\"Comment\": {\"ADD\": {\"@role\": \"owner\"}, \"NECESSARY\": \"id{}\"}}','DISALLOW没必要用于DELETE','2017-02-01 11:19:51'),(28,1,'PUT','Comment','{\"ADD\": {\"@role\": \"owner\"}, \"NECESSARY\": \"id\"}','这里省略了Comment,因为tag就是Comment,Parser.getCorrectRequest会自动补全','2017-02-01 11:19:51'),(29,1,'GETS','login','{\"Privacy\": {\"DISALLOW\": \"id\", \"NECESSARY\": \"phone,_password\"}}',NULL,'2017-10-15 10:04:52'),(30,1,'PUT','balance+','{\"Privacy\": {\"VERIFY\": {\"balance+&{}\": \">=1,<=100000\"}, \"DISALLOW\": \"!\", \"NECESSARY\": \"id,balance+\"}}','验证balance+对应的值是否满足>=1且<=100000','2017-10-21 08:48:34'),(31,1,'PUT','balance-','{\"Privacy\": {\"PUT\": {\"@combine\": \"_password\"}, \"VERIFY\": {\"balance-&{}\": \">=1,<=10000\"}, \"DISALLOW\": \"!\", \"NECESSARY\": \"id,balance-,_password\"}}','PUT强制把_password作为WHERE条件','2017-10-21 08:48:34'),(32,2,'GETS','Privacy','{\"ADD\": {\"@role\": \"owner\"}, \"DISALLOW\": \"_password,_payPassword\", \"NECESSARY\": \"id\"}',NULL,'2017-06-12 16:05:51'),(33,2,'GETS','Privacy-CIRCLE','{\"Privacy\": {\"PUT\": {\"@role\": \"CIRCLE\", \"@column\": \"phone\"}, \"DISALLOW\": \"!\", \"NECESSARY\": \"id\"}}',NULL,'2017-06-12 16:05:51'),(35,2,'POST','Document','{\"DISALLOW\": \"id\", \"NECESSARY\": \"userId,name,url,request\"}',NULL,'2017-11-26 08:34:41'),(36,2,'PUT','Document','{\"DISALLOW\": \"userId\", \"NECESSARY\": \"id\"}',NULL,'2017-11-26 08:35:15'),(37,2,'DELETE','Document','{\"ADD\": {\"@role\": \"owner\"}, \"PUT\": {\"TestRecord\": {\"@role\": \"owner\", \"documentId@\": \"Document/id\"}}, \"DISALLOW\": \"!\", \"NECESSARY\": \"id\"}',NULL,'2017-11-26 00:36:20'),(38,2,'POST','TestRecord','{\"DISALLOW\": \"id\", \"NECESSARY\": \"userId,documentId,response\"}',NULL,'2018-06-16 23:44:36');
4444
/*!40000 ALTER TABLE `Request` ENABLE KEYS */;
4545
UNLOCK TABLES;
4646
/*!40103 SET TIME_ZONE=@OLD_TIME_ZONE */;
@@ -53,4 +53,4 @@ UNLOCK TABLES;
5353
/*!40101 SET COLLATION_CONNECTION=@OLD_COLLATION_CONNECTION */;
5454
/*!40111 SET SQL_NOTES=@OLD_SQL_NOTES */;
5555

56-
-- Dump completed on 2018-11-03 22:05:47
56+
-- Dump completed on 2018-11-11 4:18:29

MySQL/sys_Response.sql

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
-- MySQL dump 10.13 Distrib 5.7.17, for macos10.12 (x86_64)
22
--
3-
-- Host: 47.98.196.224 Database: sys
3+
-- Host: localhost Database: sys
44
-- ------------------------------------------------------
5-
-- Server version 5.7.19-log
5+
-- Server version 5.7.17
66

77
/*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */;
88
/*!40101 SET @OLD_CHARACTER_SET_RESULTS=@@CHARACTER_SET_RESULTS */;
@@ -53,4 +53,4 @@ UNLOCK TABLES;
5353
/*!40101 SET COLLATION_CONNECTION=@OLD_COLLATION_CONNECTION */;
5454
/*!40111 SET SQL_NOTES=@OLD_SQL_NOTES */;
5555

56-
-- Dump completed on 2018-11-03 22:05:54
56+
-- Dump completed on 2018-11-11 4:18:32

MySQL/sys_Test.sql

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
-- MySQL dump 10.13 Distrib 5.7.17, for macos10.12 (x86_64)
22
--
3-
-- Host: 47.98.196.224 Database: sys
3+
-- Host: localhost Database: sys
44
-- ------------------------------------------------------
5-
-- Server version 5.7.19-log
5+
-- Server version 5.7.17
66

77
/*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */;
88
/*!40101 SET @OLD_CHARACTER_SET_RESULTS=@@CHARACTER_SET_RESULTS */;
@@ -47,4 +47,4 @@ UNLOCK TABLES;
4747
/*!40101 SET COLLATION_CONNECTION=@OLD_COLLATION_CONNECTION */;
4848
/*!40111 SET SQL_NOTES=@OLD_SQL_NOTES */;
4949

50-
-- Dump completed on 2018-11-03 22:05:50
50+
-- Dump completed on 2018-11-11 4:18:31

MySQL/sys_TestRecord.sql

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
-- MySQL dump 10.13 Distrib 5.7.17, for macos10.12 (x86_64)
22
--
3-
-- Host: 47.98.196.224 Database: sys
3+
-- Host: localhost Database: sys
44
-- ------------------------------------------------------
5-
-- Server version 5.7.19-log
5+
-- Server version 5.7.17
66

77
/*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */;
88
/*!40101 SET @OLD_CHARACTER_SET_RESULTS=@@CHARACTER_SET_RESULTS */;
@@ -53,4 +53,4 @@ UNLOCK TABLES;
5353
/*!40101 SET COLLATION_CONNECTION=@OLD_COLLATION_CONNECTION */;
5454
/*!40111 SET SQL_NOTES=@OLD_SQL_NOTES */;
5555

56-
-- Dump completed on 2018-11-03 22:05:44
56+
-- Dump completed on 2018-11-11 4:18:28

0 commit comments

Comments
 (0)
0