Monorepo for Tangled tangled.org

appview/db: remove foreign key constraint between collections #995

open opened by boltless.me targeting master from sl/sqkrqopzkvoo

Appview cannot modify the user-owned record on repository deletion

Signed-off-by: Seongmin Lee git@boltless.me

Labels

None yet.

assignee

None yet.

Participants 1
AT URI
at://did:plc:xasnlahkri4ewmbuzly2rlc5/sh.tangled.repo.pull/3mcsfwwhtn622
+8 -8
Interdiff #0 #1
+8 -8
appview/db/db.go
··· 1173 1173 return err 1174 1174 }) 1175 1175 1176 + return &DB{ 1177 + db, 1178 + logger, 1179 + 1180 + 1181 + return err 1182 + }) 1183 + 1176 1184 // we cannot modify user-owned record on repository delete 1177 1185 orm.RunMigration(conn, logger, "remove-foreign-key-profile_pinned_repositories-and-repos", func(tx *sql.Tx) error { 1178 1186 _, err := tx.Exec(` ··· 1193 1201 drop table profile_pinned_repositories; 1194 1202 alter table profile_pinned_repositories_new rename to profile_pinned_repositories; 1195 1203 `) 1196 - return err 1197 - }) 1198 - 1199 - return &DB{ 1200 - db, 1201 - logger, 1202 - 1203 - 1204 1204 return err 1205 1205 }) 1206 1206

History

2 rounds 0 comments
sign up or login to add to the discussion
1 commit
expand
appview/db: remove foreign key constraint between collections
merge conflicts detected
expand
  • appview/issues/issues.go:27
  • appview/labels/labels.go:15
  • appview/pages/markup/markdown.go:47
  • appview/pages/pages.go:57
  • appview/pulls/pulls.go:27
  • appview/state/router.go:338
  • appview/state/state.go:23
  • appview/validator/label.go:1
expand 0 comments
1 commit
expand
appview/db: remove foreign key constraint between collections
expand 0 comments