Skip to content
This repository was archived by the owner on Jun 11, 2024. It is now read-only.

Commit 8fdffce

Browse files
authored
Update README.md
1 parent 94b2d8d commit 8fdffce

File tree

1 file changed

+8
-8
lines changed

1 file changed

+8
-8
lines changed

README.md

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -66,11 +66,11 @@ CREATE TABLE `pexels` (
6666
`size` varchar(255) DEFAULT NULL,
6767
`resolution` varchar(255) DEFAULT NULL,
6868
`tags` varchar(255) DEFAULT NULL,
69-
`type_id` int(3) DEFAULT '0',
69+
`type_id` tinyint(1) DEFAULT '0',
7070
`chinese_tags` varchar(255) DEFAULT NULL,
7171
`thumb_name` varchar(255) DEFAULT NULL,
7272
`thumb_name2` varchar(255) DEFAULT NULL,
73-
`is_posted` int(255) DEFAULT '0',
73+
`is_posted` tinyint(1) DEFAULT '0',
7474
PRIMARY KEY (`id`)
7575
) ENGINE=InnoDB AUTO_INCREMENT=37971 DEFAULT CHARSET=utf8;
7676

@@ -94,13 +94,13 @@ CREATE TABLE `stocksnap` (
9494
`width` int(11) DEFAULT NULL,
9595
`height` int(11) DEFAULT NULL,
9696
`chinese_tags` varchar(255) DEFAULT NULL,
97-
`type_id` int(11) DEFAULT NULL,
97+
`type_id` tinyint(1) DEFAULT NULL,
9898
`tags` varchar(255) DEFAULT NULL,
9999
`created_at` timestamp NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP,
100100
`file_size` char(10) DEFAULT NULL,
101101
`thumb_name` varchar(255) DEFAULT NULL,
102102
`thumb_name2` varchar(255) DEFAULT NULL,
103-
`posted` int(2) DEFAULT '0',
103+
`posted` tinyint(1) DEFAULT '0',
104104
PRIMARY KEY (`id`),
105105
UNIQUE KEY `id` (`img_id`) USING BTREE
106106
) ENGINE=InnoDB AUTO_INCREMENT=81955 DEFAULT CHARSET=utf8;
@@ -118,9 +118,9 @@ CREATE TABLE `stockvault` (
118118
`resolution` varchar(255) DEFAULT NULL,
119119
`created_at` timestamp NULL DEFAULT CURRENT_TIMESTAMP,
120120
`chinese_tags` varchar(255) DEFAULT NULL,
121-
`is_posted` int(255) DEFAULT '0',
121+
`is_posted` tinyint(1) DEFAULT '0',
122122
`thumb_name` varchar(255) DEFAULT NULL,
123-
`type_id` int(11) DEFAULT NULL,
123+
`type_id` tinyint(1) DEFAULT NULL,
124124
`chinese_title` varchar(255) DEFAULT NULL,
125125
PRIMARY KEY (`id`)
126126
) ENGINE=InnoDB AUTO_INCREMENT=237592 DEFAULT CHARSET=utf8;
@@ -133,8 +133,8 @@ DELIMITER ;;
133133
CREATE DEFINER=`root`@`localhost` FUNCTION `LastIndexOf`(`str` varchar(255),`mysubstr` varchar(255)) RETURNS int(11)
134134
BEGIN
135135
#Routine body goes here...
136-
DECLARE pos int(5);
137-
DECLARE re_pos int(5);
136+
DECLARE pos int(11);
137+
DECLARE re_pos int(11);
138138
set re_pos = INSTR(REVERSE(str), REVERSE(mysubstr));
139139
if re_pos = 0 THEN
140140
RETURN 0;

0 commit comments

Comments
 (0)