Skip to content

armgit / memos

Public Imported from GitHub
0

Memos is an open-source, self-hosted note-taking app that brings your everyday thoughts together in a personal timeline. Your data stays yours, and you choose what to keep private or share.

chore: tweak latest schema file name

Stevenfa2b01cfb1f4
diff --git a/store/migration/mysql/dev/LATEST_SCHEMA.sql b/store/migration/mysql/dev/LATEST.sql
similarity index 100%
rename from store/migration/mysql/dev/LATEST_SCHEMA.sql
rename to store/migration/mysql/dev/LATEST.sql
diff --git a/store/migration/mysql/prod/LATEST_SCHEMA.sql b/store/migration/mysql/prod/LATEST.sql
similarity index 100%
rename from store/migration/mysql/prod/LATEST_SCHEMA.sql
rename to store/migration/mysql/prod/LATEST.sql
diff --git a/store/migration/postgres/dev/LATEST_SCHEMA.sql b/store/migration/postgres/dev/LATEST.sql
similarity index 100%
rename from store/migration/postgres/dev/LATEST_SCHEMA.sql
rename to store/migration/postgres/dev/LATEST.sql
diff --git a/store/migration/postgres/prod/LATEST_SCHEMA.sql b/store/migration/postgres/prod/LATEST.sql
similarity index 100%
rename from store/migration/postgres/prod/LATEST_SCHEMA.sql
rename to store/migration/postgres/prod/LATEST.sql
diff --git a/store/migration/sqlite/dev/LATEST_SCHEMA.sql b/store/migration/sqlite/dev/LATEST.sql
similarity index 100%
rename from store/migration/sqlite/dev/LATEST_SCHEMA.sql
rename to store/migration/sqlite/dev/LATEST.sql
diff --git a/store/migration/sqlite/prod/LATEST_SCHEMA.sql b/store/migration/sqlite/prod/LATEST.sql
similarity index 100%
rename from store/migration/sqlite/prod/LATEST_SCHEMA.sql
rename to store/migration/sqlite/prod/LATEST.sql
diff --git a/store/migrator.go b/store/migrator.go
index 34a8b8c09..f50300fb0 100644
--- a/store/migrator.go
+++ b/store/migrator.go
@@ -29,7 +29,7 @@ const (
MigrateFileNameSplit = "__"
// LatestSchemaFileName is the name of the latest schema file.
// This file is used to apply the latest schema when no migration history is found.
- LatestSchemaFileName = "LATEST_SCHEMA.sql"
+ LatestSchemaFileName = "LATEST.sql"
)
// Migrate applies the latest schema to the database.