adding database migration for about table
This commit is contained in:
32
database/migrations/2024_02_24_144733_about.php
Normal file
32
database/migrations/2024_02_24_144733_about.php
Normal file
@@ -0,0 +1,32 @@
|
||||
<?php
|
||||
|
||||
use Illuminate\Database\Schema\Blueprint;
|
||||
use Illuminate\Database\Migrations\Migration;
|
||||
|
||||
class About extends Migration
|
||||
{
|
||||
/**
|
||||
* Run the migrations.
|
||||
*
|
||||
* @return void
|
||||
*/
|
||||
public function up()
|
||||
{
|
||||
Schema::create('about', function(Blueprint $table) {
|
||||
$table->increments('id');
|
||||
$table->longText('content');
|
||||
});
|
||||
}
|
||||
|
||||
/**
|
||||
* Reverse the migrations.
|
||||
*
|
||||
* @return void
|
||||
*/
|
||||
public function down()
|
||||
{
|
||||
Schema::table('about', function (Blueprint $table) {
|
||||
$table->dropColumn('about');
|
||||
});
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user