phcscriptcdnpro 2.1.0 → 3.0.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/app/assets/javascripts/phcscriptcdnpro/application.js +2 -5
- data/app/assets/stylesheets/phcscriptcdnpro/application.scss +15 -20
- data/app/controllers/phcscriptcdnpro/application_controller.rb +1 -19
- data/app/controllers/phcscriptcdnpro/script/authors_controller.rb +74 -0
- data/app/controllers/phcscriptcdnpro/script/extensions_controller.rb +65 -0
- data/app/controllers/phcscriptcdnpro/script/licences_controller.rb +65 -0
- data/app/controllers/phcscriptcdnpro/script/listings_controller.rb +65 -0
- data/app/controllers/phcscriptcdnpro/script/urls_controller.rb +74 -0
- data/app/controllers/phcscriptcdnpro/script/versions_controller.rb +65 -0
- data/app/models/phcscriptcdnpro/application_record.rb +2 -0
- data/app/models/phcscriptcdnpro/{scriptcdn.rb → script.rb} +4 -2
- data/app/models/phcscriptcdnpro/script/author.rb +10 -0
- data/app/models/phcscriptcdnpro/script/extension.rb +8 -0
- data/app/models/phcscriptcdnpro/script/licence.rb +4 -0
- data/app/models/phcscriptcdnpro/script/listing.rb +17 -0
- data/app/models/phcscriptcdnpro/script/url.rb +16 -0
- data/app/models/phcscriptcdnpro/script/version.rb +13 -0
- data/app/views/phcscriptcdnpro/{scriptcdn → script}/authors/_form.html.erb +14 -11
- data/app/views/phcscriptcdnpro/script/authors/edit.html.erb +32 -0
- data/app/views/phcscriptcdnpro/script/authors/index.html.erb +55 -0
- data/app/views/phcscriptcdnpro/script/authors/new.html.erb +32 -0
- data/app/views/phcscriptcdnpro/script/authors/show.html.erb +4 -0
- data/app/views/phcscriptcdnpro/script/extensions/_form.html.erb +22 -0
- data/app/views/phcscriptcdnpro/script/extensions/edit.html.erb +32 -0
- data/app/views/phcscriptcdnpro/script/extensions/index.html.erb +49 -0
- data/app/views/phcscriptcdnpro/script/extensions/new.html.erb +32 -0
- data/app/views/phcscriptcdnpro/script/extensions/show.html.erb +4 -0
- data/app/views/phcscriptcdnpro/script/licences/_form.html.erb +42 -0
- data/app/views/phcscriptcdnpro/script/licences/edit.html.erb +32 -0
- data/app/views/phcscriptcdnpro/script/licences/index.html.erb +59 -0
- data/app/views/phcscriptcdnpro/script/licences/new.html.erb +32 -0
- data/app/views/phcscriptcdnpro/script/licences/show.html.erb +4 -0
- data/app/views/phcscriptcdnpro/{scriptcdn/informations → script/listings}/_form.html.erb +20 -10
- data/app/views/phcscriptcdnpro/script/listings/edit.html.erb +31 -0
- data/app/views/phcscriptcdnpro/script/listings/index.html.erb +54 -0
- data/app/views/phcscriptcdnpro/script/listings/new.html.erb +31 -0
- data/app/views/phcscriptcdnpro/script/listings/show.html.erb +27 -0
- data/app/views/phcscriptcdnpro/script/urls/_form.html.erb +32 -0
- data/app/views/phcscriptcdnpro/script/urls/edit.html.erb +32 -0
- data/app/views/phcscriptcdnpro/script/urls/index.html.erb +51 -0
- data/app/views/phcscriptcdnpro/script/urls/new.html.erb +32 -0
- data/app/views/phcscriptcdnpro/script/urls/show.html.erb +4 -0
- data/app/views/phcscriptcdnpro/script/versions/_form.html.erb +12 -0
- data/app/views/phcscriptcdnpro/script/versions/edit.html.erb +32 -0
- data/app/views/phcscriptcdnpro/script/versions/index.html.erb +47 -0
- data/app/views/phcscriptcdnpro/script/versions/new.html.erb +32 -0
- data/app/views/phcscriptcdnpro/script/versions/show.html.erb +4 -0
- data/config/routes.rb +14 -16
- data/db/migrate/{20160704185337_create_phcscriptcdnpro_scriptcdn_information.rb → 20160821183652_create_phcscriptcdnpro_script_listings.rb} +14 -8
- data/db/migrate/{20160704185254_create_phcscriptcdnpro_scriptcdn_authors.rb → 20160821183714_create_phcscriptcdnpro_script_authors.rb} +6 -6
- data/db/migrate/20160821183735_create_phcscriptcdnpro_script_extensions.rb +19 -0
- data/db/migrate/20160821183805_create_phcscriptcdnpro_script_licences.rb +25 -0
- data/db/migrate/20160821183830_create_phcscriptcdnpro_script_urls.rb +23 -0
- data/db/migrate/20160821183946_create_phcscriptcdnpro_script_versions.rb +17 -0
- data/lib/phcscriptcdnpro/engine.rb +2 -0
- data/lib/phcscriptcdnpro/version.rb +1 -1
- metadata +73 -84
- data/app/assets/javascripts/phcscriptcdnpro/api/mains.js +0 -2
- data/app/assets/javascripts/phcscriptcdnpro/cdnsite/cdnpages.js +0 -2
- data/app/assets/javascripts/phcscriptcdnpro/scriptcdn/authors.js +0 -2
- data/app/assets/javascripts/phcscriptcdnpro/scriptcdn/information.js +0 -2
- data/app/assets/javascripts/phcscriptcdnpro/scriptcdn/mains.js +0 -2
- data/app/assets/javascripts/phcscriptcdnpro/scriptcdn/urls.js +0 -2
- data/app/assets/javascripts/phcscriptcdnpro/scriptcdn/versions.js +0 -2
- data/app/assets/stylesheets/phcscriptcdnpro/api/mains.scss +0 -3
- data/app/assets/stylesheets/phcscriptcdnpro/cdnsite/cdnpages.scss +0 -3
- data/app/assets/stylesheets/phcscriptcdnpro/custom.scss +0 -0
- data/app/assets/stylesheets/phcscriptcdnpro/scriptcdn/authors.scss +0 -3
- data/app/assets/stylesheets/phcscriptcdnpro/scriptcdn/information.scss +0 -3
- data/app/assets/stylesheets/phcscriptcdnpro/scriptcdn/mains.scss +0 -3
- data/app/assets/stylesheets/phcscriptcdnpro/scriptcdn/urls.scss +0 -3
- data/app/assets/stylesheets/phcscriptcdnpro/scriptcdn/versions.scss +0 -3
- data/app/assets/stylesheets/scaffolds.scss +0 -89
- data/app/controllers/phcscriptcdnpro/api/mains_controller.rb +0 -17
- data/app/controllers/phcscriptcdnpro/scriptcdn/authors_controller.rb +0 -70
- data/app/controllers/phcscriptcdnpro/scriptcdn/informations_controller.rb +0 -70
- data/app/controllers/phcscriptcdnpro/scriptcdn/mains_controller.rb +0 -63
- data/app/controllers/phcscriptcdnpro/scriptcdn/urls_controller.rb +0 -70
- data/app/controllers/phcscriptcdnpro/scriptcdn/versions_controller.rb +0 -70
- data/app/helpers/phcscriptcdnpro/api/mains_helper.rb +0 -4
- data/app/helpers/phcscriptcdnpro/cdnsite/cdnpages_helper.rb +0 -4
- data/app/helpers/phcscriptcdnpro/scriptcdn/authors_helper.rb +0 -4
- data/app/helpers/phcscriptcdnpro/scriptcdn/information_helper.rb +0 -4
- data/app/helpers/phcscriptcdnpro/scriptcdn/mains_helper.rb +0 -4
- data/app/helpers/phcscriptcdnpro/scriptcdn/urls_helper.rb +0 -4
- data/app/helpers/phcscriptcdnpro/scriptcdn/versions_helper.rb +0 -4
- data/app/models/phcscriptcdnpro/scriptcdn/author.rb +0 -8
- data/app/models/phcscriptcdnpro/scriptcdn/information.rb +0 -8
- data/app/models/phcscriptcdnpro/scriptcdn/main.rb +0 -11
- data/app/models/phcscriptcdnpro/scriptcdn/url.rb +0 -8
- data/app/models/phcscriptcdnpro/scriptcdn/version.rb +0 -8
- data/app/views/phcscriptcdnpro/api/mains/index.json.rabl +0 -18
- data/app/views/phcscriptcdnpro/api/mains/show.json.rabl +0 -18
- data/app/views/phcscriptcdnpro/scriptcdn/authors/_formpatch.html.erb +0 -29
- data/app/views/phcscriptcdnpro/scriptcdn/authors/edit.html.erb +0 -43
- data/app/views/phcscriptcdnpro/scriptcdn/authors/index.html.erb +0 -65
- data/app/views/phcscriptcdnpro/scriptcdn/authors/new.html.erb +0 -43
- data/app/views/phcscriptcdnpro/scriptcdn/informations/_formpatch.html.erb +0 -49
- data/app/views/phcscriptcdnpro/scriptcdn/informations/edit.html.erb +0 -43
- data/app/views/phcscriptcdnpro/scriptcdn/informations/index.html.erb +0 -69
- data/app/views/phcscriptcdnpro/scriptcdn/informations/new.html.erb +0 -43
- data/app/views/phcscriptcdnpro/scriptcdn/mains/_form.html.erb +0 -13
- data/app/views/phcscriptcdnpro/scriptcdn/mains/edit.html.erb +0 -42
- data/app/views/phcscriptcdnpro/scriptcdn/mains/index.html.erb +0 -61
- data/app/views/phcscriptcdnpro/scriptcdn/mains/new.html.erb +0 -42
- data/app/views/phcscriptcdnpro/scriptcdn/urls/_form.html.erb +0 -17
- data/app/views/phcscriptcdnpro/scriptcdn/urls/_formpatch.html.erb +0 -17
- data/app/views/phcscriptcdnpro/scriptcdn/urls/edit.html.erb +0 -43
- data/app/views/phcscriptcdnpro/scriptcdn/urls/index.html.erb +0 -62
- data/app/views/phcscriptcdnpro/scriptcdn/urls/new.html.erb +0 -43
- data/app/views/phcscriptcdnpro/scriptcdn/versions/_form.html.erb +0 -13
- data/app/views/phcscriptcdnpro/scriptcdn/versions/_formpatch.html.erb +0 -13
- data/app/views/phcscriptcdnpro/scriptcdn/versions/edit.html.erb +0 -43
- data/app/views/phcscriptcdnpro/scriptcdn/versions/index.html.erb +0 -63
- data/app/views/phcscriptcdnpro/scriptcdn/versions/new.html.erb +0 -43
- data/db/migrate/20160704185441_create_phcscriptcdnpro_scriptcdn_urls.rb +0 -19
- data/db/migrate/20160704185454_create_phcscriptcdnpro_scriptcdn_versions.rb +0 -17
- data/db/migrate/20160704190509_create_phcscriptcdnpro_scriptcdn_mains.rb +0 -17
@@ -0,0 +1,32 @@
|
|
1
|
+
<!-- Title System -->
|
2
|
+
<% phc_title "Script URL Manager" %>
|
3
|
+
<% phc_title_tagline "Update Script URL Information" %>
|
4
|
+
|
5
|
+
<!-- Page Header -->
|
6
|
+
<div class="row">
|
7
|
+
<div class="col-lg-12">
|
8
|
+
|
9
|
+
<!-- Bread Crumbs -->
|
10
|
+
<ol class="breadcrumb">
|
11
|
+
<li><%= link_to "Script Listings Index", script_listings_path %></li>
|
12
|
+
<li><%= link_to "URL Index", script_listing_urls_path %></li>
|
13
|
+
<li class="active"><%= yield(:phc_title_tagline) %></li>
|
14
|
+
</ol>
|
15
|
+
|
16
|
+
<!-- Page Title -->
|
17
|
+
<h3 class="page-title">
|
18
|
+
<%= yield(:phc_title) %> </br>
|
19
|
+
<small><%= yield(:phc_title_tagline) %></small>
|
20
|
+
</h3>
|
21
|
+
|
22
|
+
</div>
|
23
|
+
</div>
|
24
|
+
|
25
|
+
<!-- Main Content -->
|
26
|
+
<div class="row">
|
27
|
+
<div class="col-lg-12">
|
28
|
+
|
29
|
+
<%= render 'form', { form_url: script_listing_url_path } %>
|
30
|
+
|
31
|
+
</div>
|
32
|
+
</div>
|
@@ -0,0 +1,51 @@
|
|
1
|
+
<!-- Title System -->
|
2
|
+
<% phc_title "Script URL Manager" %>
|
3
|
+
<% phc_title_tagline "Script URL Index" %>
|
4
|
+
|
5
|
+
<!-- Page Header -->
|
6
|
+
<div class="row">
|
7
|
+
<div class="col-lg-12">
|
8
|
+
|
9
|
+
<!-- Bread Crumbs -->
|
10
|
+
<ol class="breadcrumb">
|
11
|
+
<li><%= link_to "Script Listings Index", script_listing_urls_path %></li>
|
12
|
+
<li class="active"><%= yield(:phc_title_tagline) %></li>
|
13
|
+
</ol>
|
14
|
+
|
15
|
+
<!-- Page Title -->
|
16
|
+
<h3 class="page-title">
|
17
|
+
<%= yield(:phc_title) %> </br>
|
18
|
+
<small><%= yield(:phc_title_tagline) %></small>
|
19
|
+
</h3>
|
20
|
+
|
21
|
+
</div>
|
22
|
+
</div>
|
23
|
+
|
24
|
+
<!-- Main Content -->
|
25
|
+
<div class="row">
|
26
|
+
<div class="col-lg-12">
|
27
|
+
|
28
|
+
<table class="table table-striped table-bordered table-advance table-hover">
|
29
|
+
<thead>
|
30
|
+
<tr>
|
31
|
+
<th>Script URL</th>
|
32
|
+
<th>Release Date</th>
|
33
|
+
<th>CDN Update Date</th>
|
34
|
+
</tr>
|
35
|
+
</thead>
|
36
|
+
|
37
|
+
<tbody>
|
38
|
+
<% @script_urls.each do |script_url| %>
|
39
|
+
<tr>
|
40
|
+
<td><%= link_to script_url.scripturl, script_listing_url_path(script_url.listing, script_url) %></td>
|
41
|
+
<td><%= link_to script_url.scripturlrelease, script_listing_url_path(script_url.listing, script_url) %></td>
|
42
|
+
<td><%= link_to script_url.scripturlcdnupdate, script_listing_url_path(script_url.listing, script_url) %></td>
|
43
|
+
</tr>
|
44
|
+
<% end %>
|
45
|
+
</tbody>
|
46
|
+
</table>
|
47
|
+
|
48
|
+
<%= link_to 'New Script Url', new_script_listing_url_path, class: "btn btn-primary" %>
|
49
|
+
|
50
|
+
</div>
|
51
|
+
</div>
|
@@ -0,0 +1,32 @@
|
|
1
|
+
<!-- Title System -->
|
2
|
+
<% phc_title "Script URL Manager" %>
|
3
|
+
<% phc_title_tagline "Create a New Script URL" %>
|
4
|
+
|
5
|
+
<!-- Page Header -->
|
6
|
+
<div class="row">
|
7
|
+
<div class="col-lg-12">
|
8
|
+
|
9
|
+
<!-- Bread Crumbs -->
|
10
|
+
<ol class="breadcrumb">
|
11
|
+
<li><%= link_to "Script Listings Index", script_listings_path %></li>
|
12
|
+
<li><%= link_to "URL Index", script_listing_urls_path %></li>
|
13
|
+
<li class="active"><%= yield(:phc_title_tagline) %></li>
|
14
|
+
</ol>
|
15
|
+
|
16
|
+
<!-- Page Title -->
|
17
|
+
<h3 class="page-title">
|
18
|
+
<%= yield(:phc_title) %> </br>
|
19
|
+
<small><%= yield(:phc_title_tagline) %></small>
|
20
|
+
</h3>
|
21
|
+
|
22
|
+
</div>
|
23
|
+
</div>
|
24
|
+
|
25
|
+
<!-- Main Content -->
|
26
|
+
<div class="row">
|
27
|
+
<div class="col-lg-12">
|
28
|
+
|
29
|
+
<%= render 'form', { form_url: script_listing_urls_path } %>
|
30
|
+
|
31
|
+
</div>
|
32
|
+
</div>
|
@@ -0,0 +1,4 @@
|
|
1
|
+
<div class="btn-group" role="group" aria-label="url_button_group">
|
2
|
+
<%= link_to 'Edit', edit_script_listing_url_path, class: "btn btn-primary" %>
|
3
|
+
<%= link_to 'Destroy', script_listing_url_path, method: :delete, data: { confirm: 'Are you sure?' }, class: "btn btn-primary" %>
|
4
|
+
</div>
|
@@ -0,0 +1,12 @@
|
|
1
|
+
<%= form_for(script_version) do |f| %>
|
2
|
+
|
3
|
+
<div class="form-group field_with_error">
|
4
|
+
<%= f.label :scriptversion, "Version Number" %>
|
5
|
+
<%= f.text_field :scriptversion, placeholder: "Version Number", class: "form-control" %>
|
6
|
+
</div>
|
7
|
+
|
8
|
+
<div class="actions">
|
9
|
+
<%= f.submit class: "btn btn-primary" %>
|
10
|
+
</div>
|
11
|
+
|
12
|
+
<% end %>
|
@@ -0,0 +1,32 @@
|
|
1
|
+
<!-- Title System -->
|
2
|
+
<% phc_title "Script Version" %>
|
3
|
+
<% phc_title_tagline "Update Script Version Information" %>
|
4
|
+
|
5
|
+
<!-- Page Header -->
|
6
|
+
<div class="row">
|
7
|
+
<div class="col-lg-12">
|
8
|
+
|
9
|
+
<!-- Bread Crumbs -->
|
10
|
+
<ol class="breadcrumb">
|
11
|
+
<li><%= link_to "Script Listings Index", script_listings_path %></li>
|
12
|
+
<li><%= link_to "Versions Index", script_versions_path %></li>
|
13
|
+
<li class="active"><%= yield(:phc_title_tagline) %></li>
|
14
|
+
</ol>
|
15
|
+
|
16
|
+
<!-- Page Title -->
|
17
|
+
<h3 class="page-title">
|
18
|
+
<%= yield(:phc_title) %> </br>
|
19
|
+
<small><%= yield(:phc_title_tagline) %></small>
|
20
|
+
</h3>
|
21
|
+
|
22
|
+
</div>
|
23
|
+
</div>
|
24
|
+
|
25
|
+
<!-- Main Content -->
|
26
|
+
<div class="row">
|
27
|
+
<div class="col-lg-12">
|
28
|
+
|
29
|
+
<%= render 'form', script_version: @script_version %>
|
30
|
+
|
31
|
+
</div>
|
32
|
+
</div>
|
@@ -0,0 +1,47 @@
|
|
1
|
+
<!-- Title System -->
|
2
|
+
<% phc_title "Script Version" %>
|
3
|
+
<% phc_title_tagline "Script Version Index" %>
|
4
|
+
|
5
|
+
<!-- Page Header -->
|
6
|
+
<div class="row">
|
7
|
+
<div class="col-lg-12">
|
8
|
+
|
9
|
+
<!-- Bread Crumbs -->
|
10
|
+
<ol class="breadcrumb">
|
11
|
+
<li><%= link_to "Script Listings Index", script_listings_path %></li>
|
12
|
+
<li class="active"><%= yield(:phc_title_tagline) %></li>
|
13
|
+
</ol>
|
14
|
+
|
15
|
+
<!-- Page Title -->
|
16
|
+
<h3 class="page-title">
|
17
|
+
<%= yield(:phc_title) %> </br>
|
18
|
+
<small><%= yield(:phc_title_tagline) %></small>
|
19
|
+
</h3>
|
20
|
+
|
21
|
+
</div>
|
22
|
+
</div>
|
23
|
+
|
24
|
+
<!-- Main Content -->
|
25
|
+
<div class="row">
|
26
|
+
<div class="col-lg-12">
|
27
|
+
|
28
|
+
<table class="table table-striped table-bordered table-advance table-hover">
|
29
|
+
<thead>
|
30
|
+
<tr>
|
31
|
+
<th>Script Version</th>
|
32
|
+
</tr>
|
33
|
+
</thead>
|
34
|
+
|
35
|
+
<tbody>
|
36
|
+
<% @script_versions.each do |script_version| %>
|
37
|
+
<tr>
|
38
|
+
<td><%= link_to script_version.scriptversion, script_version %></td>
|
39
|
+
</tr>
|
40
|
+
<% end %>
|
41
|
+
</tbody>
|
42
|
+
</table>
|
43
|
+
|
44
|
+
<%= link_to 'New Script Version', new_script_version_path, class: "btn btn-primary" %>
|
45
|
+
|
46
|
+
</div>
|
47
|
+
</div>
|
@@ -0,0 +1,32 @@
|
|
1
|
+
<!-- Title System -->
|
2
|
+
<% phc_title "Script Version" %>
|
3
|
+
<% phc_title_tagline "Add a Script Version Number" %>
|
4
|
+
|
5
|
+
<!-- Page Header -->
|
6
|
+
<div class="row">
|
7
|
+
<div class="col-lg-12">
|
8
|
+
|
9
|
+
<!-- Bread Crumbs -->
|
10
|
+
<ol class="breadcrumb">
|
11
|
+
<li><%= link_to "Script Listings Index", script_listings_path %></li>
|
12
|
+
<li><%= link_to "Versions Index", script_versions_path %></li>
|
13
|
+
<li class="active"><%= yield(:phc_title_tagline) %></li>
|
14
|
+
</ol>
|
15
|
+
|
16
|
+
<!-- Page Title -->
|
17
|
+
<h3 class="page-title">
|
18
|
+
<%= yield(:phc_title) %> </br>
|
19
|
+
<small><%= yield(:phc_title_tagline) %></small>
|
20
|
+
</h3>
|
21
|
+
|
22
|
+
</div>
|
23
|
+
</div>
|
24
|
+
|
25
|
+
<!-- Main Content -->
|
26
|
+
<div class="row">
|
27
|
+
<div class="col-lg-12">
|
28
|
+
|
29
|
+
<%= render 'form', script_version: @script_version %>
|
30
|
+
|
31
|
+
</div>
|
32
|
+
</div>
|
@@ -0,0 +1,4 @@
|
|
1
|
+
<div class="btn-group" role="group" aria-label="version_button_group">
|
2
|
+
<%= link_to 'Edit', edit_script_version_path(@script_version), class: "btn btn-primary" %>
|
3
|
+
<%= link_to 'Destroy', script_version_path(@script_version), method: :delete, data: { confirm: 'Are you sure?' }, class: "btn btn-primary" %>
|
4
|
+
</div>
|
data/config/routes.rb
CHANGED
@@ -1,34 +1,32 @@
|
|
1
1
|
Phcscriptcdnpro::Engine.routes.draw do
|
2
2
|
|
3
|
-
|
4
|
-
namespace :cdnsite do
|
5
|
-
|
3
|
+
namespace :frontend do
|
6
4
|
# Frontend Routes
|
7
5
|
resources :cdnpages
|
8
|
-
|
9
6
|
end
|
10
7
|
|
11
8
|
# Script CDN Listing System
|
12
|
-
namespace :
|
13
|
-
|
9
|
+
namespace :script do
|
14
10
|
# Main Script Module
|
15
|
-
resources :
|
16
|
-
resources :
|
17
|
-
resources :
|
18
|
-
resources :versions
|
19
|
-
resources :informations
|
11
|
+
resources :listings, class_name: 'Phcscriptcdn::Script::Listing' do
|
12
|
+
resources :urls, class_name: 'Phcscriptcdn::Script::Url'
|
13
|
+
resources :authors, class_name: 'Phcscriptcdn::Script::Author'
|
20
14
|
end
|
21
|
-
|
15
|
+
resources :extensions, class_name: 'Phcscriptcdn::Script::Extension'
|
16
|
+
resources :versions, class_name: 'Phcscriptcdn::Script::Version'
|
17
|
+
resources :licences, class_name: 'Phcscriptcdn::Script::Licence'
|
22
18
|
end
|
23
19
|
|
24
20
|
# Application API
|
25
21
|
namespace :api, :path => "", :constraints => {:subdomain => "api"} do
|
22
|
+
namespace :v1 do
|
26
23
|
|
27
|
-
|
28
|
-
|
29
|
-
|
30
|
-
|
24
|
+
# Routes for API
|
25
|
+
resources :mains, defaults: {format: 'json'}
|
26
|
+
resources :informations, defaults: {format: 'json'}
|
27
|
+
resources :versions, defaults: {format: 'json'}
|
31
28
|
|
29
|
+
end
|
32
30
|
end
|
33
31
|
|
34
32
|
end
|
@@ -1,26 +1,32 @@
|
|
1
|
-
class
|
1
|
+
class CreatePhcscriptcdnproScriptListings < ActiveRecord::Migration[5.0]
|
2
2
|
def change
|
3
|
-
|
3
|
+
|
4
|
+
create_table :phcscriptcdnpro_script_listings do |t|
|
4
5
|
|
5
6
|
t.string :scripttitle
|
6
7
|
t.text :scriptdescription
|
7
|
-
|
8
|
+
|
8
9
|
t.string :scriptwebsite
|
9
10
|
t.string :scripttwitter
|
10
11
|
t.string :scriptgithub
|
12
|
+
|
13
|
+
|
11
14
|
t.date :scriptinitialrelease
|
12
|
-
t.
|
13
|
-
t.
|
14
|
-
t.
|
15
|
+
t.date :scriptlastestrelease
|
16
|
+
t.date :scriptbetarelease
|
17
|
+
t.date :scriptlastestreleasecdn
|
15
18
|
|
16
|
-
t.
|
19
|
+
t.string :scriptstatus
|
17
20
|
|
18
21
|
t.string :user_id
|
19
22
|
t.string :membership_id
|
20
23
|
t.string :oganization_id
|
21
24
|
|
22
|
-
t.
|
25
|
+
t.references :version
|
26
|
+
|
27
|
+
t.timestamps
|
23
28
|
|
24
29
|
end
|
30
|
+
|
25
31
|
end
|
26
32
|
end
|
@@ -1,22 +1,22 @@
|
|
1
|
-
class
|
1
|
+
class CreatePhcscriptcdnproScriptAuthors < ActiveRecord::Migration[5.0]
|
2
2
|
def change
|
3
3
|
|
4
|
-
create_table :
|
5
|
-
|
4
|
+
create_table :phcscriptcdnpro_script_authors do |t|
|
5
|
+
|
6
6
|
t.string :authorfirstname
|
7
7
|
t.string :authorlastname
|
8
|
-
|
8
|
+
|
9
9
|
t.string :authorwebsite
|
10
10
|
t.string :authorgithub
|
11
11
|
t.string :authortwitter
|
12
12
|
|
13
|
-
t.references :
|
13
|
+
t.references :listing
|
14
14
|
|
15
15
|
t.string :user_id
|
16
16
|
t.string :membership_id
|
17
17
|
t.string :oganization_id
|
18
18
|
|
19
|
-
t.timestamps
|
19
|
+
t.timestamps
|
20
20
|
|
21
21
|
end
|
22
22
|
|
@@ -0,0 +1,19 @@
|
|
1
|
+
class CreatePhcscriptcdnproScriptExtensions < ActiveRecord::Migration[5.0]
|
2
|
+
def change
|
3
|
+
|
4
|
+
create_table :phcscriptcdnpro_script_extensions do |t|
|
5
|
+
|
6
|
+
t.string :scriptextensionname
|
7
|
+
t.text :scriptextensiondes
|
8
|
+
t.string :scriptextension
|
9
|
+
|
10
|
+
t.string :user_id
|
11
|
+
t.string :membership_id
|
12
|
+
t.string :oganization_id
|
13
|
+
|
14
|
+
t.timestamps
|
15
|
+
|
16
|
+
end
|
17
|
+
|
18
|
+
end
|
19
|
+
end
|
@@ -0,0 +1,25 @@
|
|
1
|
+
class CreatePhcscriptcdnproScriptLicences < ActiveRecord::Migration[5.0]
|
2
|
+
def change
|
3
|
+
|
4
|
+
create_table :phcscriptcdnpro_script_licences do |t|
|
5
|
+
|
6
|
+
t.string :lcncname
|
7
|
+
t.string :lcncdescript
|
8
|
+
|
9
|
+
t.string :lcnccomgpl
|
10
|
+
t.string :lcncarvlfsf
|
11
|
+
t.string :lcncarvlosi
|
12
|
+
t.string :lcncarvlcopyfree
|
13
|
+
t.string :lcncarvldebian
|
14
|
+
t.string :lcncarvlfedora
|
15
|
+
|
16
|
+
t.string :user_id
|
17
|
+
t.string :membership_id
|
18
|
+
t.string :oganization_id
|
19
|
+
|
20
|
+
t.timestamps
|
21
|
+
|
22
|
+
end
|
23
|
+
|
24
|
+
end
|
25
|
+
end
|
@@ -0,0 +1,23 @@
|
|
1
|
+
class CreatePhcscriptcdnproScriptUrls < ActiveRecord::Migration[5.0]
|
2
|
+
def change
|
3
|
+
|
4
|
+
create_table :phcscriptcdnpro_script_urls do |t|
|
5
|
+
|
6
|
+
t.string :scripturl
|
7
|
+
t.date :scripturlrelease
|
8
|
+
t.date :scripturlcdnupdate
|
9
|
+
|
10
|
+
t.references :listing
|
11
|
+
t.references :version
|
12
|
+
t.references :extension
|
13
|
+
|
14
|
+
t.string :user_id
|
15
|
+
t.string :membership_id
|
16
|
+
t.string :oganization_id
|
17
|
+
|
18
|
+
t.timestamps
|
19
|
+
|
20
|
+
end
|
21
|
+
|
22
|
+
end
|
23
|
+
end
|