schemaless 0.0.3
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +7 -0
- data/README.md +93 -0
- data/Rakefile +18 -0
- data/lib/generators/schemaless/migrations/USAGE +8 -0
- data/lib/generators/schemaless/migrations/migrations_generator.rb +108 -0
- data/lib/generators/schemaless/migrations/templates/change_table.rb +34 -0
- data/lib/generators/schemaless/migrations/templates/create_table.rb +18 -0
- data/lib/generators/schemaless/setup/setup_generator.rb +17 -0
- data/lib/generators/schemaless/setup/templates/schemaless.rb +3 -0
- data/lib/schemaless/ar/fields.rb +76 -0
- data/lib/schemaless/ar/indexes.rb +46 -0
- data/lib/schemaless/ar/stubs.rb +15 -0
- data/lib/schemaless/field.rb +94 -0
- data/lib/schemaless/index.rb +59 -0
- data/lib/schemaless/railtie.rb +23 -0
- data/lib/schemaless/table.rb +95 -0
- data/lib/schemaless/version.rb +4 -0
- data/lib/schemaless/worker.rb +47 -0
- data/lib/schemaless.rb +21 -0
- data/lib/tasks/schemaless_tasks.rake +23 -0
- data/spec/dummy/README.rdoc +28 -0
- data/spec/dummy/Rakefile +6 -0
- data/spec/dummy/app/assets/javascripts/application.js +13 -0
- data/spec/dummy/app/assets/stylesheets/application.css +15 -0
- data/spec/dummy/app/controllers/application_controller.rb +5 -0
- data/spec/dummy/app/helpers/application_helper.rb +2 -0
- data/spec/dummy/app/models/bike.rb +18 -0
- data/spec/dummy/app/models/place.rb +8 -0
- data/spec/dummy/app/models/rider.rb +8 -0
- data/spec/dummy/app/models/user.rb +21 -0
- data/spec/dummy/app/views/layouts/application.html.erb +14 -0
- data/spec/dummy/bin/bundle +3 -0
- data/spec/dummy/bin/rails +4 -0
- data/spec/dummy/bin/rake +4 -0
- data/spec/dummy/config/application.rb +28 -0
- data/spec/dummy/config/boot.rb +5 -0
- data/spec/dummy/config/database.yml +25 -0
- data/spec/dummy/config/environment.rb +5 -0
- data/spec/dummy/config/environments/development.rb +37 -0
- data/spec/dummy/config/environments/production.rb +78 -0
- data/spec/dummy/config/environments/test.rb +39 -0
- data/spec/dummy/config/initializers/assets.rb +8 -0
- data/spec/dummy/config/initializers/backtrace_silencers.rb +7 -0
- data/spec/dummy/config/initializers/cookies_serializer.rb +3 -0
- data/spec/dummy/config/initializers/filter_parameter_logging.rb +4 -0
- data/spec/dummy/config/initializers/inflections.rb +16 -0
- data/spec/dummy/config/initializers/mime_types.rb +4 -0
- data/spec/dummy/config/initializers/session_store.rb +3 -0
- data/spec/dummy/config/initializers/wrap_parameters.rb +14 -0
- data/spec/dummy/config/locales/en.yml +23 -0
- data/spec/dummy/config/routes.rb +56 -0
- data/spec/dummy/config/secrets.yml +22 -0
- data/spec/dummy/config.ru +4 -0
- data/spec/dummy/db/development.sqlite3 +0 -0
- data/spec/dummy/db/migrate/20141202223732_create_bikes.rb +16 -0
- data/spec/dummy/db/migrate/20141202223750_create_places.rb +9 -0
- data/spec/dummy/db/migrate/20141202223751_create_riders.rb +10 -0
- data/spec/dummy/db/migrate/20141202223752_create_users.rb +8 -0
- data/spec/dummy/db/migrate/20141202223753_create_user_skills.rb +8 -0
- data/spec/dummy/db/migrate/20141202223754_create_user_extras.rb +8 -0
- data/spec/dummy/db/production.sqlite3 +0 -0
- data/spec/dummy/db/test.sqlite3 +0 -0
- data/spec/dummy/log/development.log +213 -0
- data/spec/dummy/log/test.log +185888 -0
- data/spec/dummy/public/404.html +67 -0
- data/spec/dummy/public/422.html +67 -0
- data/spec/dummy/public/500.html +66 -0
- data/spec/dummy/public/favicon.ico +0 -0
- data/spec/generators/schemaless/migrations/migration_generator_spec.rb +14 -0
- data/spec/locales/en.yml +15 -0
- data/spec/locales/pt.yml +27 -0
- data/spec/schemaless/ar/fields_spec.rb +45 -0
- data/spec/schemaless/ar/indexes_spec.rb +43 -0
- data/spec/schemaless/field_spec.rb +29 -0
- data/spec/schemaless/index_spec.rb +9 -0
- data/spec/schemaless/table_spec.rb +25 -0
- data/spec/schemaless/worker_spec.rb +57 -0
- data/spec/schemaless_spec.rb +15 -0
- data/spec/spec_helper.rb +57 -0
- data/spec/support/001_create_testing_structure.rb +36 -0
- metadata +309 -0
@@ -0,0 +1,23 @@
|
|
1
|
+
# Files in the config/locales directory are used for internationalization
|
2
|
+
# and are automatically loaded by Rails. If you want to use locales other
|
3
|
+
# than English, add the necessary files in this directory.
|
4
|
+
#
|
5
|
+
# To use the locales, use `I18n.t`:
|
6
|
+
#
|
7
|
+
# I18n.t 'hello'
|
8
|
+
#
|
9
|
+
# In views, this is aliased to just `t`:
|
10
|
+
#
|
11
|
+
# <%= t('hello') %>
|
12
|
+
#
|
13
|
+
# To use a different locale, set it with `I18n.locale`:
|
14
|
+
#
|
15
|
+
# I18n.locale = :es
|
16
|
+
#
|
17
|
+
# This would use the information in config/locales/es.yml.
|
18
|
+
#
|
19
|
+
# To learn more, please read the Rails Internationalization guide
|
20
|
+
# available at http://guides.rubyonrails.org/i18n.html.
|
21
|
+
|
22
|
+
en:
|
23
|
+
hello: "Hello world"
|
@@ -0,0 +1,56 @@
|
|
1
|
+
Rails.application.routes.draw do
|
2
|
+
# The priority is based upon order of creation: first created -> highest priority.
|
3
|
+
# See how all your routes lay out with "rake routes".
|
4
|
+
|
5
|
+
# You can have the root of your site routed with "root"
|
6
|
+
# root 'welcome#index'
|
7
|
+
|
8
|
+
# Example of regular route:
|
9
|
+
# get 'products/:id' => 'catalog#view'
|
10
|
+
|
11
|
+
# Example of named route that can be invoked with purchase_url(id: product.id)
|
12
|
+
# get 'products/:id/purchase' => 'catalog#purchase', as: :purchase
|
13
|
+
|
14
|
+
# Example resource route (maps HTTP verbs to controller actions automatically):
|
15
|
+
# resources :products
|
16
|
+
|
17
|
+
# Example resource route with options:
|
18
|
+
# resources :products do
|
19
|
+
# member do
|
20
|
+
# get 'short'
|
21
|
+
# post 'toggle'
|
22
|
+
# end
|
23
|
+
#
|
24
|
+
# collection do
|
25
|
+
# get 'sold'
|
26
|
+
# end
|
27
|
+
# end
|
28
|
+
|
29
|
+
# Example resource route with sub-resources:
|
30
|
+
# resources :products do
|
31
|
+
# resources :comments, :sales
|
32
|
+
# resource :seller
|
33
|
+
# end
|
34
|
+
|
35
|
+
# Example resource route with more complex sub-resources:
|
36
|
+
# resources :products do
|
37
|
+
# resources :comments
|
38
|
+
# resources :sales do
|
39
|
+
# get 'recent', on: :collection
|
40
|
+
# end
|
41
|
+
# end
|
42
|
+
|
43
|
+
# Example resource route with concerns:
|
44
|
+
# concern :toggleable do
|
45
|
+
# post 'toggle'
|
46
|
+
# end
|
47
|
+
# resources :posts, concerns: :toggleable
|
48
|
+
# resources :photos, concerns: :toggleable
|
49
|
+
|
50
|
+
# Example resource route within a namespace:
|
51
|
+
# namespace :admin do
|
52
|
+
# # Directs /admin/products/* to Admin::ProductsController
|
53
|
+
# # (app/controllers/admin/products_controller.rb)
|
54
|
+
# resources :products
|
55
|
+
# end
|
56
|
+
end
|
@@ -0,0 +1,22 @@
|
|
1
|
+
# Be sure to restart your server when you modify this file.
|
2
|
+
|
3
|
+
# Your secret key is used for verifying the integrity of signed cookies.
|
4
|
+
# If you change this key, all old signed cookies will become invalid!
|
5
|
+
|
6
|
+
# Make sure the secret is at least 30 characters and all random,
|
7
|
+
# no regular words or you'll be exposed to dictionary attacks.
|
8
|
+
# You can use `rake secret` to generate a secure secret key.
|
9
|
+
|
10
|
+
# Make sure the secrets in this file are kept private
|
11
|
+
# if you're sharing your code publicly.
|
12
|
+
|
13
|
+
development:
|
14
|
+
secret_key_base: a170636f38f3c689515afc87597762ab494c3c5e9ad629bc4b4f61e55b32cdd716ed73c6944fbeb1d7803287cdb6d6be19b56428a47070f4117fe3216966175d
|
15
|
+
|
16
|
+
test:
|
17
|
+
secret_key_base: 86478f5bef137f1fc10068b5e49f3da56782c8d716028284fead2cab49532bdffd92e8d839d605f78b1cde1505028bf053bb914449cec7399edf6169ddfc12a5
|
18
|
+
|
19
|
+
# Do not keep production secrets in the repository,
|
20
|
+
# instead read values from the environment.
|
21
|
+
production:
|
22
|
+
secret_key_base: <%= ENV["SECRET_KEY_BASE"] %>
|
File without changes
|
@@ -0,0 +1,16 @@
|
|
1
|
+
class CreateBikes < ActiveRecord::Migration
|
2
|
+
def change
|
3
|
+
create_table :bikes do |t|
|
4
|
+
t.string :name, null: true, limit: 255
|
5
|
+
t.integer :cylinders, null: true
|
6
|
+
t.integer :rpm, null: true
|
7
|
+
t.integer :cc, null: true
|
8
|
+
t.integer :user_id, null: true
|
9
|
+
t.timestamp :created_at, null: true
|
10
|
+
t.timestamp :updated_at, null: true
|
11
|
+
end
|
12
|
+
add_index :bikes, :cylinders
|
13
|
+
add_index :bikes, :name
|
14
|
+
add_index :bikes, :cc
|
15
|
+
end
|
16
|
+
end
|
File without changes
|
File without changes
|
@@ -0,0 +1,213 @@
|
|
1
|
+
[1m[36mUser Load (0.2ms)[0m [1mSELECT "users".* FROM "users" ORDER BY "users"."id" ASC LIMIT 1[0m
|
2
|
+
SQLite3::SQLException: no such table: users: SELECT "users".* FROM "users" ORDER BY "users"."id" ASC LIMIT 1
|
3
|
+
[1m[36mUser Load (0.3ms)[0m [1mSELECT "users".* FROM "users" ORDER BY "users"."id" ASC LIMIT 1[0m
|
4
|
+
SQLite3::SQLException: no such table: users: SELECT "users".* FROM "users" ORDER BY "users"."id" ASC LIMIT 1
|
5
|
+
[1m[36mUser Load (0.3ms)[0m [1mSELECT "users".* FROM "users" ORDER BY "users"."id" ASC LIMIT 1[0m
|
6
|
+
SQLite3::SQLException: no such table: users: SELECT "users".* FROM "users" ORDER BY "users"."id" ASC LIMIT 1
|
7
|
+
[1m[35mUser Load (0.2ms)[0m SELECT "users".* FROM "users" ORDER BY "users"."id" ASC LIMIT 1
|
8
|
+
SQLite3::SQLException: no such table: users: SELECT "users".* FROM "users" ORDER BY "users"."id" ASC LIMIT 1
|
9
|
+
[1m[36mUser Load (0.3ms)[0m [1mSELECT "users".* FROM "users" ORDER BY "users"."id" ASC LIMIT 1[0m
|
10
|
+
SQLite3::SQLException: no such table: users: SELECT "users".* FROM "users" ORDER BY "users"."id" ASC LIMIT 1
|
11
|
+
[1m[35m (13.8ms)[0m CREATE TABLE "bikes" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL)
|
12
|
+
[1m[36m (12.7ms)[0m [1mCREATE TABLE "places" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL) [0m
|
13
|
+
[1m[35m (12.6ms)[0m CREATE TABLE "users" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL)
|
14
|
+
[1m[36m (12.3ms)[0m [1mCREATE TABLE "user_skills" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL) [0m
|
15
|
+
[1m[35m (18.6ms)[0m CREATE TABLE "user_extras" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL)
|
16
|
+
[1m[36m (0.3ms)[0m [1mCREATE TABLE "bikes" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL) [0m
|
17
|
+
SQLite3::SQLException: table "bikes" already exists: CREATE TABLE "bikes" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL)
|
18
|
+
[1m[36m (13.9ms)[0m [1mALTER TABLE "bikes" ADD "name" varchar(255)[0m
|
19
|
+
[1m[35m (12.8ms)[0m ALTER TABLE "bikes" ADD "cylinders" integer
|
20
|
+
[1m[36m (11.7ms)[0m [1mALTER TABLE "bikes" ADD "cc" integer[0m
|
21
|
+
[1m[35m (12.0ms)[0m ALTER TABLE "bikes" ADD "user_id" integer
|
22
|
+
[1m[36m (18.2ms)[0m [1mALTER TABLE "places" ADD "name" varchar(255)[0m
|
23
|
+
[1m[35m (12.6ms)[0m ALTER TABLE "places" ADD "geom" varchar(255)
|
24
|
+
[1m[36m (17.5ms)[0m [1mALTER TABLE "users" ADD "name" varchar(255)[0m
|
25
|
+
[1m[35m (18.1ms)[0m ALTER TABLE "users" ADD "number" integer
|
26
|
+
[1m[36m (12.9ms)[0m [1mALTER TABLE "user_skills" ADD "kind" varchar(255)[0m
|
27
|
+
[1m[35m (12.0ms)[0m ALTER TABLE "user_skills" ADD "user_id" integer
|
28
|
+
[1m[36m (11.6ms)[0m [1mALTER TABLE "user_extras" ADD "key" varchar(255)[0m
|
29
|
+
[1m[35m (12.5ms)[0m ALTER TABLE "user_extras" ADD "user_id" integer
|
30
|
+
[1m[36m (27.6ms)[0m [1mCREATE TABLE "bikes" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL) [0m
|
31
|
+
[1m[35m (12.5ms)[0m CREATE TABLE "places" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL)
|
32
|
+
[1m[36m (12.8ms)[0m [1mCREATE TABLE "users" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL) [0m
|
33
|
+
[1m[35m (18.4ms)[0m CREATE TABLE "user_skills" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL)
|
34
|
+
[1m[36m (12.7ms)[0m [1mCREATE TABLE "user_extras" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL) [0m
|
35
|
+
[1m[35m (0.2ms)[0m CREATE TABLE "bikes" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL)
|
36
|
+
SQLite3::SQLException: table "bikes" already exists: CREATE TABLE "bikes" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL)
|
37
|
+
[1m[36m (20.2ms)[0m [1mALTER TABLE "bikes" ADD "name" varchar(255)[0m
|
38
|
+
[1m[35m (12.4ms)[0m ALTER TABLE "bikes" ADD "cylinders" integer
|
39
|
+
[1m[36m (12.8ms)[0m [1mALTER TABLE "bikes" ADD "cc" integer[0m
|
40
|
+
[1m[35m (12.9ms)[0m ALTER TABLE "bikes" ADD "user_id" integer
|
41
|
+
[1m[36m (17.6ms)[0m [1mALTER TABLE "places" ADD "name" varchar(255)[0m
|
42
|
+
[1m[35m (18.7ms)[0m ALTER TABLE "places" ADD "geom" varchar(255)
|
43
|
+
[1m[36m (13.3ms)[0m [1mALTER TABLE "users" ADD "name" varchar(255)[0m
|
44
|
+
[1m[35m (17.8ms)[0m ALTER TABLE "users" ADD "number" integer
|
45
|
+
[1m[36m (19.3ms)[0m [1mALTER TABLE "user_skills" ADD "kind" varchar(255)[0m
|
46
|
+
[1m[35m (12.3ms)[0m ALTER TABLE "user_skills" ADD "user_id" integer
|
47
|
+
[1m[36m (12.8ms)[0m [1mALTER TABLE "user_extras" ADD "key" varchar(255)[0m
|
48
|
+
[1m[35m (13.3ms)[0m ALTER TABLE "user_extras" ADD "user_id" integer
|
49
|
+
[1m[36m (15.5ms)[0m [1mCREATE TABLE "bikes" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL) [0m
|
50
|
+
[1m[35m (13.1ms)[0m CREATE TABLE "places" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL)
|
51
|
+
[1m[36m (19.6ms)[0m [1mCREATE TABLE "users" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL) [0m
|
52
|
+
[1m[35m (14.5ms)[0m CREATE TABLE "user_skills" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL)
|
53
|
+
[1m[36m (13.1ms)[0m [1mCREATE TABLE "user_extras" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL) [0m
|
54
|
+
[1m[35m (0.2ms)[0m CREATE TABLE "bikes" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL)
|
55
|
+
SQLite3::SQLException: table "bikes" already exists: CREATE TABLE "bikes" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL)
|
56
|
+
[1m[36m (14.0ms)[0m [1mALTER TABLE "bikes" ADD "name" varchar(255)[0m
|
57
|
+
[1m[35m (12.2ms)[0m ALTER TABLE "bikes" ADD "cylinders" integer
|
58
|
+
[1m[36m (11.8ms)[0m [1mALTER TABLE "bikes" ADD "cc" integer[0m
|
59
|
+
[1m[35m (17.1ms)[0m ALTER TABLE "bikes" ADD "user_id" integer
|
60
|
+
[1m[36m (11.9ms)[0m [1mALTER TABLE "places" ADD "name" varchar(255)[0m
|
61
|
+
[1m[35m (12.3ms)[0m ALTER TABLE "places" ADD "geom" varchar(255)
|
62
|
+
[1m[36m (17.8ms)[0m [1mALTER TABLE "users" ADD "name" varchar(255)[0m
|
63
|
+
[1m[35m (17.8ms)[0m ALTER TABLE "users" ADD "number" integer
|
64
|
+
[1m[36m (11.5ms)[0m [1mALTER TABLE "user_skills" ADD "kind" varchar(255)[0m
|
65
|
+
[1m[35m (18.5ms)[0m ALTER TABLE "user_skills" ADD "user_id" integer
|
66
|
+
[1m[36m (12.0ms)[0m [1mALTER TABLE "user_extras" ADD "key" varchar(255)[0m
|
67
|
+
[1m[35m (12.5ms)[0m ALTER TABLE "user_extras" ADD "user_id" integer
|
68
|
+
[1m[36m (16.8ms)[0m [1mCREATE TABLE "bikes" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL) [0m
|
69
|
+
[1m[35m (14.3ms)[0m CREATE TABLE "places" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL)
|
70
|
+
[1m[36m (14.2ms)[0m [1mCREATE TABLE "users" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL) [0m
|
71
|
+
[1m[35m (13.4ms)[0m CREATE TABLE "user_skills" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL)
|
72
|
+
[1m[36m (12.6ms)[0m [1mCREATE TABLE "user_extras" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL) [0m
|
73
|
+
[1m[35m (0.2ms)[0m CREATE TABLE "bikes" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL)
|
74
|
+
SQLite3::SQLException: table "bikes" already exists: CREATE TABLE "bikes" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL)
|
75
|
+
[1m[36m (26.7ms)[0m [1mCREATE TABLE "bikes" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL) [0m
|
76
|
+
[1m[35m (18.3ms)[0m CREATE TABLE "places" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL)
|
77
|
+
[1m[36m (19.2ms)[0m [1mCREATE TABLE "users" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL) [0m
|
78
|
+
[1m[35m (19.0ms)[0m CREATE TABLE "user_skills" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL)
|
79
|
+
[1m[36m (12.8ms)[0m [1mCREATE TABLE "user_extras" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL) [0m
|
80
|
+
[1m[35m (0.3ms)[0m CREATE TABLE "bikes" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL)
|
81
|
+
SQLite3::SQLException: table "bikes" already exists: CREATE TABLE "bikes" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL)
|
82
|
+
[1m[36m (14.2ms)[0m [1mALTER TABLE "bikes" ADD "name" varchar(255)[0m
|
83
|
+
[1m[35m (13.4ms)[0m ALTER TABLE "bikes" ADD "cylinders" integer
|
84
|
+
[1m[36m (17.1ms)[0m [1mALTER TABLE "bikes" ADD "cc" integer[0m
|
85
|
+
[1m[35m (11.7ms)[0m ALTER TABLE "bikes" ADD "user_id" integer
|
86
|
+
[1m[36m (17.5ms)[0m [1mALTER TABLE "places" ADD "name" varchar(255)[0m
|
87
|
+
[1m[35m (18.9ms)[0m ALTER TABLE "places" ADD "geom" varchar(255)
|
88
|
+
[1m[36m (18.8ms)[0m [1mALTER TABLE "users" ADD "name" varchar(255)[0m
|
89
|
+
[1m[35m (18.6ms)[0m ALTER TABLE "users" ADD "number" integer
|
90
|
+
[1m[36m (12.3ms)[0m [1mALTER TABLE "user_skills" ADD "kind" varchar(255)[0m
|
91
|
+
[1m[35m (11.6ms)[0m ALTER TABLE "user_skills" ADD "user_id" integer
|
92
|
+
[1m[36m (13.2ms)[0m [1mALTER TABLE "user_extras" ADD "key" varchar(255)[0m
|
93
|
+
[1m[35m (12.1ms)[0m ALTER TABLE "user_extras" ADD "user_id" integer
|
94
|
+
[1m[36m (15.8ms)[0m [1mCREATE TABLE "bikes" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL) [0m
|
95
|
+
[1m[35m (11.8ms)[0m CREATE TABLE "places" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL)
|
96
|
+
[1m[36m (16.6ms)[0m [1mCREATE TABLE "users" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL) [0m
|
97
|
+
[1m[35m (12.0ms)[0m CREATE TABLE "user_skills" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL)
|
98
|
+
[1m[36m (18.1ms)[0m [1mCREATE TABLE "user_extras" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL) [0m
|
99
|
+
[1m[35m (0.1ms)[0m CREATE TABLE "bikes" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL)
|
100
|
+
SQLite3::SQLException: table "bikes" already exists: CREATE TABLE "bikes" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL)
|
101
|
+
[1m[36m (14.1ms)[0m [1mALTER TABLE "bikes" ADD "name" varchar(255)[0m
|
102
|
+
[1m[35m (11.7ms)[0m ALTER TABLE "bikes" ADD "cylinders" integer
|
103
|
+
[1m[36m (12.5ms)[0m [1mALTER TABLE "bikes" ADD "cc" integer[0m
|
104
|
+
[1m[35m (17.1ms)[0m ALTER TABLE "bikes" ADD "user_id" integer
|
105
|
+
[1m[36m (11.7ms)[0m [1mALTER TABLE "places" ADD "name" varchar(255)[0m
|
106
|
+
[1m[35m (12.6ms)[0m ALTER TABLE "places" ADD "geom" varchar(255)
|
107
|
+
[1m[36m (16.9ms)[0m [1mALTER TABLE "users" ADD "name" varchar(255)[0m
|
108
|
+
[1m[35m (12.8ms)[0m ALTER TABLE "users" ADD "number" integer
|
109
|
+
[1m[36m (12.3ms)[0m [1mALTER TABLE "user_skills" ADD "kind" varchar(255)[0m
|
110
|
+
[1m[35m (12.5ms)[0m ALTER TABLE "user_skills" ADD "user_id" integer
|
111
|
+
[1m[36m (18.0ms)[0m [1mALTER TABLE "user_extras" ADD "key" varchar(255)[0m
|
112
|
+
[1m[35m (18.1ms)[0m ALTER TABLE "user_extras" ADD "user_id" integer
|
113
|
+
[1m[36m (14.6ms)[0m [1mCREATE TABLE "bikes" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL) [0m
|
114
|
+
[1m[35m (19.3ms)[0m CREATE TABLE "places" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL)
|
115
|
+
[1m[36m (12.9ms)[0m [1mCREATE TABLE "users" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL) [0m
|
116
|
+
[1m[35m (11.5ms)[0m CREATE TABLE "user_skills" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL)
|
117
|
+
[1m[36m (18.4ms)[0m [1mCREATE TABLE "user_extras" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL) [0m
|
118
|
+
[1m[35m (0.2ms)[0m CREATE TABLE "bikes" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL)
|
119
|
+
SQLite3::SQLException: table "bikes" already exists: CREATE TABLE "bikes" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL)
|
120
|
+
[1m[36m (13.5ms)[0m [1mALTER TABLE "bikes" ADD "name" varchar(255)[0m
|
121
|
+
[1m[35m (11.8ms)[0m ALTER TABLE "bikes" ADD "cylinders" integer
|
122
|
+
[1m[36m (18.4ms)[0m [1mALTER TABLE "bikes" ADD "cc" integer[0m
|
123
|
+
[1m[35m (29.3ms)[0m ALTER TABLE "bikes" ADD "user_id" integer
|
124
|
+
[1m[36m (13.5ms)[0m [1mALTER TABLE "places" ADD "name" varchar(255)[0m
|
125
|
+
[1m[35m (12.7ms)[0m ALTER TABLE "places" ADD "geom" varchar(255)
|
126
|
+
[1m[36m (12.7ms)[0m [1mALTER TABLE "users" ADD "name" varchar(255)[0m
|
127
|
+
[1m[35m (13.1ms)[0m ALTER TABLE "users" ADD "number" integer
|
128
|
+
[1m[36m (20.0ms)[0m [1mALTER TABLE "user_skills" ADD "kind" varchar(255)[0m
|
129
|
+
[1m[35m (18.4ms)[0m ALTER TABLE "user_skills" ADD "user_id" integer
|
130
|
+
[1m[36m (11.5ms)[0m [1mALTER TABLE "user_extras" ADD "key" varchar(255)[0m
|
131
|
+
[1m[35m (12.5ms)[0m ALTER TABLE "user_extras" ADD "user_id" integer
|
132
|
+
[1m[36m (15.4ms)[0m [1mCREATE TABLE "bikes" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL) [0m
|
133
|
+
[1m[35m (13.1ms)[0m CREATE TABLE "places" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL)
|
134
|
+
[1m[36m (20.1ms)[0m [1mCREATE TABLE "users" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL) [0m
|
135
|
+
[1m[35m (13.2ms)[0m CREATE TABLE "user_skills" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL)
|
136
|
+
[1m[36m (19.7ms)[0m [1mCREATE TABLE "user_extras" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL) [0m
|
137
|
+
[1m[35m (0.3ms)[0m CREATE TABLE "bikes" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL)
|
138
|
+
SQLite3::SQLException: table "bikes" already exists: CREATE TABLE "bikes" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL)
|
139
|
+
[1m[36m (20.8ms)[0m [1mCREATE TABLE "bikes" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL) [0m
|
140
|
+
[1m[35m (12.7ms)[0m CREATE TABLE "places" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL)
|
141
|
+
[1m[36m (12.6ms)[0m [1mCREATE TABLE "users" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL) [0m
|
142
|
+
[1m[35m (12.7ms)[0m CREATE TABLE "user_skills" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL)
|
143
|
+
[1m[36m (13.2ms)[0m [1mCREATE TABLE "user_extras" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL) [0m
|
144
|
+
[1m[35m (0.2ms)[0m CREATE TABLE "bikes" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL)
|
145
|
+
SQLite3::SQLException: table "bikes" already exists: CREATE TABLE "bikes" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL)
|
146
|
+
[1m[36m (14.3ms)[0m [1mCREATE TABLE "bikes" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL) [0m
|
147
|
+
[1m[35m (17.6ms)[0m CREATE TABLE "places" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL)
|
148
|
+
[1m[36m (12.7ms)[0m [1mCREATE TABLE "users" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL) [0m
|
149
|
+
[1m[35m (12.1ms)[0m CREATE TABLE "user_skills" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL)
|
150
|
+
[1m[36m (18.1ms)[0m [1mCREATE TABLE "user_extras" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL) [0m
|
151
|
+
[1m[35m (17.0ms)[0m ALTER TABLE "bikes" ADD "name" varchar(255)
|
152
|
+
[1m[36m (17.6ms)[0m [1mALTER TABLE "bikes" ADD "cylinders" integer[0m
|
153
|
+
[1m[35m (11.7ms)[0m ALTER TABLE "bikes" ADD "cc" integer
|
154
|
+
[1m[36m (12.1ms)[0m [1mALTER TABLE "bikes" ADD "user_id" integer[0m
|
155
|
+
[1m[35m (18.8ms)[0m ALTER TABLE "places" ADD "name" varchar(255)
|
156
|
+
[1m[36m (12.4ms)[0m [1mALTER TABLE "places" ADD "geom" varchar(255)[0m
|
157
|
+
[1m[35m (11.7ms)[0m ALTER TABLE "users" ADD "name" varchar(255)
|
158
|
+
[1m[36m (13.5ms)[0m [1mALTER TABLE "users" ADD "number" integer[0m
|
159
|
+
[1m[35m (18.7ms)[0m ALTER TABLE "user_skills" ADD "kind" varchar(255)
|
160
|
+
[1m[36m (13.4ms)[0m [1mALTER TABLE "user_skills" ADD "user_id" integer[0m
|
161
|
+
[1m[35m (12.7ms)[0m ALTER TABLE "user_extras" ADD "key" varchar(255)
|
162
|
+
[1m[36m (24.7ms)[0m [1mALTER TABLE "user_extras" ADD "user_id" integer[0m
|
163
|
+
[1m[36m (15.5ms)[0m [1mCREATE TABLE "bikes" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL) [0m
|
164
|
+
[1m[35m (18.2ms)[0m CREATE TABLE "places" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL)
|
165
|
+
[1m[36m (18.2ms)[0m [1mCREATE TABLE "users" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL) [0m
|
166
|
+
[1m[35m (12.6ms)[0m CREATE TABLE "user_skills" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL)
|
167
|
+
[1m[36m (12.2ms)[0m [1mCREATE TABLE "user_extras" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL) [0m
|
168
|
+
[1m[35m (12.7ms)[0m ALTER TABLE "bikes" ADD "name" varchar(255)
|
169
|
+
[1m[36m (12.3ms)[0m [1mALTER TABLE "bikes" ADD "cylinders" integer[0m
|
170
|
+
[1m[35m (12.8ms)[0m ALTER TABLE "bikes" ADD "cc" integer
|
171
|
+
[1m[36m (20.0ms)[0m [1mALTER TABLE "bikes" ADD "user_id" integer[0m
|
172
|
+
[1m[35m (18.2ms)[0m ALTER TABLE "places" ADD "name" varchar(255)
|
173
|
+
[1m[36m (11.3ms)[0m [1mALTER TABLE "places" ADD "geom" varchar(255)[0m
|
174
|
+
[1m[35m (12.0ms)[0m ALTER TABLE "users" ADD "name" varchar(255)
|
175
|
+
[1m[36m (18.8ms)[0m [1mALTER TABLE "users" ADD "number" integer[0m
|
176
|
+
[1m[35m (13.3ms)[0m ALTER TABLE "user_skills" ADD "kind" varchar(255)
|
177
|
+
[1m[36m (12.9ms)[0m [1mALTER TABLE "user_skills" ADD "user_id" integer[0m
|
178
|
+
[1m[35m (13.2ms)[0m ALTER TABLE "user_extras" ADD "key" varchar(255)
|
179
|
+
[1m[36m (12.9ms)[0m [1mALTER TABLE "user_extras" ADD "user_id" integer[0m
|
180
|
+
[1m[36m (15.3ms)[0m [1mCREATE TABLE "bikes" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL) [0m
|
181
|
+
[1m[35m (19.0ms)[0m CREATE TABLE "places" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL)
|
182
|
+
[1m[36m (18.5ms)[0m [1mCREATE TABLE "users" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL) [0m
|
183
|
+
[1m[35m (13.2ms)[0m CREATE TABLE "user_skills" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL)
|
184
|
+
[1m[36m (12.4ms)[0m [1mCREATE TABLE "user_extras" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL) [0m
|
185
|
+
[1m[35m (19.0ms)[0m ALTER TABLE "bikes" ADD "name" varchar(255)
|
186
|
+
[1m[36m (13.4ms)[0m [1mALTER TABLE "bikes" ADD "cylinders" integer[0m
|
187
|
+
[1m[35m (18.5ms)[0m ALTER TABLE "bikes" ADD "cc" integer
|
188
|
+
[1m[36m (18.5ms)[0m [1mALTER TABLE "bikes" ADD "user_id" integer[0m
|
189
|
+
[1m[35m (19.0ms)[0m ALTER TABLE "places" ADD "name" varchar(255)
|
190
|
+
[1m[36m (12.3ms)[0m [1mALTER TABLE "places" ADD "geom" varchar(255)[0m
|
191
|
+
[1m[35m (25.2ms)[0m ALTER TABLE "users" ADD "name" varchar(255)
|
192
|
+
[1m[36m (13.1ms)[0m [1mALTER TABLE "users" ADD "number" integer[0m
|
193
|
+
[1m[35m (12.4ms)[0m ALTER TABLE "user_skills" ADD "kind" varchar(255)
|
194
|
+
[1m[36m (12.4ms)[0m [1mALTER TABLE "user_skills" ADD "user_id" integer[0m
|
195
|
+
[1m[35m (18.9ms)[0m ALTER TABLE "user_extras" ADD "key" varchar(255)
|
196
|
+
[1m[36m (13.8ms)[0m [1mALTER TABLE "user_extras" ADD "user_id" integer[0m
|
197
|
+
[1m[36m (15.1ms)[0m [1mCREATE TABLE "bikes" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL) [0m
|
198
|
+
[1m[35m (12.5ms)[0m CREATE TABLE "places" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL)
|
199
|
+
[1m[36m (18.5ms)[0m [1mCREATE TABLE "users" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL) [0m
|
200
|
+
[1m[35m (12.0ms)[0m CREATE TABLE "user_skills" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL)
|
201
|
+
[1m[36m (22.8ms)[0m [1mCREATE TABLE "user_extras" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL) [0m
|
202
|
+
[1m[35m (12.1ms)[0m ALTER TABLE "bikes" ADD "name" varchar(255)
|
203
|
+
[1m[36m (12.8ms)[0m [1mALTER TABLE "bikes" ADD "cylinders" integer[0m
|
204
|
+
[1m[35m (18.0ms)[0m ALTER TABLE "bikes" ADD "cc" integer
|
205
|
+
[1m[36m (12.4ms)[0m [1mALTER TABLE "bikes" ADD "user_id" integer[0m
|
206
|
+
[1m[35m (12.8ms)[0m ALTER TABLE "places" ADD "name" varchar(255)
|
207
|
+
[1m[36m (11.8ms)[0m [1mALTER TABLE "places" ADD "geom" varchar(255)[0m
|
208
|
+
[1m[35m (17.8ms)[0m ALTER TABLE "users" ADD "name" varchar(255)
|
209
|
+
[1m[36m (12.2ms)[0m [1mALTER TABLE "users" ADD "number" integer[0m
|
210
|
+
[1m[35m (11.9ms)[0m ALTER TABLE "user_skills" ADD "kind" varchar(255)
|
211
|
+
[1m[36m (17.2ms)[0m [1mALTER TABLE "user_skills" ADD "user_id" integer[0m
|
212
|
+
[1m[35m (12.0ms)[0m ALTER TABLE "user_extras" ADD "key" varchar(255)
|
213
|
+
[1m[36m (17.5ms)[0m [1mALTER TABLE "user_extras" ADD "user_id" integer[0m
|