Skip to content
This repository has been archived by the owner on Jan 6, 2023. It is now read-only.

Commit

Permalink
Remove scope from directus_settings (#607)
Browse files Browse the repository at this point in the history
Ref: #594
  • Loading branch information
rijkvanzanten authored and wellingguzman committed Nov 26, 2018
1 parent 2782686 commit 4d36615
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -29,10 +29,6 @@ public function change()
{
$table = $this->table('directus_settings', ['signed' => false]);

$table->addColumn('scope', 'string', [
'limit' => 64,
'default' => null
]);
$table->addColumn('key', 'string', [
'limit' => 64,
'null' => false
Expand All @@ -41,7 +37,7 @@ public function change()
'default' => null
]);

$table->addIndex(['scope', 'key'], [
$table->addIndex(['key'], [
'unique' => true,
'name' => 'idx_scope_name'
]);
Expand Down
14 changes: 14 additions & 0 deletions migrations/upgrades/schemas/20181123171520_remove_scope.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
<?php


use Phinx\Migration\AbstractMigration;

class RemoveScope extends AbstractMigration
{
public function up()
{
$table = $this->table('directus_settings');
$table->removeColumn('scope')
->save();
}
}

0 comments on commit 4d36615

Please sign in to comment.