add field date

This commit is contained in:
gerchek 2022-03-16 23:38:26 +05:00
parent 7218a6488d
commit 16054c81e7
5 changed files with 80 additions and 1 deletions

View File

@ -47,7 +47,8 @@ class OnlineCard extends Model
'selected_time',
'the_codeword',
'user_id',
'file'
'file',
'date'
];
protected $guarded = ['*'];

View File

@ -0,0 +1,23 @@
<?php namespace Atash\Contact\Updates;
use Schema;
use October\Rain\Database\Updates\Migration;
class BuilderTableUpdateAtashContactContact3 extends Migration
{
public function up()
{
Schema::table('atash_contact_contact', function($table)
{
$table->string('date');
});
}
public function down()
{
Schema::table('atash_contact_contact', function($table)
{
$table->dropColumn('date');
});
}
}

View File

@ -0,0 +1,23 @@
<?php namespace Atash\Contact\Updates;
use Schema;
use October\Rain\Database\Updates\Migration;
class BuilderTableUpdateAtashContactCredit5 extends Migration
{
public function up()
{
Schema::table('atash_contact_credit', function($table)
{
$table->string('date');
});
}
public function down()
{
Schema::table('atash_contact_credit', function($table)
{
$table->dropColumn('date');
});
}
}

View File

@ -0,0 +1,23 @@
<?php namespace Atash\Contact\Updates;
use Schema;
use October\Rain\Database\Updates\Migration;
class BuilderTableUpdateAtashContactOnlineCard4 extends Migration
{
public function up()
{
Schema::table('atash_contact_online_card', function($table)
{
$table->string('date');
});
}
public function down()
{
Schema::table('atash_contact_online_card', function($table)
{
$table->dropColumn('date');
});
}
}

View File

@ -39,3 +39,12 @@
1.0.14:
- 'Updated table atash_contact_credit'
- builder_table_update_atash_contact_credit_4.php
1.0.15:
- 'Updated table atash_contact_contact'
- builder_table_update_atash_contact_contact_3.php
1.0.16:
- 'Updated table atash_contact_credit'
- builder_table_update_atash_contact_credit_5.php
1.0.17:
- 'Updated table atash_contact_online_card'
- builder_table_update_atash_contact_online_card_4.php