Skip to content

Commit 250e2e9

Browse files
authored
edited collction , menu, page INE checks for migration (#563)
1 parent 014536a commit 250e2e9

5 files changed

Lines changed: 6 additions & 6 deletions

File tree

doc/database/collections.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,4 +47,4 @@ Rows are uniquely identified by the combination of `chapter_id` and `contributor
4747
|---------------------|------------------------------|-------------------------------------------------|
4848
| `chapter_id` | `uuid -> collection_chapter` | |
4949
| `contributor_id` | `uuid -> contributor` | |
50-
| `contribution_role` | `text` | How did they contribute? Ex: `Author`, `Editor` |
50+
| `contribution_role` | `text` | How did they contribute? Ex: `Author`, `Editor` |

doc/database/user.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,4 +10,4 @@ from Google Sheets.
1010
| -------------- | ------ | -------------------------------------------------- |
1111
| `id` | `uuid` | Primary key, AWS Cognito `sub` claim |
1212
| `display_name` | `text` | How the user's name should be presented in the app |
13-
| `created_at` | `date` | When the user record was created |
13+
| `created_at` | `date` | When the user record was created |
Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
-- Add migration script here
22
ALTER TABLE edited_collection
3-
ADD COLUMN description TEXT,
4-
ADD COLUMN thumbnail_url TEXT;
3+
ADD COLUMN if not exists description TEXT,
4+
ADD COLUMN if not exists thumbnail_url TEXT;

types/migrations/20250923142543_add-menu.sql

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
-- Menus
2-
create table menu (
2+
create table if not exists menu (
33
id autouuid primary key,
44
name text not null,
55
slug text not null unique,

types/migrations/20250929141740_add-page-table.sql

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
-- Add migration script here
2-
create table page (
2+
create table if not exists page (
33
page_id autouuid primary key,
44
slug text not null unique,
55
path text not null unique,

0 commit comments

Comments
 (0)