Skip to content

Commit

Permalink
deleted indexes
Browse files Browse the repository at this point in the history
  • Loading branch information
mikrise2 committed Feb 26, 2024
1 parent 4329c73 commit 4218198
Show file tree
Hide file tree
Showing 5 changed files with 0 additions and 20 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -28,10 +28,6 @@ object ActivityData : DataTable() {
*/
val actionId = integer("action_id").nullable().default(-1)

init {
uniqueIndex(date, type, info, selectedText, actionId)
}

override fun insertData(updateBuilder: UpdateBuilder<*>, iterator: Iterator<String>, researchId: Int) {
updateBuilder[type] = iterator.next()
updateBuilder[info] = iterator.next()
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,10 +17,6 @@ object DocumentData : DataTable() {
*/
val testMode = text("test_mode")

init {
uniqueIndex(date, timestamp, filename, fileHashCode, documentHashCode, fragment)
}

override fun insertData(updateBuilder: UpdateBuilder<*>, iterator: Iterator<String>, researchId: Int) {
updateBuilder[timestamp] = iterator.next().toLong()
updateBuilder[filename] = iterator.next()
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -22,10 +22,6 @@ object FileEditorData : DataTable() {
*/
val newFile = text("new_file").nullable()

init {
uniqueIndex(date, action, oldFile, newFile)
}

override fun insertData(updateBuilder: UpdateBuilder<*>, iterator: Iterator<String>, researchId: Int) {
updateBuilder[action] = iterator.next()
updateBuilder[oldFile] = iterator.next()
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -19,10 +19,6 @@ object SurveyData : DataTable() {
val option = text("option").nullable()
val answer = text("answer")

init {
uniqueIndex(date, questionId, question, option, answer)
}

override fun insertData(updateBuilder: UpdateBuilder<*>, iterator: Iterator<String>, researchId: Int) {
updateBuilder[questionId] = iterator.next().toInt()
updateBuilder[question] = iterator.next()
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -23,10 +23,6 @@ object WebCamData : DataTable() {
*/
val scores = text("scores")

init {
uniqueIndex(date, emotionShown, isRegular, scores)
}

override fun insertData(updateBuilder: UpdateBuilder<*>, iterator: Iterator<String>, researchId: Int) {
updateBuilder[emotionShown] = iterator.next()
updateBuilder[isRegular] = iterator.next().toBoolean()
Expand Down

0 comments on commit 4218198

Please sign in to comment.