Skip to content

Commit

Permalink
docs(mysql): mention mandatory primary keys for MySQL 8
Browse files Browse the repository at this point in the history
  • Loading branch information
mickael-plassard committed Jan 15, 2025
1 parent e8f3e61 commit 6829aac
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions src/_posts/databases/mysql/2000-01-01-overview.md
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,18 @@ The latest version of MySQL® available is **`8.0.40-1`**.
This is also the default version when attaching a MySQL® addon to your
application.

### Requirements

For MySQL versions 8 and higher, every tables must have a primary key.

If you need to add a primary key to the `foo` table. You need to
evaluate the impact of this modification before proceeding. Here is an example
SQL statement to add a new column and set it as primary:

```sql
ALTER TABLE 'foo' ADD COLUMN <column description> PRIMARY KEY;
```

### Billing

Billing of your MySQL® addon is done on a minute basis.
Expand Down

0 comments on commit 6829aac

Please sign in to comment.