Commit Graph

18 Commits (22fd769ac5ade81c2da134253979ed700449b088)

Author SHA1 Message Date
Mike Lang 9e6e20cee2 schema: Create a type for image areas
This creates a new postgres "domain" which is a subtype of some other type
(in this case, of INTEGER[]) with some constraints applied.
We use this to create a type which is explicitly an array of length 4.

This saves us from needing to repeat this constraint everywhere (which already led to one copy-paste error)
and is arguably clearer in intent.
2 months ago
Mike Lang 0a638b0534 postgres: fix wrong constraint on thumbnail_location values 2 months ago
Mike Lang b88627183d Fix modifying manually-uploaded links 6 months ago
Christopher Usher d5244d2244 Update comments in schema 6 months ago
Christopher Usher d6f976ac0f Bug fixes and improvements in response to comments on the PR 6 months ago
Christopher Usher 167f8e623c Changes to support setting default templates based on tags 6 months ago
Christopher Usher 853a8f0ff4 Fixed SQL bug in the roles table 6 months ago
Mike Lang e00e716927 schema: Require role.email always be lowercase
Otherwise it will silently fail to match in the application.
6 months ago
Mike Lang a65cc6dcfe schema: Fix check constraints on template crop/location 6 months ago
Mike Lang befe9448cb Fix trailing comma in schema 6 months ago
Christopher Usher e0fc1eaf08 Refactor get_thumbnail and other fixes and improvments 6 months ago
Christopher Usher 70c8afe779 Switching thrimshim over to store thumbnail templates in the database 6 months ago
Christopher Usher 4c4e1fa85f convert editors table to roles table 6 months ago
ZeldaZach c378a1e4ab Add Audit Logging for several endpoints
- Use transactions for DB commits to avoid audit-less logs

Endpoints Supported:
- Manual Link
- Reset Row
- Update Row
7 months ago
Mike Lang fd78ff288e fix bugs in postgres schema from earlier changes 7 months ago
Mike Lang 23ad78d592 Record in database when end time is "--"
We need this so that reverse sync reproduces these values correctly.

To handle this in the database, we have a composite type (dashed: boolean, value: timestamp).
Value is always valid and is equivalent to the old timestamp column,
but must be equal to start_time if dashed is true.

The only place we directly reference this column outside sheetsync is thrimshim, where we
always consider the value only.
8 months ago
Mike Lang 69bfa79e24 Make video transition durations floats, not intervals
Almost all code was already expecting this.
8 months ago
Mike Lang 227be23cab postgres setup: split schema into its own file
This is more convenient for development since it's a standalone file that you can
apply without using the script, it also means we get syntax highlighting.
8 months ago