change the order of message table and remove the time to live (#132)

This commit is contained in:
oldmikeyang 2017-12-24 05:03:04 +08:00 committed by Dejan Mijić
parent 3e11147ab5
commit 5899177f57
1 changed files with 1 additions and 1 deletions

View File

@ -25,7 +25,7 @@ var tables []string = []string{
ut double,
l text,
PRIMARY KEY ((channel), id)
) WITH default_time_to_live = 86400`,
) WITH CLUSTERING ORDER BY (id DESC)`,
}
// Connect establishes connection to the Cassandra cluster.