aboutsummaryrefslogtreecommitdiffhomepage
path: root/main/app/system/Database
diff options
context:
space:
mode:
authorMarvin Borner2018-06-28 21:15:57 +0200
committerMarvin Borner2018-06-28 21:15:57 +0200
commit15793496e8d56769c792cf39673c6e6dea3ec4d9 (patch)
tree1038f86603cdb52d7d9be5f125e5a88a25086995 /main/app/system/Database
parent8781338896a0cfb47c871a0ecb13cd3fdee09d8e (diff)
Preparing for complete rewrite..
Diffstat (limited to 'main/app/system/Database')
-rw-r--r--main/app/system/Database/Migrations/v410/MigrationTable.php58
-rw-r--r--main/app/system/Database/Model/Migrations.php55
2 files changed, 0 insertions, 113 deletions
diff --git a/main/app/system/Database/Migrations/v410/MigrationTable.php b/main/app/system/Database/Migrations/v410/MigrationTable.php
deleted file mode 100644
index 732738a..0000000
--- a/main/app/system/Database/Migrations/v410/MigrationTable.php
+++ /dev/null
@@ -1,58 +0,0 @@
-<?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
deleted file mode 100644
index 6dca26e..0000000
--- a/main/app/system/Database/Model/Migrations.php
+++ /dev/null
@@ -1,55 +0,0 @@
-<?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);
- }
-}