mirror of
				https://github.com/cp6/my-idlers.git
				synced 2025-11-03 23:59:09 +00:00 
			
		
		
		
	
		
			
	
	
		
			50 lines
		
	
	
	
		
			1.7 KiB
		
	
	
	
		
			PHP
		
	
	
	
	
	
		
		
			
		
	
	
			50 lines
		
	
	
	
		
			1.7 KiB
		
	
	
	
		
			PHP
		
	
	
	
	
	
| 
								 | 
							
								<?php
							 | 
						||
| 
								 | 
							
								
							 | 
						||
| 
								 | 
							
								use Illuminate\Database\Migrations\Migration;
							 | 
						||
| 
								 | 
							
								use Illuminate\Database\Schema\Blueprint;
							 | 
						||
| 
								 | 
							
								use Illuminate\Support\Facades\Schema;
							 | 
						||
| 
								 | 
							
								
							 | 
						||
| 
								 | 
							
								class CreateSharedsTable extends Migration
							 | 
						||
| 
								 | 
							
								{
							 | 
						||
| 
								 | 
							
								    /**
							 | 
						||
| 
								 | 
							
								     * Run the migrations.
							 | 
						||
| 
								 | 
							
								     *
							 | 
						||
| 
								 | 
							
								     * @return void
							 | 
						||
| 
								 | 
							
								     */
							 | 
						||
| 
								 | 
							
								    public function up()
							 | 
						||
| 
								 | 
							
								    {
							 | 
						||
| 
								 | 
							
								        Schema::create('shared_hosting', function (Blueprint $table) {
							 | 
						||
| 
								 | 
							
								            $table->char('id', 8)->unique();
							 | 
						||
| 
								 | 
							
								            $table->tinyInteger('active')->default(1);
							 | 
						||
| 
								 | 
							
								            $table->string('main_domain');
							 | 
						||
| 
								 | 
							
								            $table->tinyInteger('has_dedicated_ip')->default(0);
							 | 
						||
| 
								 | 
							
								            $table->string('ip')->nullable()->default(null);
							 | 
						||
| 
								 | 
							
								            $table->string('shared_type')->nullable();
							 | 
						||
| 
								 | 
							
								            $table->integer('provider_id')->default(9999);
							 | 
						||
| 
								 | 
							
								            $table->integer('location_id')->default(9999);
							 | 
						||
| 
								 | 
							
								            $table->integer('bandwidth')->nullable();
							 | 
						||
| 
								 | 
							
								            $table->integer('disk')->default(10);
							 | 
						||
| 
								 | 
							
								            $table->char('disk_type', 2)->default('GB');
							 | 
						||
| 
								 | 
							
								            $table->integer('disk_as_gb')->nullable()->default(0);
							 | 
						||
| 
								 | 
							
								            $table->integer('domains_limit')->nullable()->default(1);
							 | 
						||
| 
								 | 
							
								            $table->integer('subdomains_limit')->nullable()->default(1);
							 | 
						||
| 
								 | 
							
								            $table->integer('ftp_limit')->nullable()->default(1);
							 | 
						||
| 
								 | 
							
								            $table->integer('email_limit')->nullable()->default(1);
							 | 
						||
| 
								 | 
							
								            $table->integer('db_limit')->nullable()->default(1);
							 | 
						||
| 
								 | 
							
								            $table->tinyInteger('was_promo')->default(0);
							 | 
						||
| 
								 | 
							
								            $table->date('owned_since')->nullable();
							 | 
						||
| 
								 | 
							
								            $table->timestamps();
							 | 
						||
| 
								 | 
							
								        });
							 | 
						||
| 
								 | 
							
								    }
							 | 
						||
| 
								 | 
							
								
							 | 
						||
| 
								 | 
							
								    /**
							 | 
						||
| 
								 | 
							
								     * Reverse the migrations.
							 | 
						||
| 
								 | 
							
								     *
							 | 
						||
| 
								 | 
							
								     * @return void
							 | 
						||
| 
								 | 
							
								     */
							 | 
						||
| 
								 | 
							
								    public function down()
							 | 
						||
| 
								 | 
							
								    {
							 | 
						||
| 
								 | 
							
								        Schema::dropIfExists('shared_hosting');
							 | 
						||
| 
								 | 
							
								    }
							 | 
						||
| 
								 | 
							
								}
							 |