fix: case sensitive
This commit is contained in:
parent
e715b918d5
commit
271d75c35c
2 changed files with 3 additions and 3 deletions
|
@ -60,7 +60,7 @@ CREATE TABLE IF NOT EXISTS note ( -- Models timeline
|
||||||
noteEdit set<frozen<note_edit_history>>, -- Edit History
|
noteEdit set<frozen<note_edit_history>>, -- Edit History
|
||||||
updatedAt timestamp,
|
updatedAt timestamp,
|
||||||
PRIMARY KEY (createdAtDate, createdAt)
|
PRIMARY KEY (createdAtDate, createdAt)
|
||||||
) WITH CLUSTERING ORDER BY (created_at DESC);
|
) WITH CLUSTERING ORDER BY (createdAt DESC);
|
||||||
|
|
||||||
CREATE INDEX IF NOT EXISTS note_by_id ON note (id);
|
CREATE INDEX IF NOT EXISTS note_by_id ON note (id);
|
||||||
CREATE INDEX IF NOT EXISTS note_by_uri ON note (uri);
|
CREATE INDEX IF NOT EXISTS note_by_uri ON note (uri);
|
||||||
|
|
|
@ -20,7 +20,7 @@ struct Info {
|
||||||
applied_at: Duration,
|
applied_at: Duration,
|
||||||
}
|
}
|
||||||
|
|
||||||
const MIGRATION_TABLE: &str = "ck_migrations";
|
const MIGRATION_TABLE: &str = "ff_migrations";
|
||||||
|
|
||||||
impl Migrator {
|
impl Migrator {
|
||||||
pub(crate) fn generate(dir: PathBuf, name: &str) -> Result<(), Error> {
|
pub(crate) fn generate(dir: PathBuf, name: &str) -> Result<(), Error> {
|
||||||
|
@ -51,7 +51,7 @@ impl Migrator {
|
||||||
factor = config.replication_factor), &[]
|
factor = config.replication_factor), &[]
|
||||||
)
|
)
|
||||||
.await?;
|
.await?;
|
||||||
session.use_keyspace(&config.keyspace, false).await?;
|
session.use_keyspace(&config.keyspace, true).await?;
|
||||||
session
|
session
|
||||||
.query(
|
.query(
|
||||||
format!(
|
format!(
|
||||||
|
|
Loading…
Reference in a new issue