Skip to content

Commit

Permalink
Added missing database columns
Browse files Browse the repository at this point in the history
  • Loading branch information
tobias-kuendig committed Jun 26, 2018
1 parent 51fb40f commit e81c4ec
Show file tree
Hide file tree
Showing 3 changed files with 28 additions and 2 deletions.
2 changes: 1 addition & 1 deletion models/cookie/fields.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ tabs:
label: 'offline.gdpr::lang.cookie.fields.contact_links.name'
span: right
type: text
level_provider:
provider:
label: 'offline.gdpr::lang.cookie.fields.cookie_levels.provider'
span: full
placeholder: analytics.google.com
Expand Down
23 changes: 23 additions & 0 deletions updates/add_further_new_cookie_fields.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
<?php namespace OFFLINE\GDPR\Updates;

use October\Rain\Database\Updates\Migration;
use Schema;

class AddFurtherNewCookieFields extends Migration
{
public function up()
{
Schema::table('offline_gdpr_cookies', function ($table) {
$table->string('provider')->nullable();
$table->text('item_details')->nullable();
});
}

public function down()
{
Schema::table('offline_gdpr_cookies', function ($table) {
$table->dropColumn(['provider']);
$table->dropColumn(['item_details']);
});
}
}
5 changes: 4 additions & 1 deletion updates/version.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -43,4 +43,7 @@
1.2.1:
- Finished off the Cookie Backend and did a general tidy up
1.3.1:
- Added the Info and Help Section
- Added the Info and Help Section
1.3.2:
- General cleanup and extension of plugin
- add_further_new_cookie_fields.php

0 comments on commit e81c4ec

Please sign in to comment.