Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
a147dbe
commit bc48434
Showing
1,527 changed files
with
7,716 additions
and
17,720 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
55 changes: 0 additions & 55 deletions
55
migrations/db/schemas/20180220023144_create_activity_seen_table.php
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
76 changes: 76 additions & 0 deletions
76
migrations/db/schemas/20190912072543_create_user_sessions.php
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,76 @@ | ||
<?php | ||
|
||
|
||
use Phinx\Migration\AbstractMigration; | ||
|
||
class CreateUserSessions extends AbstractMigration | ||
{ | ||
/** | ||
* Change Method. | ||
* | ||
* Write your reversible migrations using this method. | ||
* | ||
* More information on writing migrations is available here: | ||
* http://docs.phinx.org/en/latest/migrations.html#the-abstractmigration-class | ||
* | ||
* The following commands can be used in this method and Phinx will | ||
* automatically reverse them when rolling back: | ||
* | ||
* createTable | ||
* renameTable | ||
* addColumn | ||
* renameColumn | ||
* addIndex | ||
* addForeignKey | ||
* | ||
* Remember to call "create()" or "update()" and NOT "save()" when working | ||
* with the Table class. | ||
*/ | ||
public function change() | ||
{ | ||
$table = $this->table('directus_user_sessions', ['signed' => false]); | ||
|
||
$table->addColumn('user', 'integer', [ | ||
'signed' => false, | ||
'null' => true, | ||
'default' => null | ||
]); | ||
|
||
$table->addColumn('token_type', 'string', [ | ||
'null' => true, | ||
'default' => null | ||
]); | ||
|
||
$table->addColumn('token', 'string', [ | ||
'limit' => 520, | ||
'encoding' => 'utf8', | ||
'null' => true, | ||
'default' => null | ||
]); | ||
|
||
$table->addColumn('ip_address', 'string', [ | ||
'limit' => 255, | ||
'encoding' => 'utf8', | ||
'null' => true, | ||
'default' => null | ||
]); | ||
|
||
$table->addColumn('user_agent', 'text', [ | ||
'default' => null, | ||
'null' => true, | ||
'default' => null | ||
]); | ||
|
||
$table->addColumn('created_on', 'datetime', [ | ||
'null' => true, | ||
'default' => null | ||
]); | ||
|
||
$table->addColumn('token_expired_at', 'datetime', [ | ||
'null' => true, | ||
'default' => null | ||
]); | ||
|
||
$table->create(); | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,68 @@ | ||
<?php | ||
|
||
|
||
use Phinx\Migration\AbstractMigration; | ||
|
||
class CreateWebHooks extends AbstractMigration | ||
{ | ||
/** | ||
* Change Method. | ||
* | ||
* Write your reversible migrations using this method. | ||
* | ||
* More information on writing migrations is available here: | ||
* http://docs.phinx.org/en/latest/migrations.html#the-abstractmigration-class | ||
* | ||
* The following commands can be used in this method and Phinx will | ||
* automatically reverse them when rolling back: | ||
* | ||
* createTable | ||
* renameTable | ||
* addColumn | ||
* renameColumn | ||
* addIndex | ||
* addForeignKey | ||
* | ||
* Remember to call "create()" or "update()" and NOT "save()" when working | ||
* with the Table class. | ||
*/ | ||
public function change() | ||
{ | ||
$table = $this->table('directus_webhooks', ['signed' => false]); | ||
|
||
$table->addColumn('status', 'string', [ | ||
'limit' => 16, | ||
'default' => \Directus\Api\Routes\Webhook::STATUS_INACTIVE | ||
]); | ||
|
||
|
||
$table->addColumn('http_action', 'string', [ | ||
'limit' => 255, | ||
'encoding' => 'utf8', | ||
'null' => true, | ||
'default' => null | ||
]); | ||
|
||
$table->addColumn('url', 'string', [ | ||
'limit' => 510, | ||
'encoding' => 'utf8', | ||
'null' => true, | ||
'default' => null | ||
]); | ||
|
||
$table->addColumn('collection', 'string', [ | ||
'limit' => 255, | ||
'null' => true, | ||
'default' => null | ||
]); | ||
|
||
$table->addColumn('directus_action', 'string', [ | ||
'limit' => 255, | ||
'encoding' => 'utf8', | ||
'null' => true, | ||
'default' => null | ||
]); | ||
|
||
$table->create(); | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.