From caff99c79ded5820d37d5d07cfbb3958a88f7680 Mon Sep 17 00:00:00 2001 From: Vincent Vanwaelscappel Date: Mon, 11 Mar 2019 16:22:52 +0100 Subject: [PATCH] wip #2628 @1 --- composer.json | 39 ++++++++++++++- src/Cubist/Cms-back/SayHello.php | 9 ---- ...019_03_11_155835_create_template_table.php | 49 +++++++++++++++++++ 3 files changed, 87 insertions(+), 10 deletions(-) delete mode 100644 src/Cubist/Cms-back/SayHello.php create mode 100644 src/database/migrations/2019_03_11_155835_create_template_table.php diff --git a/composer.json b/composer.json index 8b80dc7..5dcad91 100644 --- a/composer.json +++ b/composer.json @@ -1 +1,38 @@ -{"name":"cubist\/cms-back","description":"cms-back cubist composer package","type":"library","license":"proprietary","minimum-stability":"dev","autoload":{"psr-0":{"Cubist\\Cms-back":"src\/"}},"authors":[{"name":"Vincent Vanwaelscappel","email":"vincent@cubedesigners.com"}],"require":{"php":">=5.4.0"},"repositories":[{"type":"composer","url":"https:\/\/composer.cubedesigners.com\/"}]} \ No newline at end of file +{ + "name": "cubist\/cms-back", + "description": "Cubist Backpack extension", + "type": "library", + "license": "proprietary", + "minimum-stability": "dev", + "autoload": { + "psr-0": { + "Cubist\\Backpack\\": "src" + } + }, + "authors": [ + { + "name": "Vincent Vanwaelscappel", + "email": "vincent@cubedesigners.com" + } + ], + "require": { + "php": "^7.1.3", + "backpack/backupmanager": "^1.4", + "backpack/crud": "^3.5", + "backpack/logmanager": "^2.3", + "backpack/menucrud": "^1.0", + "backpack/newscrud": "^2.1", + "backpack/pagemanager": "^1.1", + "backpack/permissionmanager": "^4.0", + "backpack/settings": "^2.1" + }, + "require-dev": { + "backpack/generators": "^1.2" + }, + "repositories": [ + { + "type": "composer", + "url": "https:\/\/composer.cubedesigners.com\/" + } + ] +} \ No newline at end of file diff --git a/src/Cubist/Cms-back/SayHello.php b/src/Cubist/Cms-back/SayHello.php deleted file mode 100644 index 1d6bdf8..0000000 --- a/src/Cubist/Cms-back/SayHello.php +++ /dev/null @@ -1,9 +0,0 @@ -increments('id'); + $table->string('key')->unique(); + $table->string('name'); + $table->string('description')->nullable(); + $table->string('parent')->nullable(); + $table->json('tabs')->default('[]'); + $table->json('fields')->default('[]'); + $table->tinyInteger('active'); + $table->timestamps(); + }); + + Schema::create('cubist_subforms', function (Blueprint $table) { + $table->increments('id'); + $table->string('key')->unique(); + $table->string('name'); + $table->string('description')->nullable(); + $table->string('parent')->nullable(); + $table->json('fields')->default('[]'); + $table->tinyInteger('active'); + $table->timestamps(); + }); + } + + /** + * Reverse the migrations. + * + * @return void + */ + public function down() + { + Schema::drop('cubist_templates'); + Schema::drop('cubist_subforms'); + } +} -- 2.39.5