123456789101112131415161718192021 |
- <?php
- namespace fphammerle\yii2\auth\clientcert\migrations;
- use fphammerle\yii2\auth\clientcert\Subject;
- class CreateSubjectTable extends \yii\db\Migration
- {
- public function safeUp()
- {
- $this->createTable(Subject::tableName(), [
- 'id' => $this->primaryKey(),
- 'distinguished_name' => $this->string()->notNull()->unique(),
- ]);
- }
- public function safeDown()
- {
- $this->dropTable(Subject::tableName());
- }
- }
|