mirror of
https://github.com/RayLabsHQ/gitea-mirror.git
synced 2025-12-08 20:46:44 +03:00
🎉 Gitea Mirror: Added
This commit is contained in:
18
scripts/run-migrations.ts
Normal file
18
scripts/run-migrations.ts
Normal file
@@ -0,0 +1,18 @@
|
||||
import { addMirroredLocationColumn } from "../src/lib/db/migrations/add-mirrored-location";
|
||||
|
||||
async function runMigrations() {
|
||||
try {
|
||||
console.log("Running database migrations...");
|
||||
|
||||
// Run the migration to add the mirrored_location column
|
||||
await addMirroredLocationColumn();
|
||||
|
||||
console.log("All migrations completed successfully");
|
||||
process.exit(0);
|
||||
} catch (error) {
|
||||
console.error("Migration failed:", error);
|
||||
process.exit(1);
|
||||
}
|
||||
}
|
||||
|
||||
runMigrations();
|
||||
Reference in New Issue
Block a user