pre-commit: add configuration and did some cleanup
Signed-off-by: Sumner Evans <sumner@beeper.com>
This commit is contained in:
@ -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
|
||||
|
@ -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)
|
||||
|
@ -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"`
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user