downforacross / downforacross.com

Web frontend for downforacross.com -- continuation of stevenhao/crosswordsio
https://downforacrosscom.downforacross1.now.sh
MIT License
229 stars 90 forks source link

migrate column content to jsonb #157

Closed stevenhao closed 3 years ago

stevenhao commented 3 years ago

a follow-up to https://github.com/downforacross/downforacross.com/pull/148

psql -c '\d puzzles' 
                           Table "public.puzzles"
   Column    |            Type             | Collation | Nullable | Default 
-------------+-----------------------------+-----------+----------+---------
 uid         | text                        |           |          | 
 pid         | text                        |           | not null | 
 is_public   | boolean                     |           |          | 
 uploaded_at | timestamp without time zone |           |          | 
 content     | jsonb                       |           |          | 
Indexes:
    "puzzles_pkey" PRIMARY KEY, btree (pid)

PGDATABASE=production psql -c '\d puzzles'
                           Table "public.puzzles"
   Column    |            Type             | Collation | Nullable | Default 
-------------+-----------------------------+-----------+----------+---------
 uid         | text                        |           |          | 
 pid         | text                        |           | not null | 
 is_public   | boolean                     |           |          | 
 uploaded_at | timestamp without time zone |           |          | 
 content     | jsonb                       |           |          | 
Indexes:
    "puzzles_pkey" PRIMARY KEY, btree (pid)
vercel[bot] commented 3 years ago

This pull request is being automatically deployed with Vercel (learn more).
To see the status of your deployment, click below or on the icon next to each commit.

🔍 Inspect: https://vercel.com/downforacross/downforacrosscom/e5dutfq9h
✅ Preview: https://downforacrosscom-git-sql-migrate-puzzles-content.downforacross1.now.sh