Remove old update scripts
This commit is contained in:
parent
13a2cd9b18
commit
cac1c7eb31
@ -1,19 +0,0 @@
|
||||
<?php
|
||||
/**
|
||||
* @Author: printempw
|
||||
* @Date: 2016-08-11 13:08:13
|
||||
* @Last Modified by: printempw
|
||||
* @Last Modified time: 2016-08-29 13:47:13
|
||||
*/
|
||||
$options = [
|
||||
'avatar_query_string' => '0',
|
||||
'version' => '',
|
||||
'check_update' => '1',
|
||||
'update_source' => 'github',
|
||||
];
|
||||
|
||||
foreach ($options as $key => $value) {
|
||||
Option::set($key, $value);
|
||||
}
|
||||
|
||||
Option::set('version', '3.0.2');
|
@ -1,12 +0,0 @@
|
||||
<?php
|
||||
/**
|
||||
* @Author: printempw
|
||||
* @Date: 2016-08-27 18:21:04
|
||||
* @Last Modified by: printempw
|
||||
* @Last Modified time: 2016-08-27 18:21:15
|
||||
*/
|
||||
if (Option::get('update_source') == 'github') {
|
||||
Option::set('update_source', 'nyavm');
|
||||
}
|
||||
|
||||
Option::set('version', '3.0.4');
|
@ -1,15 +0,0 @@
|
||||
<?php
|
||||
/**
|
||||
* @Author: printempw
|
||||
* @Date: 2016-09-28 22:43:44
|
||||
* @Last Modified by: printempw
|
||||
* @Last Modified time: 2016-09-28 22:55:29
|
||||
*/
|
||||
Option::set('version', '3.1.1');
|
||||
|
||||
return [
|
||||
'如果你是从 v3.0.x 升级上来的,请进行下列操作:',
|
||||
'把 /textures 文件夹移动至 /storage 文件夹中',
|
||||
'删除 /config/routes.php,不然会出现奇怪的问题',
|
||||
'重新复制一份 .env.example,并适当修改其中的配置(尤其注意 PWD_METHOD 要和以前一样,否则将无法登录)',
|
||||
];
|
@ -1,26 +0,0 @@
|
||||
<?php
|
||||
/**
|
||||
* @Author: printempw
|
||||
* @Date: 2016-12-31 23:37:34
|
||||
* @Last Modified by: printempw
|
||||
* @Last Modified time: 2017-01-02 16:22:32
|
||||
*/
|
||||
if (! Illuminate\Support\Str::startsWith(option('update_source'), 'http')) {
|
||||
Option::set('update_source', config('options.update_source'));
|
||||
}
|
||||
|
||||
foreach (config('options') as $key => $value) {
|
||||
if ($value === 'true' || $value === 'false') {
|
||||
$option = option($key);
|
||||
|
||||
if ($option === '0' || $option === '1') {
|
||||
Option::set([$key => ($option === '0' ? 'false' : 'true')]);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Option::set('version', '3.2.0');
|
||||
|
||||
return [
|
||||
'v3.2 新加入了插件系统,支持的插件请去程序发布帖查看',
|
||||
];
|
@ -1,9 +0,0 @@
|
||||
<?php
|
||||
|
||||
Option::set('version', '3.4.0');
|
||||
|
||||
return [
|
||||
'此版本中插件 API 变化较大,升级完成后务必将您目前正在使用的插件更新至【最新版本】',
|
||||
'升级完成后请手动删除 storage/framework/views 目录下的缓存文件(如果它们没有被自动删除的话)',
|
||||
'升级完成后请【务必】清空你的浏览器缓存,否则可能会出现奇怪的问题',
|
||||
];
|
@ -1,34 +0,0 @@
|
||||
<?php
|
||||
|
||||
$msg = [];
|
||||
|
||||
try {
|
||||
Artisan::call('migrate', ['--force' => true]);
|
||||
$msg[] = '【数据库】升级成功!现在你可以正常使用 v3.5.0 内置的用户邮箱验证功能了';
|
||||
} catch (Exception $e) {
|
||||
$msg[] = '【数据库】更新数据表失败,错误信息:'.$e->getMessage();
|
||||
$msg[] = '【数据库】这并不影响 v3.5.0 的基本功能,你可以参考 <a href="https://github.com/printempw/blessing-skin-server/wiki/%E6%89%8B%E5%8A%A8%E5%AE%89%E8%A3%85-Blessing-Skin#-%E5%8D%87%E7%BA%A7%E8%87%B3-bs-v350" target="_blank">这篇文章</a> 手动升级你的数据库';
|
||||
}
|
||||
|
||||
$plugins_enabled = (array) json_decode(option('plugins_enabled'), true);
|
||||
|
||||
if (in_array('data-integration', $plugins_enabled)) {
|
||||
$plugins_enabled = '["data-integration"]';
|
||||
$msg[] = '【数据对接】原有的数据对接插件已经不再维护,并且有可能在 v3.5.0 上出现奇怪的问题';
|
||||
$msg[] = '【数据对接】请参考 <a href="https://github.com/printempw/blessing-skin-server/wiki/%E5%A6%82%E4%BD%95%E4%BD%BF%E7%94%A8%E6%95%B0%E6%8D%AE%E5%AF%B9%E6%8E%A5" target="_blank">这篇文章</a> 升级你的数据对接插件';
|
||||
} else {
|
||||
$plugins_enabled = '';
|
||||
}
|
||||
|
||||
$msg[] = '【插件系统】升级程序已经自动禁用了所有已安装的插件,因为这些插件的版本可能过旧';
|
||||
$msg[] = '【插件系统】请在后台的「插件市场」页面升级你的所有插件,确保其为最新版后再启用它们';
|
||||
$msg[] = '【插件系统】在 v3.5.0 上强行启用旧版的插件可能造成无法预知的问题!';
|
||||
|
||||
option(['plugins_enabled' => $plugins_enabled]);
|
||||
option(['return_204_when_notfound' => option('return_404_when_notfound')]);
|
||||
option(['version' => config('app.version')]);
|
||||
|
||||
$msg[] = '【升级成功】升级完成后请【务必】清空你的浏览器缓存,否则可能会出现奇怪的问题';
|
||||
$msg[] = '【升级成功】使用愉快!<a href="https://github.com/printempw/blessing-skin-server/wiki/CHANGELOG" target="_blank">查看完整更新日志</a>';
|
||||
|
||||
return $msg;
|
@ -1,20 +0,0 @@
|
||||
<?php
|
||||
|
||||
\Illuminate\Console\Application::starting(function ($artisan) {
|
||||
$artisan->resolveCommands([\Laravel\Passport\Console\KeysCommand::class]);
|
||||
});
|
||||
|
||||
$tips = [];
|
||||
|
||||
Artisan::call('jwt:secret', ['--no-interaction' => true]);
|
||||
Artisan::call('migrate', ['--force' => true]);
|
||||
try {
|
||||
Artisan::call('passport:keys', ['--no-interaction' => true]);
|
||||
} catch (\Exception $e) {
|
||||
$tips[] = nl2br(implode("\n", [
|
||||
'您需要打开终端或 PowerShell 来执行这条命令:<code>php artisan passport:keys</code>',
|
||||
'You need to open terminal or PowerShell and execute: <code>php artisan passport:keys</code>',
|
||||
]));
|
||||
}
|
||||
|
||||
return $tips;
|
@ -1,8 +0,0 @@
|
||||
<?php
|
||||
|
||||
return [
|
||||
'请您手动打开终端或 PowerShell 执行以下命令以完成升级:',
|
||||
'Please open terminal or PowerShell to complete upgrade:',
|
||||
'<code>php artisan migrate --force</code>',
|
||||
'<code>php artisan bs:migrate-v4:likes</code>',
|
||||
];
|
@ -1,7 +0,0 @@
|
||||
<?php
|
||||
|
||||
return [
|
||||
'请您手动打开终端或 PowerShell 执行以下命令以完成升级:',
|
||||
'Please open terminal or PowerShell to complete upgrade:',
|
||||
'<code>php artisan migrate --force</code>',
|
||||
];
|
@ -1,7 +0,0 @@
|
||||
<?php
|
||||
|
||||
return [
|
||||
'请您手动打开终端或 PowerShell 执行以下命令以完成升级:',
|
||||
'Please open terminal or PowerShell to complete upgrade:',
|
||||
'<code>php artisan migrate --force</code>',
|
||||
];
|
Loading…
Reference in New Issue
Block a user