Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
webprofile-jwg2024
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Siti Aisah
webprofile-jwg2024
Commits
2ed9d314
Commit
2ed9d314
authored
Jan 05, 2021
by
Bagus Pambudi
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
migrasi settings
parent
bff3f11a
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
83 additions
and
83 deletions
+83
-83
database/migrations/2019_11_12_114258_create_settings_table.php
+9
-9
database/seeds/SettingsTableSeeder.php
+64
-64
database/seeds/UsersTableSeeder.php
+10
-10
No files found.
database/migrations/2019_11_12_114258_create_settings_table.php
View file @
2ed9d314
...
@@ -13,15 +13,15 @@ class CreateSettingsTable extends Migration
...
@@ -13,15 +13,15 @@ class CreateSettingsTable extends Migration
*/
*/
public
function
up
()
public
function
up
()
{
{
//
Schema::create('swp_settings', function (Blueprint $table) {
Schema
::
create
(
'swp_settings'
,
function
(
Blueprint
$table
)
{
//
$table->string('id', 36)->primary();
$table
->
string
(
'id'
,
36
)
->
primary
();
//
$table->string('show_name_setting');
$table
->
string
(
'show_name_setting'
);
//
$table->string('name_setting');
$table
->
string
(
'name_setting'
);
//
$table->string('value_setting');
$table
->
string
(
'value_setting'
);
//
$table->string('userid_created', 36)->nullable();
$table
->
string
(
'userid_created'
,
36
)
->
nullable
();
//
$table->string('userid_updated', 36)->nullable();
$table
->
string
(
'userid_updated'
,
36
)
->
nullable
();
//
$table->timestamps();
$table
->
timestamps
();
//
});
});
}
}
/**
/**
...
...
database/seeds/SettingsTableSeeder.php
View file @
2ed9d314
...
@@ -10,37 +10,37 @@ class SettingsTableSeeder extends Seeder
...
@@ -10,37 +10,37 @@ class SettingsTableSeeder extends Seeder
public
function
run
()
public
function
run
()
{
{
// Post per page
// Post per page
//
DB::table('swp_settings')->insert([
DB
::
table
(
'swp_settings'
)
->
insert
([
//
'id' => Str::uuid()->toString(),
'id'
=>
Str
::
uuid
()
->
toString
(),
//
'show_name_setting' => 'POST PER PAGE',
'show_name_setting'
=>
'POST PER PAGE'
,
//
'name_setting' => 'post_per_page',
'name_setting'
=>
'post_per_page'
,
//
'value_setting' => '6',
'value_setting'
=>
'6'
,
//
'userid_created' => 'Aan Choesni Herlingga',
'userid_created'
=>
'Aan Choesni Herlingga'
,
//
'userid_updated' => 'Aan Choesni Herlingga',
'userid_updated'
=>
'Aan Choesni Herlingga'
,
//
]);
]);
// Email
// Email
//
DB::table('swp_settings')->insert([
DB
::
table
(
'swp_settings'
)
->
insert
([
//
'id' => Str::uuid()->toString(),
'id'
=>
Str
::
uuid
()
->
toString
(),
//
'show_name_setting' => 'EMAIL',
'show_name_setting'
=>
'EMAIL'
,
//
'name_setting' => 'email',
'name_setting'
=>
'email'
,
//
'value_setting' => 'ppti@unesa.ac.id',
'value_setting'
=>
'ppti@unesa.ac.id'
,
//
'userid_created' => 'Aan Choesni Herlingga',
'userid_created'
=>
'Aan Choesni Herlingga'
,
//
'userid_updated' => 'Aan Choesni Herlingga',
'userid_updated'
=>
'Aan Choesni Herlingga'
,
//
]);
]);
// HEADER
// HEADER
//
DB::table('swp_settings')->insert([
DB
::
table
(
'swp_settings'
)
->
insert
([
//
'id' => Str::uuid()->toString(),
'id'
=>
Str
::
uuid
()
->
toString
(),
//
'show_name_setting' => 'HEADER',
'show_name_setting'
=>
'HEADER'
,
//
'name_setting' => 'header_admin',
'name_setting'
=>
'header_admin'
,
//
'value_setting' => 'Master',
'value_setting'
=>
'Master'
,
//
'userid_created' => 'Aan Choesni Herlingga',
'userid_created'
=>
'Aan Choesni Herlingga'
,
//
'userid_updated' => 'Aan Choesni Herlingga',
'userid_updated'
=>
'Aan Choesni Herlingga'
,
//
]);
]);
// DIRECTORY STORAGE
// DIRECTORY STORAGE
DB
::
table
(
'swp_setting'
)
->
insert
([
DB
::
table
(
'swp_setting
s
'
)
->
insert
([
'id'
=>
Str
::
uuid
()
->
toString
(),
'id'
=>
Str
::
uuid
()
->
toString
(),
'show_name_setting'
=>
'DIRECTORY STORAGE'
,
'show_name_setting'
=>
'DIRECTORY STORAGE'
,
'name_setting'
=>
'directory'
,
'name_setting'
=>
'directory'
,
...
@@ -50,47 +50,47 @@ class SettingsTableSeeder extends Seeder
...
@@ -50,47 +50,47 @@ class SettingsTableSeeder extends Seeder
]);
]);
// WEB TITILE
// WEB TITILE
//
DB::table('swp_settings')->insert([
DB
::
table
(
'swp_settings'
)
->
insert
([
//
'id' => Str::uuid()->toString(),
'id'
=>
Str
::
uuid
()
->
toString
(),
//
'show_name_setting' => 'WEB TITILE',
'show_name_setting'
=>
'WEB TITILE'
,
//
'name_setting' => 'web_title',
'name_setting'
=>
'web_title'
,
//
'value_setting' => 'NEW WPSS | PPTI Universitas Negeri Surabaya',
'value_setting'
=>
'NEW WPSS | PPTI Universitas Negeri Surabaya'
,
//
'userid_created' => 'Aan Choesni Herlingga',
'userid_created'
=>
'Aan Choesni Herlingga'
,
//
'userid_updated' => 'Aan Choesni Herlingga',
'userid_updated'
=>
'Aan Choesni Herlingga'
,
//
]);
]);
// LOGO
// LOGO
//
DB::table('swp_settings')->insert([
DB
::
table
(
'swp_settings'
)
->
insert
([
//
'id' => Str::uuid()->toString(),
'id'
=>
Str
::
uuid
()
->
toString
(),
//
'show_name_setting' => 'LOGO',
'show_name_setting'
=>
'LOGO'
,
//
'name_setting' => 'logo',
'name_setting'
=>
'logo'
,
//
'value_setting' => 'https://unesa.ac.id/assets/switcher/images/logo.png',
'value_setting'
=>
'https://unesa.ac.id/assets/switcher/images/logo.png'
,
//
'userid_created' => 'Aan Choesni Herlingga',
'userid_created'
=>
'Aan Choesni Herlingga'
,
//
'userid_updated' => 'Aan Choesni Herlingga',
'userid_updated'
=>
'Aan Choesni Herlingga'
,
//
]);
]);
// STYLE
// STYLE
//
DB::table('swp_settings')->insert([
DB
::
table
(
'swp_settings'
)
->
insert
([
//
'id' => Str::uuid()->toString(),
'id'
=>
Str
::
uuid
()
->
toString
(),
//
'show_name_setting' => 'STYLE',
'show_name_setting'
=>
'STYLE'
,
//
'name_setting' => 'style',
'name_setting'
=>
'style'
,
//
'value_setting' => 'style-wpss.css',
'value_setting'
=>
'style-wpss.css'
,
//
'userid_created' => 'Aan Choesni Herlingga',
'userid_created'
=>
'Aan Choesni Herlingga'
,
//
'userid_updated' => 'Aan Choesni Herlingga',
'userid_updated'
=>
'Aan Choesni Herlingga'
,
//
]);
]);
// ONE PAGE?
// ONE PAGE?
//
DB::table('swp_settings')->insert([
DB
::
table
(
'swp_settings'
)
->
insert
([
//
'id' => Str::uuid()->toString(),
'id'
=>
Str
::
uuid
()
->
toString
(),
//
'show_name_setting' => 'ONE PAGE?',
'show_name_setting'
=>
'ONE PAGE?'
,
//
'name_setting' => 'onepage',
'name_setting'
=>
'onepage'
,
//
'value_setting' => '1',
'value_setting'
=>
'1'
,
//
'userid_created' => 'Aan Choesni Herlingga',
'userid_created'
=>
'Aan Choesni Herlingga'
,
//
'userid_updated' => 'Aan Choesni Herlingga',
'userid_updated'
=>
'Aan Choesni Herlingga'
,
//
]);
]);
// EKSTERNAL STORAGE
// EKSTERNAL STORAGE
DB
::
table
(
'swp_setting'
)
->
insert
([
DB
::
table
(
'swp_setting
s
'
)
->
insert
([
'id'
=>
Str
::
uuid
()
->
toString
(),
'id'
=>
Str
::
uuid
()
->
toString
(),
'show_name_setting'
=>
'EKSTERNAL STORAGE'
,
'show_name_setting'
=>
'EKSTERNAL STORAGE'
,
'name_setting'
=>
'external_storage'
,
'name_setting'
=>
'external_storage'
,
...
@@ -100,7 +100,7 @@ class SettingsTableSeeder extends Seeder
...
@@ -100,7 +100,7 @@ class SettingsTableSeeder extends Seeder
]);
]);
// URL STORAGE
// URL STORAGE
DB
::
table
(
'swp_setting'
)
->
insert
([
DB
::
table
(
'swp_setting
s
'
)
->
insert
([
'id'
=>
Str
::
uuid
()
->
toString
(),
'id'
=>
Str
::
uuid
()
->
toString
(),
'show_name_setting'
=>
'URL STORAGE'
,
'show_name_setting'
=>
'URL STORAGE'
,
'name_setting'
=>
'url_static'
,
'name_setting'
=>
'url_static'
,
...
@@ -110,7 +110,7 @@ class SettingsTableSeeder extends Seeder
...
@@ -110,7 +110,7 @@ class SettingsTableSeeder extends Seeder
]);
]);
// AUTO TRANSLATE
// AUTO TRANSLATE
DB
::
table
(
'swp_setting'
)
->
insert
([
DB
::
table
(
'swp_setting
s
'
)
->
insert
([
'id'
=>
Str
::
uuid
()
->
toString
(),
'id'
=>
Str
::
uuid
()
->
toString
(),
'show_name_setting'
=>
'AUTO TRANSLATE'
,
'show_name_setting'
=>
'AUTO TRANSLATE'
,
'name_setting'
=>
'auto_translate'
,
'name_setting'
=>
'auto_translate'
,
...
@@ -120,7 +120,7 @@ class SettingsTableSeeder extends Seeder
...
@@ -120,7 +120,7 @@ class SettingsTableSeeder extends Seeder
]);
]);
// THEME
// THEME
DB
::
table
(
'swp_setting'
)
->
insert
([
DB
::
table
(
'swp_setting
s
'
)
->
insert
([
'id'
=>
Str
::
uuid
()
->
toString
(),
'id'
=>
Str
::
uuid
()
->
toString
(),
'show_name_setting'
=>
'THEME'
,
'show_name_setting'
=>
'THEME'
,
'name_setting'
=>
'theme'
,
'name_setting'
=>
'theme'
,
...
@@ -130,7 +130,7 @@ class SettingsTableSeeder extends Seeder
...
@@ -130,7 +130,7 @@ class SettingsTableSeeder extends Seeder
]);
]);
// LANGUAGE
// LANGUAGE
DB
::
table
(
'swp_setting'
)
->
insert
([
DB
::
table
(
'swp_setting
s
'
)
->
insert
([
'id'
=>
Str
::
uuid
()
->
toString
(),
'id'
=>
Str
::
uuid
()
->
toString
(),
'show_name_setting'
=>
'LANGUAGE'
,
'show_name_setting'
=>
'LANGUAGE'
,
'name_setting'
=>
'default_language'
,
'name_setting'
=>
'default_language'
,
...
@@ -140,7 +140,7 @@ class SettingsTableSeeder extends Seeder
...
@@ -140,7 +140,7 @@ class SettingsTableSeeder extends Seeder
]);
]);
// KEYWORD
// KEYWORD
DB
::
table
(
'swp_setting'
)
->
insert
([
DB
::
table
(
'swp_setting
s
'
)
->
insert
([
'id'
=>
Str
::
uuid
()
->
toString
(),
'id'
=>
Str
::
uuid
()
->
toString
(),
'show_name_setting'
=>
'KEYWORD'
,
'show_name_setting'
=>
'KEYWORD'
,
'name_setting'
=>
'default_keyword'
,
'name_setting'
=>
'default_keyword'
,
...
@@ -150,7 +150,7 @@ class SettingsTableSeeder extends Seeder
...
@@ -150,7 +150,7 @@ class SettingsTableSeeder extends Seeder
]);
]);
// LANGUAGE
// LANGUAGE
DB
::
table
(
'swp_setting'
)
->
insert
([
DB
::
table
(
'swp_setting
s
'
)
->
insert
([
'id'
=>
Str
::
uuid
()
->
toString
(),
'id'
=>
Str
::
uuid
()
->
toString
(),
'show_name_setting'
=>
'TEAM'
,
'show_name_setting'
=>
'TEAM'
,
'name_setting'
=>
'team'
,
'name_setting'
=>
'team'
,
...
...
database/seeds/UsersTableSeeder.php
View file @
2ed9d314
...
@@ -14,15 +14,15 @@ class UsersTableSeeder extends Seeder
...
@@ -14,15 +14,15 @@ class UsersTableSeeder extends Seeder
*/
*/
public
function
run
()
public
function
run
()
{
{
//
DB::table('users')->insert([
DB
::
table
(
'users'
)
->
insert
([
//
'id' => Str::uuid()->toString(),
'id'
=>
Str
::
uuid
()
->
toString
(),
//
'name' => 'Aan Choesni Herlingga',
'name'
=>
'Aan Choesni Herlingga'
,
//
'email' => 'aanchoesni@unesa.ac.id',
'email'
=>
'aanchoesni@unesa.ac.id'
,
//
'email_verified_at' => null,
'email_verified_at'
=>
null
,
//
'password' => Hash::make('anchuz2020'),
'password'
=>
Hash
::
make
(
'anchuz2020'
),
//
'remember_token' => null,
'remember_token'
=>
null
,
//
'role' => 'admin',
'role'
=>
'admin'
,
//
'is_active' => 1,
'is_active'
=>
1
,
//
]);
]);
}
}
}
}
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment