diff --git a/application/install/apiRoute.tpl b/application/install/apiRoute.tpl new file mode 100644 index 0000000..3200188 --- /dev/null +++ b/application/install/apiRoute.tpl @@ -0,0 +1,15 @@ +=5.6.0", "topthink/framework": "5.1.*", "overtrue/pinyin": "~4.0", - "php-curl-class/php-curl-class": "^8.5" + "php-curl-class/php-curl-class": "^8.5", + "topthink/think-migration": "^2.0" }, "autoload": { "psr-4": { diff --git a/composer.lock b/composer.lock index 307db7e..6345960 100644 --- a/composer.lock +++ b/composer.lock @@ -4,7 +4,7 @@ "Read more about it at https://getcomposer.org/doc/01-basic-usage.md#installing-dependencies", "This file is @generated automatically" ], - "content-hash": "18c498f30e7a274ef2d266615d3f1084", + "content-hash": "80523d078e0bdb4822d59cc00bb0c65b", "packages": [ { "name": "overtrue/pinyin", @@ -236,6 +236,51 @@ } ], "time": "2018-05-11T06:45:42+00:00" + }, + { + "name": "topthink/think-migration", + "version": "v2.0.3", + "source": { + "type": "git", + "url": "https://github.com/top-think/think-migration.git", + "reference": "70c89850ca29c2eab988c7c3475d1d5331901bb8" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/top-think/think-migration/zipball/70c89850ca29c2eab988c7c3475d1d5331901bb8", + "reference": "70c89850ca29c2eab988c7c3475d1d5331901bb8", + "shasum": "", + "mirrors": [ + { + "url": "https://dl.laravel-china.org/%package%/%reference%.%type%", + "preferred": true + } + ] + }, + "require": { + "topthink/framework": "5.1.*" + }, + "type": "library", + "autoload": { + "psr-4": { + "Phinx\\": "phinx/src/Phinx", + "think\\migration\\": "src" + }, + "files": [ + "src/config.php" + ] + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "Apache-2.0" + ], + "authors": [ + { + "name": "yunwuxin", + "email": "448901948@qq.com" + } + ], + "time": "2017-12-31T16:32:22+00:00" } ], "packages-dev": [], diff --git a/config/database.php b/config/database.php index e07d3a6..12f235c 100644 --- a/config/database.php +++ b/config/database.php @@ -27,7 +27,7 @@ return [ // 数据库连接参数 'params' => [], // 数据库编码默认采用utf8 - 'charset' => 'utf8', + 'charset' => 'utf8mb4', // 数据库表前缀 'prefix' => '', // 数据库调试模式