database migrations
This commit is contained in:
@@ -15,9 +15,6 @@ class ModifyMiningTaxTables extends Migration
|
|||||||
{
|
{
|
||||||
if(Schema::hasTable('alliance_mining_tax_observers')) {
|
if(Schema::hasTable('alliance_mining_tax_observers')) {
|
||||||
Schema::table('alliance_mining_tax_observers', function(Blueprint $table) {
|
Schema::table('alliance_mining_tax_observers', function(Blueprint $table) {
|
||||||
$table->string('observer_name')->nullable();
|
|
||||||
$table->unsignedBigInteger('solar_system_id')->nullable();
|
|
||||||
$table->string('solar_system_name')->nullable();
|
|
||||||
$table->enum('corp_rented', [
|
$table->enum('corp_rented', [
|
||||||
'No',
|
'No',
|
||||||
'Yes',
|
'Yes',
|
||||||
@@ -43,12 +40,6 @@ class ModifyMiningTaxTables extends Migration
|
|||||||
*/
|
*/
|
||||||
public function down()
|
public function down()
|
||||||
{
|
{
|
||||||
//Drop the newly created columns
|
//Do nothing
|
||||||
Schema::table('alliance_mining_tax_observers', function(Blueprint $table) {
|
|
||||||
$table->dropColumn(['observer_name']);
|
|
||||||
$table->dropColumn(['solar_system_id']);
|
|
||||||
$table->dropColumn(['solar_system_name']);
|
|
||||||
$table->dropColumn(['corp_rented']);
|
|
||||||
});
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user