| Age | Commit message (Collapse) | Author | |
|---|---|---|---|
| 2022-01-22 | Specify the public schema for public videos | Tony Finn | |
| Unlike the other migrations, this one uses a bare table name to specify the table. This means it looks in the default search path. Unfortunately, the out of box search path is: 1. Schema with the same name as the user 2. Public Because of this, if a schema exists with the same name as the DB user, the playlist_videos table will get created in _that_ schema, rather than the public schema, and then the grant statement will fail with an error like below if check_table is enabled as it keeps trying to create the table but failing on the grant statement: ``` 2022-01-22 02:27:42 UTC [info] check_table: check_table: CREATE TABLE playlist_videos Unhandled exception: relation "public.playlist_videos" does not exist (PQ::PQError) from /usr/share/crystal/src/primitives.cr:266:3 in 'handle_error' from lib/pg/src/pq/connection.cr:184:9 in 'handle_async_frames' from lib/pg/src/pq/connection.cr:162:7 in 'read' from lib/pg/src/pq/query.cr:53:14 in 'exec_all' from lib/db/src/db/database.cr:126:9 in '__crystal_main' from /usr/share/crystal/src/crystal/main.cr:110:5 in 'main' from src/env/__libc_start_main.c:94:2 in 'libc_start_main_stage2' 2022-01-22 02:27:43 UTC [info] check_table: check_table: CREATE TABLE playlist_videos Unhandled exception: relation "public.playlist_videos" does not exist (PQ::PQError) from /usr/share/crystal/src/primitives.cr:266:3 in 'handle_error' from lib/pg/src/pq/connection.cr:184:9 in 'handle_async_frames' from lib/pg/src/pq/connection.cr:162:7 in 'read' from lib/pg/src/pq/query.cr:53:14 in 'exec_all' from lib/db/src/db/database.cr:126:9 in '__crystal_main' from /usr/share/crystal/src/crystal/main.cr:110:5 in 'main' from src/env/__libc_start_main.c:94:2 in 'libc_start_main_stage2' ``` | |||
| 2022-01-09 | Create videos caching table as UNLOGGED | Émilien Devos | |
| 2021-01-17 | Make migrations (mostly) idempotent. | Andre Borie | |
| 2020-06-15 | Add support for polymer redesign | Omar Roth | |
| 2020-04-14 | Move privacy type into playlists.sql | Omar Roth | |
| 2019-10-15 | Add support for custom playlists | Omar Roth | |
| 2019-06-01 | Add 'needs_update' column for scheduling feed refresh | Omar Roth | |
| 2019-05-30 | Add 'views' to channel_videos | Omar Roth | |
| 2019-04-28 | Remove unnecessary index | Omar Roth | |
| 2019-04-15 | Add config option to cache annotations from IA | Omar Roth | |
| 2019-03-22 | Add support for premieres to search and feed | Omar Roth | |
| 2019-03-03 | Update pubsub to support lease_seconds | Omar Roth | |
| 2019-02-11 | Update change index for channel_videos and add index for nonces | Omar Roth | |
| 2019-02-10 | Fix typo in session_ids | Omar Roth | |
| 2019-02-10 | Add migrate script and update README | Omar Roth | |
| 2019-02-10 | Store session_ids in separate table | Omar Roth | |
| 2019-02-09 | Add 'deleted' to channel info | Omar Roth | |
| 2018-11-20 | Fix typo in nonces.sql | Omar Roth | |
| 2018-11-19 | Add 'expire' to filter invalid tokens | Omar Roth | |
| 2018-11-17 | Remember nonce to prevent replay attacks | Omar Roth | |
| 2018-11-02 | Update SQL | Omar Roth | |
| 2018-10-30 | Fix channel_videos schema | Omar Roth | |
| 2018-10-30 | Add length_seconds to channel_videos | Omar Roth | |
| 2018-10-13 | Add author_thumbnail to '/api/v1/videos' | Omar Roth | |
| 2018-10-12 | Add subCountText and add XHR alternative for subscribing to channels | Omar Roth | |
| 2018-09-21 | Use hash instead of btree for channel_videos_ucid_idx | Omar Roth | |
| 2018-09-09 | Add 'license' | Omar Roth | |
| 2018-09-04 | Update SQL and remove migration points | Omar Roth | |
| 2018-08-15 | Remove ID constrant for users | Omar Roth | |
| 2018-08-15 | Add support for multiple sessions | Omar Roth | |
| 2018-07-29 | Add watch history | Omar Roth | |
| 2018-07-27 | Add ucid index for channel_videos | Omar Roth | |
| 2018-07-26 | Update videos SQL | Omar Roth | |
| 2018-07-20 | Update users.sql | Omar Roth | |
| 2018-07-18 | Add separate user accounts | Omar Roth | |
| 2018-07-18 | Fix typo in users.sql | Omar Roth | |
| 2018-07-16 | Add user preferences | Omar Roth | |
| 2018-06-01 | Move author and ucid into schema | Omar Roth | |
| 2018-03-31 | Add notifications | Omar Roth | |
| 2018-03-31 | Add email to user table | Omar Roth | |
| 2018-03-29 | Make user id unique | Omar Roth | |
| 2018-03-29 | Add users table | Omar Roth | |
| 2018-03-28 | Use seperate table for videos pulled from RSS | Omar Roth | |
| 2018-03-24 | Add channel sql | Omar Roth | |
