pre-commit: add configuration and did some cleanup

Signed-off-by: Sumner Evans <sumner@beeper.com>
This commit is contained in:
Sumner Evans
2022-10-21 09:35:03 -05:00
parent f2df6e517b
commit 07d2cae5b2
18 changed files with 73 additions and 77 deletions

View File

@ -14,6 +14,7 @@
// You should have received a copy of the GNU Affero General Public License
// along with this program. If not, see <https://www.gnu.org/licenses/>.
//go:build cgo && !nocrypto
// +build cgo,!nocrypto
package database

View File

@ -92,8 +92,9 @@ package database
// }
func Migrate(old *Database, new *Database) {
print("skipping migration because test")
print("skipping migration because test")
}
// err := migrateTable(old, new, "portal", "jid", "receiver", "mxid", "name", "topic", "avatar", "avatar_url", "encrypted")
// if err != nil {
// panic(err)

View File

@ -157,7 +157,7 @@ type Portal struct {
Name string
Topic string
Avatar string
AvatarURL types.ContentURI
AvatarURL id.ContentURI
Encrypted bool `gorm:"notNull;default:false"`
}