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
56f749a9
Commit
56f749a9
authored
5 years ago
by
Aan Choesni Herlingga
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
create migration table
parent
d86796d6
Hide whitespace changes
Inline
Side-by-side
Showing
12 changed files
with
429 additions
and
6 deletions
+429
-6
database/migrations/2019_11_12_102154_create_table_categories.php
+4
-6
database/migrations/2019_11_12_111914_create_categories_file_table.php
+35
-0
database/migrations/2019_11_12_112102_create_design_table.php
+37
-0
database/migrations/2019_11_12_112610_create_files_table.php
+39
-0
database/migrations/2019_11_12_112907_create_footer_table.php
+37
-0
database/migrations/2019_11_12_113102_create_galeries_table.php
+37
-0
database/migrations/2019_11_12_113319_create_informations_table.php
+39
-0
database/migrations/2019_11_12_113519_create_menus_table.php
+41
-0
database/migrations/2019_11_12_113857_create_pages_table.php
+44
-0
database/migrations/2019_11_12_114222_create_posts_table.php
+44
-0
database/migrations/2019_11_12_114258_create_settings_table.php
+35
-0
database/migrations/2019_11_12_114437_create_sliders_table.php
+37
-0
No files found.
database/migrations/2019_11_12_102154_create_table_categories.php
View file @
56f749a9
...
@@ -16,9 +16,9 @@ class CreateTableCategories extends Migration
...
@@ -16,9 +16,9 @@ class CreateTableCategories extends Migration
Schema
::
create
(
'swp_categories'
,
function
(
Blueprint
$table
)
{
Schema
::
create
(
'swp_categories'
,
function
(
Blueprint
$table
)
{
$table
->
string
(
'id'
,
32
)
->
primary
();
$table
->
string
(
'id'
,
32
)
->
primary
();
$table
->
string
(
'name'
);
$table
->
string
(
'name'
);
$table
->
boolean
(
'is_active'
);
$table
->
boolean
(
'is_active'
)
->
nullable
()
;
$table
->
string
(
'userid_created'
,
32
);
$table
->
string
(
'userid_created'
,
32
)
->
nullable
()
;
$table
->
string
(
'userid_updated'
,
32
);
$table
->
string
(
'userid_updated'
,
32
)
->
nullable
()
;
$table
->
timestamps
();
$table
->
timestamps
();
});
});
}
}
...
@@ -30,8 +30,6 @@ class CreateTableCategories extends Migration
...
@@ -30,8 +30,6 @@ class CreateTableCategories extends Migration
*/
*/
public
function
down
()
public
function
down
()
{
{
Schema
::
table
(
'swp_categories'
,
function
(
Blueprint
$table
)
{
Schema
::
dropIfExists
(
'swp_categories'
);
//
});
}
}
}
}
This diff is collapsed.
Click to expand it.
database/migrations/2019_11_12_111914_create_categories_file_table.php
0 → 100644
View file @
56f749a9
<?php
use
Illuminate\Support\Facades\Schema
;
use
Illuminate\Database\Schema\Blueprint
;
use
Illuminate\Database\Migrations\Migration
;
class
CreateCategoriesFileTable
extends
Migration
{
/**
* Run the migrations.
*
* @return void
*/
public
function
up
()
{
Schema
::
create
(
'swp_categories_file'
,
function
(
Blueprint
$table
)
{
$table
->
string
(
'id'
,
32
)
->
primary
();
$table
->
string
(
'name'
);
$table
->
boolean
(
'is_active'
)
->
nullable
();
$table
->
string
(
'userid_created'
,
32
)
->
nullable
();
$table
->
string
(
'userid_updated'
,
32
)
->
nullable
();
$table
->
timestamps
();
});
}
/**
* Reverse the migrations.
*
* @return void
*/
public
function
down
()
{
Schema
::
dropIfExists
(
'swp_categories_file'
);
}
}
This diff is collapsed.
Click to expand it.
database/migrations/2019_11_12_112102_create_design_table.php
0 → 100644
View file @
56f749a9
<?php
use
Illuminate\Support\Facades\Schema
;
use
Illuminate\Database\Schema\Blueprint
;
use
Illuminate\Database\Migrations\Migration
;
class
CreateDesignTable
extends
Migration
{
/**
* Run the migrations.
*
* @return void
*/
public
function
up
()
{
Schema
::
create
(
'swp_design'
,
function
(
Blueprint
$table
)
{
$table
->
string
(
'id'
,
32
)
->
primary
();
$table
->
string
(
'name_design'
);
$table
->
string
(
'title_design'
)
->
nullable
();
$table
->
text
(
'value_design'
)
->
nullable
();
$table
->
integer
(
'urutan'
)
->
nullable
();
$table
->
string
(
'userid_created'
,
32
)
->
nullable
();
$table
->
string
(
'userid_updated'
,
32
)
->
nullable
();
$table
->
timestamps
();
});
}
/**
* Reverse the migrations.
*
* @return void
*/
public
function
down
()
{
Schema
::
dropIfExists
(
'swp_design'
);
}
}
This diff is collapsed.
Click to expand it.
database/migrations/2019_11_12_112610_create_files_table.php
0 → 100644
View file @
56f749a9
<?php
use
Illuminate\Support\Facades\Schema
;
use
Illuminate\Database\Schema\Blueprint
;
use
Illuminate\Database\Migrations\Migration
;
class
CreateFilesTable
extends
Migration
{
/**
* Run the migrations.
*
* @return void
*/
public
function
up
()
{
Schema
::
create
(
'=swp_files'
,
function
(
Blueprint
$table
)
{
$table
->
string
(
'id'
,
32
);
$table
->
string
(
'categories_file'
,
32
);
$table
->
string
(
'title'
);
$table
->
string
(
'file'
);
$table
->
boolean
(
'is_active'
)
->
nullable
();
$table
->
integer
(
'downloaded'
)
->
nullable
();
$table
->
string
(
'slug'
)
->
nullable
();
$table
->
string
(
'userid_created'
,
32
)
->
nullable
();
$table
->
string
(
'userid_updated'
,
32
)
->
nullable
();
$table
->
timestamps
();
});
}
/**
* Reverse the migrations.
*
* @return void
*/
public
function
down
()
{
Schema
::
dropIfExists
(
'=swp_files'
);
}
}
This diff is collapsed.
Click to expand it.
database/migrations/2019_11_12_112907_create_footer_table.php
0 → 100644
View file @
56f749a9
<?php
use
Illuminate\Support\Facades\Schema
;
use
Illuminate\Database\Schema\Blueprint
;
use
Illuminate\Database\Migrations\Migration
;
class
CreateFooterTable
extends
Migration
{
/**
* Run the migrations.
*
* @return void
*/
public
function
up
()
{
Schema
::
create
(
'swp_footer'
,
function
(
Blueprint
$table
)
{
$table
->
string
(
'id'
,
32
);
$table
->
text
(
'row1'
)
->
nullable
();
$table
->
text
(
'row2'
)
->
nullable
();
$table
->
text
(
'row3'
)
->
nullable
();
$table
->
text
(
'row4'
)
->
nullable
();
$table
->
string
(
'userid_created'
,
32
)
->
nullable
();
$table
->
string
(
'userid_updated'
,
32
)
->
nullable
();
$table
->
timestamps
();
});
}
/**
* Reverse the migrations.
*
* @return void
*/
public
function
down
()
{
Schema
::
dropIfExists
(
'swp_footer'
);
}
}
This diff is collapsed.
Click to expand it.
database/migrations/2019_11_12_113102_create_galeries_table.php
0 → 100644
View file @
56f749a9
<?php
use
Illuminate\Support\Facades\Schema
;
use
Illuminate\Database\Schema\Blueprint
;
use
Illuminate\Database\Migrations\Migration
;
class
CreateGaleriesTable
extends
Migration
{
/**
* Run the migrations.
*
* @return void
*/
public
function
up
()
{
Schema
::
create
(
'swp_galeries'
,
function
(
Blueprint
$table
)
{
$table
->
string
(
'id'
,
32
);
$table
->
string
(
'title'
);
$table
->
text
(
'decription'
)
->
nullable
();
$table
->
string
(
'images'
)
->
nullable
();
$table
->
string
(
'userid_created'
,
32
)
->
nullable
();
$table
->
string
(
'userid_updated'
,
32
)
->
nullable
();
$table
->
boolean
(
'is_active'
)
->
nullable
();
$table
->
timestamps
();
});
}
/**
* Reverse the migrations.
*
* @return void
*/
public
function
down
()
{
Schema
::
dropIfExists
(
'swp_galeries'
);
}
}
This diff is collapsed.
Click to expand it.
database/migrations/2019_11_12_113319_create_informations_table.php
0 → 100644
View file @
56f749a9
<?php
use
Illuminate\Support\Facades\Schema
;
use
Illuminate\Database\Schema\Blueprint
;
use
Illuminate\Database\Migrations\Migration
;
class
CreateInformationsTable
extends
Migration
{
/**
* Run the migrations.
*
* @return void
*/
public
function
up
()
{
Schema
::
create
(
'swp_informations'
,
function
(
Blueprint
$table
)
{
$table
->
string
(
'id'
,
32
);
$table
->
string
(
'title'
);
$table
->
text
(
'content'
)
->
nullable
();
$table
->
boolean
(
'info_status'
)
->
nullable
();
$table
->
integer
(
'viewer'
)
->
nullable
();
$table
->
string
(
'slug'
)
->
nullable
();
$table
->
date
(
'event_date'
)
->
nullable
();
$table
->
string
(
'userid_created'
,
32
)
->
nullable
();
$table
->
string
(
'userid_updated'
,
32
)
->
nullable
();
$table
->
timestamps
();
});
}
/**
* Reverse the migrations.
*
* @return void
*/
public
function
down
()
{
Schema
::
dropIfExists
(
'swp_informations'
);
}
}
This diff is collapsed.
Click to expand it.
database/migrations/2019_11_12_113519_create_menus_table.php
0 → 100644
View file @
56f749a9
<?php
use
Illuminate\Support\Facades\Schema
;
use
Illuminate\Database\Schema\Blueprint
;
use
Illuminate\Database\Migrations\Migration
;
class
CreateMenusTable
extends
Migration
{
/**
* Run the migrations.
*
* @return void
*/
public
function
up
()
{
Schema
::
create
(
'swp_menus'
,
function
(
Blueprint
$table
)
{
$table
->
string
(
'id'
,
32
);
$table
->
string
(
'name'
);
$table
->
string
(
'url'
)
->
nullable
();
$table
->
string
(
'mode'
)
->
nullable
();
$table
->
boolean
(
'status'
)
->
nullable
();
$table
->
integer
(
'parent'
)
->
nullable
();
$table
->
integer
(
'urutan'
)
->
nullable
();
$table
->
integer
(
'parentlevel'
)
->
nullable
();
$table
->
integer
(
'level'
)
->
nullable
();
$table
->
string
(
'userid_created'
,
32
)
->
nullable
();
$table
->
string
(
'userid_updated'
,
32
)
->
nullable
();
$table
->
timestamps
();
});
}
/**
* Reverse the migrations.
*
* @return void
*/
public
function
down
()
{
Schema
::
dropIfExists
(
'swp_menus'
);
}
}
This diff is collapsed.
Click to expand it.
database/migrations/2019_11_12_113857_create_pages_table.php
0 → 100644
View file @
56f749a9
<?php
use
Illuminate\Support\Facades\Schema
;
use
Illuminate\Database\Schema\Blueprint
;
use
Illuminate\Database\Migrations\Migration
;
class
CreatePagesTable
extends
Migration
{
/**
* Run the migrations.
*
* @return void
*/
public
function
up
()
{
Schema
::
create
(
'swp_pages'
,
function
(
Blueprint
$table
)
{
$table
->
string
(
'id'
,
32
);
$table
->
string
(
'title'
);
$table
->
text
(
'content'
)
->
nullable
();
$table
->
string
(
'categories'
,
32
);
$table
->
string
(
'thumbnail'
)
->
nullable
();
$table
->
timestamp
(
'post_date'
)
->
nullable
();
$table
->
boolean
(
'post_status'
)
->
nullable
();
$table
->
string
(
'posts_password'
)
->
nullable
();
$table
->
boolean
(
'comment_status'
)
->
nullable
();
$table
->
integer
(
'viewer'
)
->
nullable
();
$table
->
integer
(
'comment_count'
)
->
nullable
();
$table
->
string
(
'slug'
)
->
nullable
();
$table
->
string
(
'userid_created'
,
32
)
->
nullable
();
$table
->
string
(
'userid_updated'
,
32
)
->
nullable
();
$table
->
timestamps
();
});
}
/**
* Reverse the migrations.
*
* @return void
*/
public
function
down
()
{
Schema
::
dropIfExists
(
'swp_pages'
);
}
}
This diff is collapsed.
Click to expand it.
database/migrations/2019_11_12_114222_create_posts_table.php
0 → 100644
View file @
56f749a9
<?php
use
Illuminate\Support\Facades\Schema
;
use
Illuminate\Database\Schema\Blueprint
;
use
Illuminate\Database\Migrations\Migration
;
class
CreatePostsTable
extends
Migration
{
/**
* Run the migrations.
*
* @return void
*/
public
function
up
()
{
Schema
::
create
(
'swp_posts'
,
function
(
Blueprint
$table
)
{
$table
->
string
(
'id'
,
32
);
$table
->
string
(
'title'
);
$table
->
text
(
'content'
)
->
nullable
();
$table
->
string
(
'categories'
,
32
);
$table
->
string
(
'thumbnail'
)
->
nullable
();
$table
->
timestamp
(
'post_date'
)
->
nullable
();
$table
->
boolean
(
'post_status'
)
->
nullable
();
$table
->
string
(
'posts_password'
)
->
nullable
();
$table
->
boolean
(
'comment_status'
)
->
nullable
();
$table
->
integer
(
'viewer'
)
->
nullable
();
$table
->
integer
(
'comment_count'
)
->
nullable
();
$table
->
string
(
'slug'
)
->
nullable
();
$table
->
string
(
'userid_created'
,
32
)
->
nullable
();
$table
->
string
(
'userid_updated'
,
32
)
->
nullable
();
$table
->
timestamps
();
});
}
/**
* Reverse the migrations.
*
* @return void
*/
public
function
down
()
{
Schema
::
dropIfExists
(
'swp_posts'
);
}
}
This diff is collapsed.
Click to expand it.
database/migrations/2019_11_12_114258_create_settings_table.php
0 → 100644
View file @
56f749a9
<?php
use
Illuminate\Support\Facades\Schema
;
use
Illuminate\Database\Schema\Blueprint
;
use
Illuminate\Database\Migrations\Migration
;
class
CreateSettingsTable
extends
Migration
{
/**
* Run the migrations.
*
* @return void
*/
public
function
up
()
{
Schema
::
create
(
'swp_settings'
,
function
(
Blueprint
$table
)
{
$table
->
string
(
'id'
,
32
);
$table
->
string
(
'name_setting'
);
$table
->
string
(
'value_setting'
);
$table
->
string
(
'userid_created'
,
32
)
->
nullable
();
$table
->
string
(
'userid_updated'
,
32
)
->
nullable
();
$table
->
timestamps
();
});
}
/**
* Reverse the migrations.
*
* @return void
*/
public
function
down
()
{
Schema
::
dropIfExists
(
'swp_settings'
);
}
}
This diff is collapsed.
Click to expand it.
database/migrations/2019_11_12_114437_create_sliders_table.php
0 → 100644
View file @
56f749a9
<?php
use
Illuminate\Support\Facades\Schema
;
use
Illuminate\Database\Schema\Blueprint
;
use
Illuminate\Database\Migrations\Migration
;
class
CreateSlidersTable
extends
Migration
{
/**
* Run the migrations.
*
* @return void
*/
public
function
up
()
{
Schema
::
create
(
'swp_sliders'
,
function
(
Blueprint
$table
)
{
$table
->
string
(
'id'
,
32
);
$table
->
string
(
'title'
);
$table
->
string
(
'images'
)
->
nullable
();
$table
->
text
(
'content'
)
->
nullable
();
$table
->
boolean
(
'is_active'
)
->
nullable
();
$table
->
string
(
'userid_created'
,
32
)
->
nullable
();
$table
->
string
(
'userid_updated'
,
32
)
->
nullable
();
$table
->
timestamps
();
});
}
/**
* Reverse the migrations.
*
* @return void
*/
public
function
down
()
{
Schema
::
dropIfExists
(
'swp_sliders'
);
}
}
This diff is collapsed.
Click to expand it.
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