hasTable('calendar_proposal_dts')) { return $schema; } $table = $schema->createTable('calendar_proposal_dts'); $table->addColumn('id', Types::BIGINT, [ 'autoincrement' => true, 'notnull' => true, 'unsigned' => true ]); $table->addColumn('uid', Types::STRING, [ 'notnull' => true, 'length' => 255 ]); $table->addColumn('uuid', Types::STRING, [ 'notnull' => true, 'length' => 36 ]); $table->addColumn('title', Types::TEXT, [ 'notnull' => false, 'length' => 65535 ]); $table->addColumn('description', Types::TEXT, [ 'notnull' => false, 'length' => 65535 ]); $table->addColumn('location', Types::TEXT, [ 'notnull' => false, 'length' => 65535 ]); $table->addColumn('duration', Types::INTEGER, [ 'notnull' => true, 'length' => null ]); $table->setPrimaryKey(['id']); return $schema; } }