-
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Replace the deprecated Composer Metadata v1 with v2
- Loading branch information
1 parent
d698f19
commit 0934171
Showing
31 changed files
with
853 additions
and
256 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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
<?php | ||
declare(strict_types = 1); | ||
|
||
use Phinx\Migration\AbstractMigration; | ||
|
||
final class Preferences extends AbstractMigration { | ||
public function change(): void { | ||
$preferences = $this->table('preferences'); | ||
$preferences | ||
->addColumn('category', 'text', ['null' => false]) | ||
->addColumn('property', 'text', ['null' => false]) | ||
->addColumn('value', 'text', ['null' => false]) | ||
->addColumn('type', 'text', ['null' => false]) | ||
->addTimestampsWithTimezone() | ||
->addIndex(['category', 'property'], ['unique' => true]) | ||
->addIndex('created_at') | ||
->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
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.