1: | <?php |
2: | |
3: | use Illuminate\Database\Migrations\Migration; |
4: | use Illuminate\Database\Schema\Blueprint; |
5: | use Illuminate\Database\Capsule\Manager as Capsule; |
6: | |
7: | class DeleteUserGroupsTable extends Migration |
8: | { |
9: | |
10: | |
11: | |
12: | |
13: | |
14: | public function up() |
15: | { |
16: | Capsule::schema()->dropIfExists('core_user_groups_legacy'); |
17: | } |
18: | |
19: | |
20: | |
21: | |
22: | |
23: | |
24: | public function down() |
25: | { |
26: | Capsule::schema()->create('core_user_groups_legacy', function (Blueprint $table) { |
27: | $table->id('Id'); |
28: | $table->string('UrlIdentifier')->default(''); |
29: | $table->integer('IdTenant')->default(0); |
30: | $table->json('Properties')->nullable(); |
31: | $table->timestamp(\Aurora\System\Classes\Model::CREATED_AT)->nullable(); |
32: | $table->timestamp(\Aurora\System\Classes\Model::UPDATED_AT)->nullable(); |
33: | }); |
34: | } |
35: | } |
36: | |