Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit e8d85a1

Browse files
Give default value to user table status column in migration
1 parent 5bd7e5d commit e8d85a1

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

‎migrations/m0001_initial.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ public function up()
1414
email VARCHAR(255) NOT NULL,
1515
firstname VARCHAR(255) NOT NULL,
1616
lastname VARCHAR(255) NOT NULL,
17-
status TINYINT NOT NULL,
17+
status TINYINT DEFAULT 0,
1818
created_at TIMESTAMP DEFAULT CURRENT_TIMESTAMP
1919
) ENGINE=INNODB;";
2020
$db->pdo->exec($SQL);

0 commit comments

Comments
(0)

AltStyle によって変換されたページ (->オリジナル) /