hasTable('calendar_proposal_pts')) { return $schema; } $table = $schema->createTable('calendar_proposal_pts'); $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 ]); $table->addColumn('name', Types::STRING, [ 'notnull' => false, 'length' => 255 ]); $table->addColumn('address', Types::STRING, [ 'notnull' => true, 'length' => 320 ]); $table->addColumn('attendance', Types::STRING, [ 'notnull' => false, 'length' => 8 ]); $table->addColumn('status', Types::STRING, [ 'notnull' => false, 'length' => 8 ]); $table->addColumn('realm', Types::STRING, [ 'notnull' => false, 'length' => 8 ]); $table->addColumn('token', Types::STRING, [ 'notnull' => false, 'length' => 255 ]); $table->setPrimaryKey(['id']); return $schema; } }