This repository has been archived by the owner on Mar 23, 2018. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(console): upgrade solder from v0.7 to v0.8 with solder:upgrade c…
…ommand
- Loading branch information
0 parents
commit e56cf54
Showing
32 changed files
with
1,775 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
vendor/ | ||
.idea/ | ||
.php_cs.cache | ||
composer.lock |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,80 @@ | ||
<?php | ||
|
||
$rules = [ | ||
'method_separation' => true, | ||
'blank_line_after_opening_tag' => true, | ||
'braces' => true, | ||
'concat_space' => ['spacing' => 'none'], | ||
'no_multiline_whitespace_around_double_arrow' => true, | ||
'no_empty_statement' => true, | ||
'elseif' => true, | ||
'simplified_null_return' => true, | ||
'encoding' => true, | ||
'single_blank_line_at_eof' => true, | ||
'no_extra_consecutive_blank_lines' => true, | ||
'no_spaces_after_function_name' => true, | ||
'function_declaration' => true, | ||
'include' => true, | ||
'indentation_type' => true, | ||
'no_alias_functions' => true, | ||
'blank_line_after_namespace' => true, | ||
'line_ending' => true, | ||
'no_trailing_comma_in_list_call' => true, | ||
'not_operator_with_successor_space' => true, | ||
'lowercase_constants' => true, | ||
'lowercase_keywords' => true, | ||
'method_argument_space' => true, | ||
'trailing_comma_in_multiline_array' => true, | ||
'no_multiline_whitespace_before_semicolons' => true, | ||
'single_import_per_statement' => true, | ||
'no_leading_namespace_whitespace' => true, | ||
'no_blank_lines_after_class_opening' => true, | ||
'no_blank_lines_after_phpdoc' => true, | ||
'object_operator_without_whitespace' => true, | ||
'binary_operator_spaces' => true, | ||
'no_spaces_inside_parenthesis' => true, | ||
'phpdoc_indent' => true, | ||
'phpdoc_inline_tag' => true, | ||
'phpdoc_no_access' => true, | ||
'phpdoc_no_package' => true, | ||
'phpdoc_scalar' => true, | ||
'phpdoc_summary' => true, | ||
'phpdoc_to_comment' => true, | ||
'phpdoc_trim' => true, | ||
'phpdoc_no_alias_tag' => ['type' => 'var'], | ||
'phpdoc_var_without_name' => true, | ||
'no_leading_import_slash' => true, | ||
'no_extra_consecutive_blank_lines' => ['use'], | ||
'blank_line_before_return' => true, | ||
'self_accessor' => true, | ||
'array_syntax' => ['syntax' => 'short'], | ||
'no_short_echo_tag' => true, | ||
'full_opening_tag' => true, | ||
'no_trailing_comma_in_singleline_array' => true, | ||
'single_blank_line_before_namespace' => true, | ||
'single_line_after_imports' => true, | ||
'single_quote' => true, | ||
'no_singleline_whitespace_before_semicolons' => true, | ||
'cast_spaces' => true, | ||
'standardize_not_equals' => true, | ||
'ternary_operator_spaces' => true, | ||
'no_trailing_whitespace' => true, | ||
'trim_array_spaces' => true, | ||
'binary_operator_spaces' => ['align_equals' => false], | ||
'unary_operator_spaces' => true, | ||
'no_unused_imports' => true, | ||
'visibility_required' => true, | ||
'no_whitespace_in_blank_line' => true, | ||
'ordered_imports' => ['sortAlgorithm' => 'length'], | ||
'header_comment' => ['header' => "This file is part of Solder.\n\n(c) Kyle Klaus <kklaus@indemnity83.com>\n\nFor the full copyright and license information, please view the LICENSE\nfile that was distributed with this source code."], | ||
]; | ||
|
||
$finder = PhpCsFixer\Finder::create() | ||
->in(__DIR__.'/src') | ||
->in(__DIR__.'/database'); | ||
|
||
return PhpCsFixer\Config::create() | ||
->setRules($rules) | ||
->setRiskyAllowed(true) | ||
->setCacheFile(__DIR__.'/.php_cs.cache') | ||
->setFinder($finder); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
# Change Log | ||
|
||
<a name="0.1.0"></a> | ||
# [0.1.0](/compare/8846cdc...v0.1.0) (2017-11-11) | ||
|
||
### Features | ||
|
||
* **console:** upgrade solder from v0.7 to v0.8 with solder:upgrade command 8846cdc | ||
|
||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,35 @@ | ||
{ | ||
"name": "solderio/upgrade", | ||
"description": "Provides upgrade support from previous versions of Solder.", | ||
"keywords": ["solder", "upgrade"], | ||
"support": { | ||
"issues": "https://github.com/solderio/upgrade/issues", | ||
"source": "https://github.com/solderio/upgrade" | ||
}, | ||
"require": { | ||
"php": ">=7.0", | ||
"illuminate/support": "~5.5", | ||
"illuminate/console": "~5.5", | ||
"illuminate/database": "~5.5", | ||
"doctrine/dbal": "^2.6" | ||
}, | ||
"autoload": { | ||
"psr-4": { | ||
"SolderIO\\Upgrade\\": "src/" | ||
} | ||
}, | ||
"extra": { | ||
"laravel": { | ||
"providers": [ | ||
"SolderIO\\Upgrade\\SolderUpgradeServiceProvider" | ||
] | ||
} | ||
}, | ||
"license": "MIT", | ||
"authors": [ | ||
{ | ||
"name": "Kyle Klaus", | ||
"email": "kklaus@indemnity83.com" | ||
} | ||
] | ||
} |
46 changes: 46 additions & 0 deletions
46
database/migrations/2013_02_20_014950_create_modpacks_table.php
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,46 @@ | ||
<?php | ||
|
||
/* | ||
* This file is part of Solder. | ||
* | ||
* (c) Kyle Klaus <kklaus@indemnity83.com> | ||
* | ||
* For the full copyright and license information, please view the LICENSE | ||
* file that was distributed with this source code. | ||
*/ | ||
|
||
use Illuminate\Database\Migrations\Migration; | ||
|
||
class CreateModpacksTable extends Migration | ||
{ | ||
/** | ||
* Make changes to the database. | ||
* | ||
* @return void | ||
*/ | ||
public function up() | ||
{ | ||
Schema::create('modpacks', function ($table) { | ||
$table->increments('id'); | ||
$table->string('name')->unique(); | ||
$table->string('slug')->unique(); | ||
$table->string('recommended')->nullable(); | ||
$table->string('latest')->nullable(); | ||
$table->string('url')->nullable(); | ||
$table->string('icon_md5')->nullable(); | ||
$table->string('logo_md5')->nullable(); | ||
$table->string('background_md5')->nullable(); | ||
$table->timestamps(); | ||
}); | ||
} | ||
|
||
/** | ||
* Revert the changes to the database. | ||
* | ||
* @return void | ||
*/ | ||
public function down() | ||
{ | ||
Schema::drop('modpacks'); | ||
} | ||
} |
40 changes: 40 additions & 0 deletions
40
database/migrations/2013_02_20_023938_create_builds_table.php
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,40 @@ | ||
<?php | ||
|
||
/* | ||
* This file is part of Solder. | ||
* | ||
* (c) Kyle Klaus <kklaus@indemnity83.com> | ||
* | ||
* For the full copyright and license information, please view the LICENSE | ||
* file that was distributed with this source code. | ||
*/ | ||
|
||
use Illuminate\Database\Migrations\Migration; | ||
|
||
class CreateBuildsTable extends Migration | ||
{ | ||
/** | ||
* Make changes to the database. | ||
* | ||
* @return void | ||
*/ | ||
public function up() | ||
{ | ||
Schema::create('builds', function ($table) { | ||
$table->increments('id'); | ||
$table->integer('modpack_id'); | ||
$table->string('version'); | ||
$table->timestamps(); | ||
}); | ||
} | ||
|
||
/** | ||
* Revert the changes to the database. | ||
* | ||
* @return void | ||
*/ | ||
public function down() | ||
{ | ||
Schema::drop('builds'); | ||
} | ||
} |
42 changes: 42 additions & 0 deletions
42
database/migrations/2013_02_20_033920_create_mods_table.php
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,42 @@ | ||
<?php | ||
|
||
/* | ||
* This file is part of Solder. | ||
* | ||
* (c) Kyle Klaus <kklaus@indemnity83.com> | ||
* | ||
* For the full copyright and license information, please view the LICENSE | ||
* file that was distributed with this source code. | ||
*/ | ||
|
||
use Illuminate\Database\Migrations\Migration; | ||
|
||
class CreateModsTable extends Migration | ||
{ | ||
/** | ||
* Make changes to the database. | ||
* | ||
* @return void | ||
*/ | ||
public function up() | ||
{ | ||
Schema::create('mods', function ($table) { | ||
$table->increments('id'); | ||
$table->string('name')->unique(); | ||
$table->text('description')->nullable(); | ||
$table->string('author')->nullable(); | ||
$table->string('link')->nullable(); | ||
$table->timestamps(); | ||
}); | ||
} | ||
|
||
/** | ||
* Revert the changes to the database. | ||
* | ||
* @return void | ||
*/ | ||
public function down() | ||
{ | ||
Schema::drop('mods'); | ||
} | ||
} |
41 changes: 41 additions & 0 deletions
41
database/migrations/2013_02_20_035755_create_modversions_table.php
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,41 @@ | ||
<?php | ||
|
||
/* | ||
* This file is part of Solder. | ||
* | ||
* (c) Kyle Klaus <kklaus@indemnity83.com> | ||
* | ||
* For the full copyright and license information, please view the LICENSE | ||
* file that was distributed with this source code. | ||
*/ | ||
|
||
use Illuminate\Database\Migrations\Migration; | ||
|
||
class CreateModversionsTable extends Migration | ||
{ | ||
/** | ||
* Make changes to the database. | ||
* | ||
* @return void | ||
*/ | ||
public function up() | ||
{ | ||
Schema::create('modversions', function ($table) { | ||
$table->increments('id'); | ||
$table->integer('mod_id'); | ||
$table->string('version'); | ||
$table->string('md5'); | ||
$table->timestamps(); | ||
}); | ||
} | ||
|
||
/** | ||
* Revert the changes to the database. | ||
* | ||
* @return void | ||
*/ | ||
public function down() | ||
{ | ||
Schema::drop('modversions'); | ||
} | ||
} |
40 changes: 40 additions & 0 deletions
40
database/migrations/2013_02_20_042044_create_build_modversion_table.php
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,40 @@ | ||
<?php | ||
|
||
/* | ||
* This file is part of Solder. | ||
* | ||
* (c) Kyle Klaus <kklaus@indemnity83.com> | ||
* | ||
* For the full copyright and license information, please view the LICENSE | ||
* file that was distributed with this source code. | ||
*/ | ||
|
||
use Illuminate\Database\Migrations\Migration; | ||
|
||
class CreateBuildModversionTable extends Migration | ||
{ | ||
/** | ||
* Make changes to the database. | ||
* | ||
* @return void | ||
*/ | ||
public function up() | ||
{ | ||
Schema::create('build_modversion', function ($table) { | ||
$table->increments('id'); | ||
$table->integer('modversion_id'); | ||
$table->integer('build_id'); | ||
$table->timestamps(); | ||
}); | ||
} | ||
|
||
/** | ||
* Revert the changes to the database. | ||
* | ||
* @return void | ||
*/ | ||
public function down() | ||
{ | ||
Schema::drop('build_modversion'); | ||
} | ||
} |
40 changes: 40 additions & 0 deletions
40
database/migrations/2013_02_20_043157_update_builds_table.php
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,40 @@ | ||
<?php | ||
|
||
/* | ||
* This file is part of Solder. | ||
* | ||
* (c) Kyle Klaus <kklaus@indemnity83.com> | ||
* | ||
* For the full copyright and license information, please view the LICENSE | ||
* file that was distributed with this source code. | ||
*/ | ||
|
||
use Illuminate\Database\Migrations\Migration; | ||
|
||
class UpdateBuildsTable extends Migration | ||
{ | ||
/** | ||
* Make changes to the database. | ||
* | ||
* @return void | ||
*/ | ||
public function up() | ||
{ | ||
Schema::table('builds', function ($table) { | ||
$table->string('minecraft')->default(''); | ||
$table->string('forge')->nullable(); | ||
}); | ||
} | ||
|
||
/** | ||
* Revert the changes to the database. | ||
* | ||
* @return void | ||
*/ | ||
public function down() | ||
{ | ||
Schema::table('builds', function ($table) { | ||
$table->dropColumn(['minecraft','forge']); | ||
}); | ||
} | ||
} |
Oops, something went wrong.