Skip to content

Commit e8d85a1

Browse files
committed
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)