Skip to content

Commit

Permalink
Fixes #602 for strict_mode
Browse files Browse the repository at this point in the history
  • Loading branch information
snipe committed Mar 4, 2015
1 parent 18fc207 commit 2d196b1
Showing 1 changed file with 8 additions and 8 deletions.
16 changes: 8 additions & 8 deletions app/database/migrations/2015_02_25_022931_add_eula_fields.php
Original file line number Diff line number Diff line change
Expand Up @@ -14,21 +14,21 @@ public function up()
{
//
Schema::table('settings', function ($table) {
$table->longText('default_eula_text');
$table->longText('default_eula_text')->nullable()->default(NULL);
});

Schema::table('categories', function ($table) {
$table->longText('eula_text');
$table->boolean('use_default_eula')->default(0);
$table->boolean('require_acceptance')->default(0);
});

Schema::table('asset_logs', function ($table) {
$table->dateTime('requested_at')->nullable()->default(NULL);
$table->dateTime('accepted_at')->nullable()->default(NULL);
});


Schema::create('requested_assets', function ($table) {
$table->increments('id');
$table->integer('asset_id')->default(NULL);
Expand All @@ -51,18 +51,18 @@ public function down()
Schema::table('settings', function ($table) {
$table->dropColumn('default_eula_text');
});

Schema::table('categories', function ($table) {
$table->dropColumn('eula_text');
$table->dropColumn('use_default_eula');
$table->dropColumn('require_acceptance');
});

Schema::table('asset_logs', function ($table) {
$table->dropColumn('requested_at');
$table->dropColumn('accepted_at');
});

Schema::drop('requested_assets');
}

Expand Down

0 comments on commit 2d196b1

Please sign in to comment.