added 2.0.8 update listener
This commit is contained in:
@ -15,7 +15,7 @@ class CoreV200 extends Migration
|
||||
{
|
||||
// Footer column
|
||||
Schema::table('invoices', function (Blueprint $table) {
|
||||
$table->text('footer')->nullable();
|
||||
$table->text('footer')->nullable()->after('notes');
|
||||
});
|
||||
|
||||
// Contacts
|
||||
@ -238,7 +238,7 @@ class CoreV200 extends Migration
|
||||
|
||||
// Landing page column
|
||||
Schema::table('users', function (Blueprint $table) {
|
||||
$table->string('landing_page', 70)->nullable()->default('dashboard');
|
||||
$table->string('landing_page', 70)->nullable()->default('dashboard')->after('locale');
|
||||
});
|
||||
}
|
||||
|
||||
|
@ -13,21 +13,15 @@ class CoreV208 extends Migration
|
||||
*/
|
||||
public function up()
|
||||
{
|
||||
Schema::table(
|
||||
'invoice_items',
|
||||
function (Blueprint $table) {
|
||||
$table->double('discount_rate', 15, 4)->default('0.0000')->after('tax');
|
||||
$table->string('discount_type')->default('normal')->after('discount_rate');
|
||||
}
|
||||
);
|
||||
Schema::table('invoice_items', function (Blueprint $table) {
|
||||
$table->double('discount_rate', 15, 4)->default('0.0000')->after('tax');
|
||||
$table->string('discount_type')->default('normal')->after('discount_rate');
|
||||
});
|
||||
|
||||
Schema::table(
|
||||
'bill_items',
|
||||
function (Blueprint $table) {
|
||||
$table->double('discount_rate', 15, 4)->default('0.0000')->after('tax');
|
||||
$table->string('discount_type')->default('normal')->after('discount_rate');
|
||||
}
|
||||
);
|
||||
Schema::table('bill_items', function (Blueprint $table) {
|
||||
$table->double('discount_rate', 15, 4)->default('0.0000')->after('tax');
|
||||
$table->string('discount_type')->default('normal')->after('discount_rate');
|
||||
});
|
||||
}
|
||||
|
||||
/**
|
||||
@ -37,18 +31,12 @@ class CoreV208 extends Migration
|
||||
*/
|
||||
public function down()
|
||||
{
|
||||
Schema::table(
|
||||
'invoice_items',
|
||||
function (Blueprint $table) {
|
||||
$table->dropColumn(['discount_rate', 'discount_type']);
|
||||
}
|
||||
);
|
||||
Schema::table('invoice_items', function (Blueprint $table) {
|
||||
$table->dropColumn(['discount_rate', 'discount_type']);
|
||||
});
|
||||
|
||||
Schema::table(
|
||||
'bill_items',
|
||||
function (Blueprint $table) {
|
||||
$table->dropColumn(['discount_rate', 'discount_type']);
|
||||
}
|
||||
);
|
||||
Schema::table('bill_items', function (Blueprint $table) {
|
||||
$table->dropColumn(['discount_rate', 'discount_type']);
|
||||
});
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user