Skip to content

Commit

Permalink
Change usr yod column data type to year
Browse files Browse the repository at this point in the history
Fixes #25
  • Loading branch information
nafiesl committed Jun 5, 2019
1 parent 9edb46d commit 3da89bf
Showing 1 changed file with 1 addition and 1 deletion.
Expand Up @@ -24,7 +24,7 @@ public function up()
$table->date('dob')->nullable();
$table->unsignedTinyInteger('birth_order')->nullable();
$table->date('dod')->nullable();
$table->date('yod')->nullable();
$table->year('yod')->nullable();
$table->string('email')->unique()->nullable();
$table->string('password')->nullable();
$table->string('address')->nullable();
Expand Down

1 comment on commit 3da89bf

@nafiesl
Copy link
Owner Author

@nafiesl nafiesl commented on 3da89bf Jun 5, 2019

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This commit contain changes on users table. For existing silsilah database, you can run this sql command to apply the changes:

Don't forget to backup your database before run this sql command.

ALTER TABLE `users`
	CHANGE COLUMN `yod` `yod` YEAR NULL DEFAULT NULL AFTER `dod`;

Thank you.

Please sign in to comment.