mirror of
https://github.com/SimpleMobileTools/Simple-Calendar.git
synced 2025-02-17 04:10:45 +01:00
adding an event_repetition_exceptions table
This commit is contained in:
parent
1a5adc9c43
commit
b1badc5e1a
@ -46,7 +46,7 @@ class Parser {
|
||||
repeatRule = REPEAT_LAST_DAY
|
||||
}
|
||||
}
|
||||
return EventRepetition(null, repeatInterval, repeatRule, repeatLimit)
|
||||
return EventRepetition(null, 0, repeatInterval, repeatRule, repeatLimit)
|
||||
}
|
||||
|
||||
private fun getFrequencySeconds(interval: String) = when (interval) {
|
||||
|
@ -8,6 +8,7 @@ import androidx.room.PrimaryKey
|
||||
@Entity(tableName = "event_repetitions", indices = [(Index(value = ["id"], unique = true))])
|
||||
data class EventRepetition(
|
||||
@PrimaryKey(autoGenerate = true) var id: Long?,
|
||||
@ColumnInfo(name = "event_id") val eventId: Int,
|
||||
@ColumnInfo(name = "repeat_interval") val repeatInterval: Int,
|
||||
@ColumnInfo(name = "repeat_rule") val repeatRule: Int,
|
||||
@ColumnInfo(name = "repeat_limit") val repeatLimit: Int)
|
||||
|
@ -0,0 +1,12 @@
|
||||
package com.simplemobiletools.calendar.pro.models
|
||||
|
||||
import androidx.room.ColumnInfo
|
||||
import androidx.room.Entity
|
||||
import androidx.room.Index
|
||||
import androidx.room.PrimaryKey
|
||||
|
||||
@Entity(tableName = "event_repetition_exceptions", indices = [(Index(value = ["id"], unique = true))])
|
||||
data class EventRepetitionException(
|
||||
@PrimaryKey(autoGenerate = true) var id: Long?,
|
||||
@ColumnInfo(name = "occurrence_daycode") val daycode: Int,
|
||||
@ColumnInfo(name = "parent_id") val parentId: Int)
|
Loading…
x
Reference in New Issue
Block a user