hasTable('calendar_proposal_vts')) { return $schema; } $table = $schema->createTable('calendar_proposal_vts'); $table->addColumn('id', Types::BIGINT, [ 'autoincrement' => true, 'notnull' => true, 'unsigned' => true ]); $table->addColumn('uid', Types::STRING, [ 'notnull' => true, 'length' => 255 ]); $table->addColumn('pid', Types::BIGINT, [ 'notnull' => true, 'unsigned' => true, 'default' => 0 ]); $table->addColumn('participant_id', Types::BIGINT, [ 'notnull' => true, 'unsigned' => true ]); $table->addColumn('date_id', Types::BIGINT, [ 'notnull' => true, 'unsigned' => true ]); $table->addColumn('vote', Types::STRING, [ 'notnull' => true, 'length' => 8 ]); $table->setPrimaryKey(['id']); return $schema; } }