~sircmpwn/godocs.io

This thread contains a patchset. You're looking at the original emails, but you may wish to use the patch review UI. Review patch
1

[PATCH gddo] schema.sql: Allow imports to be NULL

Details
Message ID
<20211125051723.26811-1-me@adnano.co>
DKIM signature
pass
Download raw message
Patch: +1 -1
This caused issues for packages with no imports.

The database needs to be migrated with the following script:

BEGIN;
ALTER TABLE packages ALTER COLUMN imports DROP NOT NULL;
COMMIT;
---
 schema.sql | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/schema.sql b/schema.sql
index f66c218..34b3144 100644
--- a/schema.sql
+++ b/schema.sql
@@ -28,7 +28,7 @@ CREATE TABLE packages (
	name text NOT NULL,
	synopsis text NOT NULL,
	score float NOT NULL,
	imports text[] NOT NULL,
	imports text[],
	documentation bytea NOT NULL,
	searchtext tsvector GENERATED ALWAYS AS (
		to_tsvector('english', "name") ||
-- 
2.32.0
Details
Message ID
<CFYQDRFP2VTD.2PXCO896KO00Q@taiga>
In-Reply-To
<20211125051723.26811-1-me@adnano.co> (view parent)
DKIM signature
fail
Download raw message
DKIM signature: fail
Thanks!

To git@git.sr.ht:~sircmpwn/gddo
   47a6d57..2eaa626  master -> master
Reply to thread Export thread (mbox)