summaryrefslogtreecommitdiffstats
path: root/modules/migration/schemas_static.go
diff options
context:
space:
mode:
Diffstat (limited to 'modules/migration/schemas_static.go')
-rw-r--r--modules/migration/schemas_static.go15
1 files changed, 15 insertions, 0 deletions
diff --git a/modules/migration/schemas_static.go b/modules/migration/schemas_static.go
new file mode 100644
index 00000000..8a0c340a
--- /dev/null
+++ b/modules/migration/schemas_static.go
@@ -0,0 +1,15 @@
+// Copyright 2022 The Gitea Authors. All rights reserved.
+// SPDX-License-Identifier: MIT
+
+//go:build bindata
+
+package migration
+
+import (
+ "io"
+ "path"
+)
+
+func openSchema(filename string) (io.ReadCloser, error) {
+ return Assets.Open(path.Base(filename))
+}