fix: case sensitive

This commit is contained in:
Namekuji 2023-07-24 03:53:13 -04:00
parent e715b918d5
commit 271d75c35c
No known key found for this signature in database
GPG key ID: 1D62332C07FBA532
2 changed files with 3 additions and 3 deletions

View file

@ -60,7 +60,7 @@ CREATE TABLE IF NOT EXISTS note ( -- Models timeline
noteEdit set<frozen<note_edit_history>>, -- Edit History
updatedAt timestamp,
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_uri ON note (uri);

View file

@ -20,7 +20,7 @@ struct Info {
applied_at: Duration,
}
const MIGRATION_TABLE: &str = "ck_migrations";
const MIGRATION_TABLE: &str = "ff_migrations";
impl Migrator {
pub(crate) fn generate(dir: PathBuf, name: &str) -> Result<(), Error> {
@ -51,7 +51,7 @@ impl Migrator {
factor = config.replication_factor), &[]
)
.await?;
session.use_keyspace(&config.keyspace, false).await?;
session.use_keyspace(&config.keyspace, true).await?;
session
.query(
format!(