Browse Source

更新数据表

tbphp 2 years ago
parent
commit
c11c22b650
1 changed files with 60 additions and 60 deletions
  1. 60 60
      data.sql

+ 60 - 60
data.sql

@@ -1,78 +1,60 @@
-/*
-Navicat MySQL Data Transfer
-
-Source Server         : 本地                                          127.0.0.1
-Source Server Version : 50624
-Source Host           : 127.0.0.1:3306
-Source Database       : svm
-
-Target Server Type    : MYSQL
-Target Server Version : 50624
-File Encoding         : 65001
-
-Date: 2017-07-14 02:29:15
-*/
-
-SET FOREIGN_KEY_CHECKS=0;
-
-DROP TABLE IF EXISTS `data`;
-CREATE TABLE `data` (
-  `id` int(10) unsigned NOT NULL AUTO_INCREMENT,
-  `pid` int(10) unsigned NOT NULL DEFAULT '0' COMMENT '项目id',
-  `sql` text NOT NULL,
-  `remark` varchar(20) NOT NULL DEFAULT '',
-  `time` int(10) unsigned NOT NULL DEFAULT '0',
-  `eids` varchar(255) NOT NULL DEFAULT '' COMMENT '没有操作的环境id列表',
-  PRIMARY KEY (`id`)
-) ENGINE=InnoDB AUTO_INCREMENT=5 DEFAULT CHARSET=utf8 COMMENT='数据';
-
-INSERT INTO `data` VALUES ('1', '1', 'SELECT * FROM `data` WHERE `status` = 1 AND `sex` = \'m\' AND type = \"a\" LIMIT 1', 'data查询', '1499967684', '[1][2][3]');
-INSERT INTO `data` VALUES ('2', '1', 'ALTER TABLE `data`\nMODIFY COLUMN `eids`  varchar(255) NOT NULL DEFAULT \'\' COMMENT \'没有操作的环境id列表\' AFTER `time`', 'eids字段修改', '1499968165', '[1][2][3]');
-INSERT INTO `data` VALUES ('3', '1', 'MODIFY COLUMN `eids`  varchar(255) NOT NULL DEFAULT \'\' COMMENT \'没有操作的环境id列表\' AFTER `time`MODIFY COLUMN `eids`  varchar(255) NOT NULL DEFAULT \'\' COMMENT \'没有操作的环境id列表\' AFTER `time`', 'eids', '1499968282', '[1][2][3]');
-INSERT INTO `data` VALUES ('4', '1', 'ALTER TABLE `data`\nMODIFY COLUMN `sql`  text CHARACTER SET utf8 COLLATE utf8_general_ci NOT NULL AFTER `pid`;', 'eid取消长度限制', '1499968362', '[1][2][3]');
-
-DROP TABLE IF EXISTS `env`;
-CREATE TABLE `env` (
-  `id` int(10) unsigned NOT NULL AUTO_INCREMENT,
-  `name` varchar(20) NOT NULL DEFAULT '',
-  `pid` int(10) unsigned NOT NULL DEFAULT '0' COMMENT '项目id',
-  `host` varchar(20) NOT NULL DEFAULT '',
-  `user` varchar(20) NOT NULL DEFAULT '',
-  `password` varchar(20) NOT NULL DEFAULT '',
-  `type` tinyint(1) unsigned NOT NULL DEFAULT '1' COMMENT '1.远程模式-执行sql,2.本地模式-手动复杂',
-  PRIMARY KEY (`id`)
-) ENGINE=InnoDB AUTO_INCREMENT=4 DEFAULT CHARSET=utf8 COMMENT='环境';
-
-INSERT INTO `env` VALUES ('1', '家', '1', '', '', '', '2');
-INSERT INTO `env` VALUES ('2', '公司', '1', '', '', '', '2');
-INSERT INTO `env` VALUES ('3', '阿里云主机', '1', '47.92.3.167', 'root', 'gQ952429d', '1');
-
-DROP TABLE IF EXISTS `project`;
-CREATE TABLE `project` (
-  `id` int(10) unsigned NOT NULL AUTO_INCREMENT,
-  `name` varchar(20) NOT NULL DEFAULT '',
-  `dbname` varchar(20) NOT NULL DEFAULT '' COMMENT '数据库名',
-  PRIMARY KEY (`id`)
-) ENGINE=InnoDB AUTO_INCREMENT=3 DEFAULT CHARSET=utf8 COMMENT='项目';
-
-INSERT INTO `project` VALUES ('1', '1to', '1to');
-INSERT INTO `project` VALUES ('2', 'svm', 'svm');
-SET FOREIGN_KEY_CHECKS=1;
+/*
+ Navicat Premium Data Transfer
+
+ Source Server         : localhost
+ Source Server Type    : MySQL
+ Source Server Version : 50718
+ Source Host           : localhost
+ Source Database       : svm
+
+ Target Server Type    : MySQL
+ Target Server Version : 50718
+ File Encoding         : utf-8
+
+ Date: 07/14/2017 13:46:45 PM
+*/
+
+SET NAMES utf8mb4;
+SET FOREIGN_KEY_CHECKS = 0;
+
+-- ----------------------------
+--  Table structure for `data`
+-- ----------------------------
+DROP TABLE IF EXISTS `data`;
+CREATE TABLE `data` (
+  `id` int(10) unsigned NOT NULL AUTO_INCREMENT,
+  `pid` int(10) unsigned NOT NULL DEFAULT '0' COMMENT '项目id',
+  `sql` text NOT NULL,
+  `remark` varchar(20) NOT NULL DEFAULT '',
+  `time` int(10) unsigned NOT NULL DEFAULT '0',
+  `eids` varchar(255) NOT NULL DEFAULT '' COMMENT '没有操作的环境id列表',
+  PRIMARY KEY (`id`)
+) ENGINE=InnoDB AUTO_INCREMENT=2 DEFAULT CHARSET=utf8 COMMENT='数据';
+
+-- ----------------------------
+--  Table structure for `env`
+-- ----------------------------
+DROP TABLE IF EXISTS `env`;
+CREATE TABLE `env` (
+  `id` int(10) unsigned NOT NULL AUTO_INCREMENT,
+  `name` varchar(20) NOT NULL DEFAULT '',
+  `pid` int(10) unsigned NOT NULL DEFAULT '0' COMMENT '项目id',
+  `host` varchar(20) NOT NULL DEFAULT '',
+  `user` varchar(20) NOT NULL DEFAULT '',
+  `password` varchar(20) NOT NULL DEFAULT '',
+  `type` tinyint(1) unsigned NOT NULL DEFAULT '1' COMMENT '1.远程模式-执行sql,2.本地模式-手动复杂',
+  PRIMARY KEY (`id`)
+) ENGINE=InnoDB AUTO_INCREMENT=4 DEFAULT CHARSET=utf8 COMMENT='环境';
+
+-- ----------------------------
+--  Table structure for `project`
+-- ----------------------------
+DROP TABLE IF EXISTS `project`;
+CREATE TABLE `project` (
+  `id` int(10) unsigned NOT NULL AUTO_INCREMENT,
+  `name` varchar(20) NOT NULL DEFAULT '',
+  `dbname` varchar(20) NOT NULL DEFAULT '' COMMENT '数据库名',
+  PRIMARY KEY (`id`)
+) ENGINE=InnoDB AUTO_INCREMENT=3 DEFAULT CHARSET=utf8 COMMENT='项目';
+
+SET FOREIGN_KEY_CHECKS = 1;