Skip to content

Commit

Permalink
added expiry date
Browse files Browse the repository at this point in the history
  • Loading branch information
Gigamick committed Jul 5, 2022
1 parent 38a4d54 commit 1d1646f
Show file tree
Hide file tree
Showing 2 changed files with 64 additions and 0 deletions.
32 changes: 32 additions & 0 deletions database/migrations/2022_07_05_211328_add_expiry_to_note.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
<?php

use Illuminate\Database\Migrations\Migration;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Support\Facades\Schema;

class AddExpiryToNote extends Migration
{
/**
* Run the migrations.
*
* @return void
*/
public function up()
{
Schema::table('note', function (Blueprint $table) {
//
});
}

/**
* Reverse the migrations.
*
* @return void
*/
public function down()
{
Schema::table('note', function (Blueprint $table) {
//
});
}
}
32 changes: 32 additions & 0 deletions database/migrations/2022_07_05_211418_add_expiry_to_notes.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
<?php

use Illuminate\Database\Migrations\Migration;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Support\Facades\Schema;

class AddExpiryToNotes extends Migration
{
/**
* Run the migrations.
*
* @return void
*/
public function up()
{
Schema::table('notes', function (Blueprint $table) {
$table->timestamp('expiry_date');
});
}

/**
* Reverse the migrations.
*
* @return void
*/
public function down()
{
Schema::table('notes', function (Blueprint $table) {
$table->dropColumn('expiry_date');
});
}
}

0 comments on commit 1d1646f

Please sign in to comment.