mirror of
https://github.com/matrix-org/dendrite.git
synced 2026-01-15 18:13:09 -06:00
Typo..
This commit is contained in:
parent
a46517a67b
commit
1cf12da042
|
|
@ -155,7 +155,7 @@ func CreateEventsTable(db *sql.DB) error {
|
||||||
// check if the column exists
|
// check if the column exists
|
||||||
var cName string
|
var cName string
|
||||||
migrationName := "roomserver: drop column reference_sha from roomserver_events"
|
migrationName := "roomserver: drop column reference_sha from roomserver_events"
|
||||||
err = db.QueryRowContext(context.Background(), `SELECT p.name FROM sqlite_master AS m JOIN pragma_table_info(m.name) AS p WHERE m.name = 'roomserver_eents' AND p.name = 'reference_sha256'`).Scan(&cName)
|
err = db.QueryRowContext(context.Background(), `SELECT p.name FROM sqlite_master AS m JOIN pragma_table_info(m.name) AS p WHERE m.name = 'roomserver_events' AND p.name = 'reference_sha256'`).Scan(&cName)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
if errors.Is(err, sql.ErrNoRows) { // migration was already executed, as the column was removed
|
if errors.Is(err, sql.ErrNoRows) { // migration was already executed, as the column was removed
|
||||||
if err = sqlutil.InsertMigration(context.Background(), db, migrationName); err != nil {
|
if err = sqlutil.InsertMigration(context.Background(), db, migrationName); err != nil {
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue