diff options
Diffstat (limited to 'main/app/system/Database')
-rw-r--r-- | main/app/system/Database/Migrations/v410/MigrationTable.php | 116 | ||||
-rw-r--r-- | main/app/system/Database/Model/Migrations.php | 110 |
2 files changed, 113 insertions, 113 deletions
diff --git a/main/app/system/Database/Migrations/v410/MigrationTable.php b/main/app/system/Database/Migrations/v410/MigrationTable.php index 265305a..732738a 100644 --- a/main/app/system/Database/Migrations/v410/MigrationTable.php +++ b/main/app/system/Database/Migrations/v410/MigrationTable.php @@ -1,58 +1,58 @@ -<?php -/** - * UserFrosting (http://www.userfrosting.com) - * - * @link https://github.com/userfrosting/UserFrosting - * @license https://github.com/userfrosting/UserFrosting/blob/master/licenses/UserFrosting.md (MIT License) - */ - -namespace UserFrosting\System\Database\Migrations\v410; - -use Illuminate\Database\Schema\Blueprint; -use Illuminate\Database\Schema\Builder; -use UserFrosting\System\Bakery\Migration; - -/** - * Migration table migration - * Version 4.1.0 - * - * See https://laravel.com/docs/5.4/migrations#tables - * @extends Migration - * @author Alex Weissman (https://alexanderweissman.com) - */ -class MigrationTable extends Migration -{ - /** - * {@inheritDoc} - */ - public $dependencies = []; - - /** - * {@inheritDoc} - */ - public function up() { - $this->schema->create('migrations', function (Blueprint $table) { - $table->increments('id'); - $table->string('sprinkle'); - $table->string('migration'); - $table->integer('batch'); - $table->timestamps(); - - $table->engine = 'InnoDB'; - $table->collation = 'utf8_unicode_ci'; - $table->charset = 'utf8'; - }); - - // Drop the old `version` table if found - if ($this->schema->hasTable('version')) { - $this->schema->drop('version'); - } - } - - /** - * {@inheritDoc} - */ - public function down() { - $this->schema->drop('migrations'); - } -} +<?php
+/**
+ * UserFrosting (http://www.userfrosting.com)
+ *
+ * @link https://github.com/userfrosting/UserFrosting
+ * @license https://github.com/userfrosting/UserFrosting/blob/master/licenses/UserFrosting.md (MIT License)
+ */
+
+namespace UserFrosting\System\Database\Migrations\v410;
+
+use Illuminate\Database\Schema\Blueprint;
+use Illuminate\Database\Schema\Builder;
+use UserFrosting\System\Bakery\Migration;
+
+/**
+ * Migration table migration
+ * Version 4.1.0
+ *
+ * See https://laravel.com/docs/5.4/migrations#tables
+ * @extends Migration
+ * @author Alex Weissman (https://alexanderweissman.com)
+ */
+class MigrationTable extends Migration
+{
+ /**
+ * {@inheritDoc}
+ */
+ public $dependencies = [];
+
+ /**
+ * {@inheritDoc}
+ */
+ public function up() {
+ $this->schema->create('migrations', function (Blueprint $table) {
+ $table->increments('id');
+ $table->string('sprinkle');
+ $table->string('migration');
+ $table->integer('batch');
+ $table->timestamps();
+
+ $table->engine = 'InnoDB';
+ $table->collation = 'utf8_unicode_ci';
+ $table->charset = 'utf8';
+ });
+
+ // Drop the old `version` table if found
+ if ($this->schema->hasTable('version')) {
+ $this->schema->drop('version');
+ }
+ }
+
+ /**
+ * {@inheritDoc}
+ */
+ public function down() {
+ $this->schema->drop('migrations');
+ }
+}
diff --git a/main/app/system/Database/Model/Migrations.php b/main/app/system/Database/Model/Migrations.php index da690f8..6dca26e 100644 --- a/main/app/system/Database/Model/Migrations.php +++ b/main/app/system/Database/Model/Migrations.php @@ -1,55 +1,55 @@ -<?php -/** - * UserFrosting (http://www.userfrosting.com) - * - * @link https://github.com/userfrosting/UserFrosting - * @license https://github.com/userfrosting/UserFrosting/blob/master/licenses/UserFrosting.md (MIT License) - */ - -namespace UserFrosting\System\Database\Model; - -use Illuminate\Database\Capsule\Manager as Capsule; -use Illuminate\Database\Eloquent\Model; - -/** - * Migration Model - * - * Represents the model for the `migrations` table - * - * @author Alex Weissman (https://alexanderweissman.com) - * @property string sprinkle - * @property string version - */ -class Migrations extends Model -{ - /** - * @var string The name of the table for the current model. - */ - protected $table = "migrations"; - - /** - * @var bool Enable timestamps for this class. - */ - public $timestamps = TRUE; - - /** - * @var array List of fields that can be edited by this model - */ - protected $fillable = [ - "sprinkle", - "migration", - "batch" - ]; - - /** - * scopeForSprinkle function. - * - * @access protected - * @param mixed $query - * @param string $sprinkleName - * @return void - */ - protected function scopeForSprinkle($query, $sprinkleName) { - return $query->where('sprinkle', $sprinkleName); - } -} +<?php
+/**
+ * UserFrosting (http://www.userfrosting.com)
+ *
+ * @link https://github.com/userfrosting/UserFrosting
+ * @license https://github.com/userfrosting/UserFrosting/blob/master/licenses/UserFrosting.md (MIT License)
+ */
+
+namespace UserFrosting\System\Database\Model;
+
+use Illuminate\Database\Capsule\Manager as Capsule;
+use Illuminate\Database\Eloquent\Model;
+
+/**
+ * Migration Model
+ *
+ * Represents the model for the `migrations` table
+ *
+ * @author Alex Weissman (https://alexanderweissman.com)
+ * @property string sprinkle
+ * @property string version
+ */
+class Migrations extends Model
+{
+ /**
+ * @var string The name of the table for the current model.
+ */
+ protected $table = "migrations";
+
+ /**
+ * @var bool Enable timestamps for this class.
+ */
+ public $timestamps = TRUE;
+
+ /**
+ * @var array List of fields that can be edited by this model
+ */
+ protected $fillable = [
+ "sprinkle",
+ "migration",
+ "batch"
+ ];
+
+ /**
+ * scopeForSprinkle function.
+ *
+ * @access protected
+ * @param mixed $query
+ * @param string $sprinkleName
+ * @return void
+ */
+ protected function scopeForSprinkle($query, $sprinkleName) {
+ return $query->where('sprinkle', $sprinkleName);
+ }
+}
|