add field date
This commit is contained in:
parent
7218a6488d
commit
16054c81e7
|
|
@ -47,7 +47,8 @@ class OnlineCard extends Model
|
|||
'selected_time',
|
||||
'the_codeword',
|
||||
'user_id',
|
||||
'file'
|
||||
'file',
|
||||
'date'
|
||||
];
|
||||
|
||||
protected $guarded = ['*'];
|
||||
|
|
|
|||
|
|
@ -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');
|
||||
});
|
||||
}
|
||||
}
|
||||
|
|
@ -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');
|
||||
});
|
||||
}
|
||||
}
|
||||
|
|
@ -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');
|
||||
});
|
||||
}
|
||||
}
|
||||
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Reference in New Issue