aboutsummaryrefslogtreecommitdiffstats
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.go17
1 files changed, 17 insertions, 0 deletions
diff --git a/modules/migration/schemas_static.go b/modules/migration/schemas_static.go
new file mode 100644
index 0000000000..10c83b313a
--- /dev/null
+++ b/modules/migration/schemas_static.go
@@ -0,0 +1,17 @@
+// Copyright 2022 The Gitea Authors. All rights reserved.
+// Use of this source code is governed by a MIT-style
+// license that can be found in the LICENSE file.
+
+//go:build bindata
+// +build bindata
+
+package migration
+
+import (
+ "io"
+ "path"
+)
+
+func openSchema(filename string) (io.ReadCloser, error) {
+ return Assets.Open(path.Base(filename))
+}