Tested both the `CREATE TABLE` and `the ALTER TABLE` statements locally in TablePlus individually to confirm the tablecolumns gets created and no syntax errors are present.
```
CREATE TABLE pinned_messages (
messageID bigint(20) NOT NULL,
thread bigint(20) NOT NULL,```
pin_time bigint(20) NOT NULLALTER TABLE messages
)
```
``` ADD COLUMN IF NOT EXISTS pinned tinyint(1) UNSIGNED NOT NULL DEFAULT 0,
ALTER TABLE pinned_messages ADD COLUMN IF NOT EXISTS pin_time bigint(20) DEFAULT NULL,
ADD PRIMARY KEY (messageID),INDEX IF NOT EXISTS pinned (pinned);
ADD INDEX thread (thread);
```
```
DROP TABLE pinned_messages;Also checked the table after the migration was successful:
```
{F409553}{F435771}