Commit 2ed9d314 by Bagus Pambudi

migrasi settings

parent bff3f11a
......@@ -13,15 +13,15 @@ class CreateSettingsTable extends Migration
*/
public function up()
{
// Schema::create('swp_settings', function (Blueprint $table) {
// $table->string('id', 36)->primary();
// $table->string('show_name_setting');
// $table->string('name_setting');
// $table->string('value_setting');
// $table->string('userid_created', 36)->nullable();
// $table->string('userid_updated', 36)->nullable();
// $table->timestamps();
// });
Schema::create('swp_settings', function (Blueprint $table) {
$table->string('id', 36)->primary();
$table->string('show_name_setting');
$table->string('name_setting');
$table->string('value_setting');
$table->string('userid_created', 36)->nullable();
$table->string('userid_updated', 36)->nullable();
$table->timestamps();
});
}
/**
......
......@@ -10,37 +10,37 @@ class SettingsTableSeeder extends Seeder
public function run()
{
// Post per page
// DB::table('swp_settings')->insert([
// 'id' => Str::uuid()->toString(),
// 'show_name_setting' => 'POST PER PAGE',
// 'name_setting' => 'post_per_page',
// 'value_setting' => '6',
// 'userid_created' => 'Aan Choesni Herlingga',
// 'userid_updated' => 'Aan Choesni Herlingga',
// ]);
DB::table('swp_settings')->insert([
'id' => Str::uuid()->toString(),
'show_name_setting' => 'POST PER PAGE',
'name_setting' => 'post_per_page',
'value_setting' => '6',
'userid_created' => 'Aan Choesni Herlingga',
'userid_updated' => 'Aan Choesni Herlingga',
]);
// Email
// DB::table('swp_settings')->insert([
// 'id' => Str::uuid()->toString(),
// 'show_name_setting' => 'EMAIL',
// 'name_setting' => 'email',
// 'value_setting' => 'ppti@unesa.ac.id',
// 'userid_created' => 'Aan Choesni Herlingga',
// 'userid_updated' => 'Aan Choesni Herlingga',
// ]);
DB::table('swp_settings')->insert([
'id' => Str::uuid()->toString(),
'show_name_setting' => 'EMAIL',
'name_setting' => 'email',
'value_setting' => 'ppti@unesa.ac.id',
'userid_created' => 'Aan Choesni Herlingga',
'userid_updated' => 'Aan Choesni Herlingga',
]);
// HEADER
// DB::table('swp_settings')->insert([
// 'id' => Str::uuid()->toString(),
// 'show_name_setting' => 'HEADER',
// 'name_setting' => 'header_admin',
// 'value_setting' => 'Master',
// 'userid_created' => 'Aan Choesni Herlingga',
// 'userid_updated' => 'Aan Choesni Herlingga',
// ]);
DB::table('swp_settings')->insert([
'id' => Str::uuid()->toString(),
'show_name_setting' => 'HEADER',
'name_setting' => 'header_admin',
'value_setting' => 'Master',
'userid_created' => 'Aan Choesni Herlingga',
'userid_updated' => 'Aan Choesni Herlingga',
]);
// DIRECTORY STORAGE
DB::table('swp_setting')->insert([
DB::table('swp_settings')->insert([
'id' => Str::uuid()->toString(),
'show_name_setting' => 'DIRECTORY STORAGE',
'name_setting' => 'directory',
......@@ -50,47 +50,47 @@ class SettingsTableSeeder extends Seeder
]);
// WEB TITILE
// DB::table('swp_settings')->insert([
// 'id' => Str::uuid()->toString(),
// 'show_name_setting' => 'WEB TITILE',
// 'name_setting' => 'web_title',
// 'value_setting' => 'NEW WPSS | PPTI Universitas Negeri Surabaya',
// 'userid_created' => 'Aan Choesni Herlingga',
// 'userid_updated' => 'Aan Choesni Herlingga',
// ]);
DB::table('swp_settings')->insert([
'id' => Str::uuid()->toString(),
'show_name_setting' => 'WEB TITILE',
'name_setting' => 'web_title',
'value_setting' => 'NEW WPSS | PPTI Universitas Negeri Surabaya',
'userid_created' => 'Aan Choesni Herlingga',
'userid_updated' => 'Aan Choesni Herlingga',
]);
// LOGO
// DB::table('swp_settings')->insert([
// 'id' => Str::uuid()->toString(),
// 'show_name_setting' => 'LOGO',
// 'name_setting' => 'logo',
// 'value_setting' => 'https://unesa.ac.id/assets/switcher/images/logo.png',
// 'userid_created' => 'Aan Choesni Herlingga',
// 'userid_updated' => 'Aan Choesni Herlingga',
// ]);
DB::table('swp_settings')->insert([
'id' => Str::uuid()->toString(),
'show_name_setting' => 'LOGO',
'name_setting' => 'logo',
'value_setting' => 'https://unesa.ac.id/assets/switcher/images/logo.png',
'userid_created' => 'Aan Choesni Herlingga',
'userid_updated' => 'Aan Choesni Herlingga',
]);
// STYLE
// DB::table('swp_settings')->insert([
// 'id' => Str::uuid()->toString(),
// 'show_name_setting' => 'STYLE',
// 'name_setting' => 'style',
// 'value_setting' => 'style-wpss.css',
// 'userid_created' => 'Aan Choesni Herlingga',
// 'userid_updated' => 'Aan Choesni Herlingga',
// ]);
DB::table('swp_settings')->insert([
'id' => Str::uuid()->toString(),
'show_name_setting' => 'STYLE',
'name_setting' => 'style',
'value_setting' => 'style-wpss.css',
'userid_created' => 'Aan Choesni Herlingga',
'userid_updated' => 'Aan Choesni Herlingga',
]);
// ONE PAGE?
// DB::table('swp_settings')->insert([
// 'id' => Str::uuid()->toString(),
// 'show_name_setting' => 'ONE PAGE?',
// 'name_setting' => 'onepage',
// 'value_setting' => '1',
// 'userid_created' => 'Aan Choesni Herlingga',
// 'userid_updated' => 'Aan Choesni Herlingga',
// ]);
DB::table('swp_settings')->insert([
'id' => Str::uuid()->toString(),
'show_name_setting' => 'ONE PAGE?',
'name_setting' => 'onepage',
'value_setting' => '1',
'userid_created' => 'Aan Choesni Herlingga',
'userid_updated' => 'Aan Choesni Herlingga',
]);
// EKSTERNAL STORAGE
DB::table('swp_setting')->insert([
DB::table('swp_settings')->insert([
'id' => Str::uuid()->toString(),
'show_name_setting' => 'EKSTERNAL STORAGE',
'name_setting' => 'external_storage',
......@@ -100,7 +100,7 @@ class SettingsTableSeeder extends Seeder
]);
// URL STORAGE
DB::table('swp_setting')->insert([
DB::table('swp_settings')->insert([
'id' => Str::uuid()->toString(),
'show_name_setting' => 'URL STORAGE',
'name_setting' => 'url_static',
......@@ -110,7 +110,7 @@ class SettingsTableSeeder extends Seeder
]);
// AUTO TRANSLATE
DB::table('swp_setting')->insert([
DB::table('swp_settings')->insert([
'id' => Str::uuid()->toString(),
'show_name_setting' => 'AUTO TRANSLATE',
'name_setting' => 'auto_translate',
......@@ -120,7 +120,7 @@ class SettingsTableSeeder extends Seeder
]);
// THEME
DB::table('swp_setting')->insert([
DB::table('swp_settings')->insert([
'id' => Str::uuid()->toString(),
'show_name_setting' => 'THEME',
'name_setting' => 'theme',
......@@ -130,7 +130,7 @@ class SettingsTableSeeder extends Seeder
]);
// LANGUAGE
DB::table('swp_setting')->insert([
DB::table('swp_settings')->insert([
'id' => Str::uuid()->toString(),
'show_name_setting' => 'LANGUAGE',
'name_setting' => 'default_language',
......@@ -140,7 +140,7 @@ class SettingsTableSeeder extends Seeder
]);
// KEYWORD
DB::table('swp_setting')->insert([
DB::table('swp_settings')->insert([
'id' => Str::uuid()->toString(),
'show_name_setting' => 'KEYWORD',
'name_setting' => 'default_keyword',
......@@ -150,7 +150,7 @@ class SettingsTableSeeder extends Seeder
]);
// LANGUAGE
DB::table('swp_setting')->insert([
DB::table('swp_settings')->insert([
'id' => Str::uuid()->toString(),
'show_name_setting' => 'TEAM',
'name_setting' => 'team',
......
......@@ -14,15 +14,15 @@ class UsersTableSeeder extends Seeder
*/
public function run()
{
// DB::table('users')->insert([
// 'id' => Str::uuid()->toString(),
// 'name' => 'Aan Choesni Herlingga',
// 'email' => 'aanchoesni@unesa.ac.id',
// 'email_verified_at' => null,
// 'password' => Hash::make('anchuz2020'),
// 'remember_token' => null,
// 'role' => 'admin',
// 'is_active' => 1,
// ]);
DB::table('users')->insert([
'id' => Str::uuid()->toString(),
'name' => 'Aan Choesni Herlingga',
'email' => 'aanchoesni@unesa.ac.id',
'email_verified_at' => null,
'password' => Hash::make('anchuz2020'),
'remember_token' => null,
'role' => 'admin',
'is_active' => 1,
]);
}
}
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment