M260801000000CreateAbAssignmentsTable
Rasuvaeff\Yii3AbTestingDb\Migration\M260801000000CreateAbAssignmentsTable
Class · rasuvaeff/yii3-ab-testing-db · Source
Creates the server-side sticky assignment table.
The primary key is (experiment, subject_id): one variant per subject per experiment, so the table grows with participants rather than with requests, and the upsert in \Rasuvaeff\Yii3AbTestingDb\DbAssignmentStore has a unique target to conflict on.
Constructor
php
new M260801000000CreateAbAssignmentsTable(
AbAssignmentsTableName $table = new AbAssignmentsTableName(),
)Methods
up()
php
up(Yiisoft\Db\Migration\MigrationBuilder $b): voiddown()
php
down(Yiisoft\Db\Migration\MigrationBuilder $b): void