summaryrefslogtreecommitdiffstats
path: root/models/db
diff options
context:
space:
mode:
authorflynnnnnnnnnn <118399147+flynnnnnnnnnn@users.noreply.github.com>2022-11-27 13:20:29 -0500
committerGitHub <noreply@github.com>2022-11-27 18:20:29 +0000
commite81ccc406bf723a5a58d685e7782f281736affd4 (patch)
treebc9812f3f1779f8ce86b8f915d08aafd02e944b9 /models/db
parentf6fd501841816f5e5c1c9a30fbc4c9a2a6f987bc (diff)
downloadgitea-e81ccc406bf723a5a58d685e7782f281736affd4.tar.gz
gitea-e81ccc406bf723a5a58d685e7782f281736affd4.zip
Implement FSFE REUSE for golang files (#21840)
Change all license headers to comply with REUSE specification. Fix #16132 Co-authored-by: flynnnnnnnnnn <flynnnnnnnnnn@github> Co-authored-by: John Olheiser <john.olheiser@gmail.com>
Diffstat (limited to 'models/db')
-rw-r--r--models/db/common.go3
-rw-r--r--models/db/consistency.go3
-rw-r--r--models/db/context.go3
-rw-r--r--models/db/context_test.go3
-rw-r--r--models/db/convert.go3
-rwxr-xr-xmodels/db/engine.go3
-rw-r--r--models/db/engine_test.go3
-rw-r--r--models/db/error.go3
-rw-r--r--models/db/index.go3
-rw-r--r--models/db/index_test.go3
-rw-r--r--models/db/install/db.go3
-rw-r--r--models/db/iterate.go3
-rw-r--r--models/db/iterate_test.go3
-rw-r--r--models/db/list_options.go3
-rw-r--r--models/db/log.go3
-rw-r--r--models/db/main_test.go3
-rw-r--r--models/db/name.go3
-rw-r--r--models/db/paginator/main_test.go3
-rw-r--r--models/db/paginator/paginator.go3
-rw-r--r--models/db/paginator/paginator_test.go3
-rw-r--r--models/db/search.go3
-rw-r--r--models/db/sequence.go3
-rw-r--r--models/db/sql_postgres_with_schema.go3
23 files changed, 23 insertions, 46 deletions
diff --git a/models/db/common.go b/models/db/common.go
index 1a59a8b5c6..76c7c119f4 100644
--- a/models/db/common.go
+++ b/models/db/common.go
@@ -1,6 +1,5 @@
// 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.
+// SPDX-License-Identifier: MIT
package db
diff --git a/models/db/consistency.go b/models/db/consistency.go
index 5a7878c74d..d19732cf80 100644
--- a/models/db/consistency.go
+++ b/models/db/consistency.go
@@ -1,6 +1,5 @@
// 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.
+// SPDX-License-Identifier: MIT
package db
diff --git a/models/db/context.go b/models/db/context.go
index 8c81469ebc..fb95e94c93 100644
--- a/models/db/context.go
+++ b/models/db/context.go
@@ -1,6 +1,5 @@
// Copyright 2019 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.
+// SPDX-License-Identifier: MIT
package db
diff --git a/models/db/context_test.go b/models/db/context_test.go
index f00e7834ed..e7518a50d8 100644
--- a/models/db/context_test.go
+++ b/models/db/context_test.go
@@ -1,6 +1,5 @@
// 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.
+// SPDX-License-Identifier: MIT
package db_test
diff --git a/models/db/convert.go b/models/db/convert.go
index 039a681040..b17e68c87e 100644
--- a/models/db/convert.go
+++ b/models/db/convert.go
@@ -1,6 +1,5 @@
// Copyright 2019 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.
+// SPDX-License-Identifier: MIT
package db
diff --git a/models/db/engine.go b/models/db/engine.go
index 41949eb6f6..07ee6ca580 100755
--- a/models/db/engine.go
+++ b/models/db/engine.go
@@ -1,7 +1,6 @@
// Copyright 2014 The Gogs Authors. All rights reserved.
// Copyright 2018 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.
+// SPDX-License-Identifier: MIT
package db
diff --git a/models/db/engine_test.go b/models/db/engine_test.go
index c2ba9614aa..fa1ac08a17 100644
--- a/models/db/engine_test.go
+++ b/models/db/engine_test.go
@@ -1,6 +1,5 @@
// Copyright 2019 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.
+// SPDX-License-Identifier: MIT
package db_test
diff --git a/models/db/error.go b/models/db/error.go
index 85cba5c4e9..5860cb4a07 100644
--- a/models/db/error.go
+++ b/models/db/error.go
@@ -1,6 +1,5 @@
// Copyright 2021 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.
+// SPDX-License-Identifier: MIT
package db
diff --git a/models/db/index.go b/models/db/index.go
index 58a976ad52..46be74e91e 100644
--- a/models/db/index.go
+++ b/models/db/index.go
@@ -1,6 +1,5 @@
// Copyright 2021 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.
+// SPDX-License-Identifier: MIT
package db
diff --git a/models/db/index_test.go b/models/db/index_test.go
index cf777b9d38..5fce0a6012 100644
--- a/models/db/index_test.go
+++ b/models/db/index_test.go
@@ -1,6 +1,5 @@
// 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.
+// SPDX-License-Identifier: MIT
package db_test
diff --git a/models/db/install/db.go b/models/db/install/db.go
index 363a8c8679..d4c1139637 100644
--- a/models/db/install/db.go
+++ b/models/db/install/db.go
@@ -1,6 +1,5 @@
// Copyright 2021 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.
+// SPDX-License-Identifier: MIT
package install
diff --git a/models/db/iterate.go b/models/db/iterate.go
index cbd2feed28..fc8c78d83e 100644
--- a/models/db/iterate.go
+++ b/models/db/iterate.go
@@ -1,6 +1,5 @@
// 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.
+// SPDX-License-Identifier: MIT
package db
diff --git a/models/db/iterate_test.go b/models/db/iterate_test.go
index 5d03a6e9ce..b0ea8b53ef 100644
--- a/models/db/iterate_test.go
+++ b/models/db/iterate_test.go
@@ -1,6 +1,5 @@
// 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.
+// SPDX-License-Identifier: MIT
package db_test
diff --git a/models/db/list_options.go b/models/db/list_options.go
index 54f6d945c8..b9ee360b1b 100644
--- a/models/db/list_options.go
+++ b/models/db/list_options.go
@@ -1,6 +1,5 @@
// Copyright 2020 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.
+// SPDX-License-Identifier: MIT
package db
diff --git a/models/db/log.go b/models/db/log.go
index 4c497fdfd7..fec2ea3c3d 100644
--- a/models/db/log.go
+++ b/models/db/log.go
@@ -1,6 +1,5 @@
// Copyright 2017 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.
+// SPDX-License-Identifier: MIT
package db
diff --git a/models/db/main_test.go b/models/db/main_test.go
index b774dce4d8..ce48502918 100644
--- a/models/db/main_test.go
+++ b/models/db/main_test.go
@@ -1,6 +1,5 @@
// Copyright 2020 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.
+// SPDX-License-Identifier: MIT
package db_test
diff --git a/models/db/name.go b/models/db/name.go
index a05d1a789b..51be33a8bc 100644
--- a/models/db/name.go
+++ b/models/db/name.go
@@ -1,6 +1,5 @@
// Copyright 2021 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.
+// SPDX-License-Identifier: MIT
package db
diff --git a/models/db/paginator/main_test.go b/models/db/paginator/main_test.go
index 1127987e53..b0557bc5a4 100644
--- a/models/db/paginator/main_test.go
+++ b/models/db/paginator/main_test.go
@@ -1,6 +1,5 @@
// Copyright 2021 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.
+// SPDX-License-Identifier: MIT
package paginator
diff --git a/models/db/paginator/paginator.go b/models/db/paginator/paginator.go
index 747539f30e..bcda47d978 100644
--- a/models/db/paginator/paginator.go
+++ b/models/db/paginator/paginator.go
@@ -1,6 +1,5 @@
// Copyright 2021 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.
+// SPDX-License-Identifier: MIT
package paginator
diff --git a/models/db/paginator/paginator_test.go b/models/db/paginator/paginator_test.go
index fdb8eee441..a1117fc7a4 100644
--- a/models/db/paginator/paginator_test.go
+++ b/models/db/paginator/paginator_test.go
@@ -1,6 +1,5 @@
// Copyright 2021 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.
+// SPDX-License-Identifier: MIT
package paginator
diff --git a/models/db/search.go b/models/db/search.go
index 704a48ed1e..f5273cb6f6 100644
--- a/models/db/search.go
+++ b/models/db/search.go
@@ -1,6 +1,5 @@
// Copyright 2021 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.
+// SPDX-License-Identifier: MIT
package db
diff --git a/models/db/sequence.go b/models/db/sequence.go
index 0daacee70c..6d801d022f 100644
--- a/models/db/sequence.go
+++ b/models/db/sequence.go
@@ -1,6 +1,5 @@
// Copyright 2018 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.
+// SPDX-License-Identifier: MIT
package db
diff --git a/models/db/sql_postgres_with_schema.go b/models/db/sql_postgres_with_schema.go
index 4bbd12bdeb..ec63447f6f 100644
--- a/models/db/sql_postgres_with_schema.go
+++ b/models/db/sql_postgres_with_schema.go
@@ -1,6 +1,5 @@
// Copyright 2020 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.
+// SPDX-License-Identifier: MIT
package db