magic_model_generator 0.3.0 → 0.4.0
Sign up to get free protection for your applications and to get access to all the features.
- data/History.txt +8 -0
- data/License.txt +20 -0
- data/Manifest.txt +81 -0
- data/{README → README.txt} +0 -0
- data/Rakefile +58 -59
- data/lib/activerecord/base.rb +0 -2
- data/lib/magic_model_generator.rb +0 -2
- data/lib/magic_model_generator/schema.rb +1 -5
- data/lib/magic_model_generator/validations.rb +1 -0
- data/lib/magic_model_generator/version.rb +1 -1
- data/scripts/txt2html +67 -0
- data/setup.rb +1585 -0
- data/tasks/build_db.rake +85 -0
- data/test/connections/native_db2/connection.rb +25 -0
- data/test/connections/native_firebird/connection.rb +26 -0
- data/test/connections/native_frontbase/connection.rb +27 -0
- data/test/connections/native_mysql/connection.rb +27 -0
- data/test/connections/native_openbase/connection.rb +21 -0
- data/test/connections/native_oracle/connection.rb +27 -0
- data/test/connections/native_postgresql/connection.rb +23 -0
- data/test/connections/native_sqlite/connection.rb +25 -0
- data/test/connections/native_sqlite3/connection.rb +25 -0
- data/test/connections/native_sqlite3/in_memory_connection.rb +18 -0
- data/test/connections/native_sqlserver/connection.rb +23 -0
- data/test/connections/native_sqlserver_odbc/connection.rb +25 -0
- data/test/connections/native_sybase/connection.rb +23 -0
- data/test/fixtures/db_definitions/db2.drop.sql +32 -0
- data/test/fixtures/db_definitions/db2.sql +231 -0
- data/test/fixtures/db_definitions/db22.drop.sql +2 -0
- data/test/fixtures/db_definitions/db22.sql +5 -0
- data/test/fixtures/db_definitions/firebird.drop.sql +63 -0
- data/test/fixtures/db_definitions/firebird.sql +304 -0
- data/test/fixtures/db_definitions/firebird2.drop.sql +2 -0
- data/test/fixtures/db_definitions/firebird2.sql +6 -0
- data/test/fixtures/db_definitions/frontbase.drop.sql +32 -0
- data/test/fixtures/db_definitions/frontbase.sql +268 -0
- data/test/fixtures/db_definitions/frontbase2.drop.sql +1 -0
- data/test/fixtures/db_definitions/frontbase2.sql +4 -0
- data/test/fixtures/db_definitions/mysql.drop.sql +32 -0
- data/test/fixtures/db_definitions/mysql.sql +234 -0
- data/test/fixtures/db_definitions/mysql2.drop.sql +2 -0
- data/test/fixtures/db_definitions/mysql2.sql +5 -0
- data/test/fixtures/db_definitions/openbase.drop.sql +2 -0
- data/test/fixtures/db_definitions/openbase.sql +302 -0
- data/test/fixtures/db_definitions/openbase2.drop.sql +2 -0
- data/test/fixtures/db_definitions/openbase2.sql +7 -0
- data/test/fixtures/db_definitions/oracle.drop.sql +65 -0
- data/test/fixtures/db_definitions/oracle.sql +325 -0
- data/test/fixtures/db_definitions/oracle2.drop.sql +2 -0
- data/test/fixtures/db_definitions/oracle2.sql +6 -0
- data/test/fixtures/db_definitions/postgresql.drop.sql +37 -0
- data/test/fixtures/db_definitions/postgresql.sql +247 -0
- data/test/fixtures/db_definitions/postgresql2.drop.sql +2 -0
- data/test/fixtures/db_definitions/postgresql2.sql +4 -0
- data/test/fixtures/db_definitions/schema.rb +74 -0
- data/test/fixtures/db_definitions/sqlite.drop.sql +32 -0
- data/test/fixtures/db_definitions/sqlite.sql +215 -0
- data/test/fixtures/db_definitions/sqlite2.drop.sql +2 -0
- data/test/fixtures/db_definitions/sqlite2.sql +5 -0
- data/test/fixtures/db_definitions/sqlserver.drop.sql +34 -0
- data/test/fixtures/db_definitions/sqlserver.sql +243 -0
- data/test/fixtures/db_definitions/sqlserver2.drop.sql +2 -0
- data/test/fixtures/db_definitions/sqlserver2.sql +5 -0
- data/test/fixtures/db_definitions/sybase.drop.sql +34 -0
- data/test/fixtures/db_definitions/sybase.sql +218 -0
- data/test/fixtures/db_definitions/sybase2.drop.sql +4 -0
- data/test/fixtures/db_definitions/sybase2.sql +5 -0
- data/test/{magic_model_generator_test.rb → test_magic_model_generator.rb} +1 -1
- data/test/test_rails_app/test/test_helper.rb +36 -0
- data/website/index.html +165 -0
- data/website/index.txt +83 -0
- data/website/javascripts/rounded_corners_lite.inc.js +285 -0
- data/website/stylesheets/screen.css +138 -0
- data/website/template.js +3 -0
- data/website/template.rhtml +53 -0
- metadata +96 -329
- data/examples/singleview/account.rb +0 -94
- data/examples/singleview/account_history.rb +0 -21
- data/examples/singleview/account_reservation.rb +0 -26
- data/examples/singleview/account_type.rb +0 -54
- data/examples/singleview/account_type_aging.rb +0 -17
- data/examples/singleview/account_type_variable.rb +0 -8
- data/examples/singleview/address.rb +0 -8
- data/examples/singleview/address_format.rb +0 -49
- data/examples/singleview/address_history.rb +0 -28
- data/examples/singleview/adjustment.rb +0 -97
- data/examples/singleview/adjustment_batch.rb +0 -42
- data/examples/singleview/adjustment_invoice.rb +0 -17
- data/examples/singleview/adjustment_type.rb +0 -54
- data/examples/singleview/adjustment_type_variable.rb +0 -8
- data/examples/singleview/archive_lock_t.rb +0 -11
- data/examples/singleview/archive_result.rb +0 -15
- data/examples/singleview/archive_type.rb +0 -31
- data/examples/singleview/archive_type_table_list.rb +0 -15
- data/examples/singleview/atai_error_name.rb +0 -7
- data/examples/singleview/atlanta_form.rb +0 -23
- data/examples/singleview/atlanta_form_field.rb +0 -12
- data/examples/singleview/atlanta_group.rb +0 -285
- data/examples/singleview/atlanta_help_entry.rb +0 -32
- data/examples/singleview/atlanta_operator.rb +0 -356
- data/examples/singleview/atlanta_profile.rb +0 -47
- data/examples/singleview/atlanta_profile_func_map.rb +0 -8
- data/examples/singleview/atlanta_profile_group_map.rb +0 -10
- data/examples/singleview/atlanta_profile_role_map.rb +0 -8
- data/examples/singleview/atlanta_profile_wf_map.rb +0 -10
- data/examples/singleview/atlanta_role.rb +0 -23
- data/examples/singleview/atlanta_table_partition.rb +0 -39
- data/examples/singleview/attribute_type.rb +0 -75
- data/examples/singleview/attribute_type_variable.rb +0 -8
- data/examples/singleview/bill_run.rb +0 -93
- data/examples/singleview/bill_run_operation.rb +0 -54
- data/examples/singleview/bill_run_type.rb +0 -39
- data/examples/singleview/bill_run_type_status.rb +0 -12
- data/examples/singleview/bill_run_type_task.rb +0 -12
- data/examples/singleview/cache.rb +0 -23
- data/examples/singleview/cache_field.rb +0 -13
- data/examples/singleview/can_act_charge.rb +0 -16
- data/examples/singleview/charge.rb +0 -67
- data/examples/singleview/charge_category.rb +0 -45
- data/examples/singleview/charge_output_defn.rb +0 -13
- data/examples/singleview/charge_output_defn_history.rb +0 -22
- data/examples/singleview/charge_output_defn_var.rb +0 -10
- data/examples/singleview/configuration_attr_type.rb +0 -22
- data/examples/singleview/configuration_attribute.rb +0 -11
- data/examples/singleview/configuration_item.rb +0 -26
- data/examples/singleview/configuration_item_type.rb +0 -29
- data/examples/singleview/contract.rb +0 -35
- data/examples/singleview/contract_history.rb +0 -48
- data/examples/singleview/contract_type.rb +0 -58
- data/examples/singleview/contract_type_product.rb +0 -11
- data/examples/singleview/conversion_rate.rb +0 -14
- data/examples/singleview/currency.rb +0 -118
- data/examples/singleview/currency_history.rb +0 -28
- data/examples/singleview/customer_contact.rb +0 -12
- data/examples/singleview/customer_node.rb +0 -166
- data/examples/singleview/customer_node_bill_run.rb +0 -12
- data/examples/singleview/customer_node_charge_cat.rb +0 -22
- data/examples/singleview/customer_node_correspond.rb +0 -12
- data/examples/singleview/customer_node_da.rb +0 -11
- data/examples/singleview/customer_node_da_array.rb +0 -35
- data/examples/singleview/customer_node_history.rb +0 -86
- data/examples/singleview/customer_node_inv_format.rb +0 -33
- data/examples/singleview/customer_node_type.rb +0 -89
- data/examples/singleview/customer_node_type_cc.rb +0 -18
- data/examples/singleview/customer_node_type_da.rb +0 -8
- data/examples/singleview/customer_node_type_var.rb +0 -8
- data/examples/singleview/customer_query.rb +0 -80
- data/examples/singleview/customer_query_progress.rb +0 -20
- data/examples/singleview/customer_query_type.rb +0 -49
- data/examples/singleview/customer_query_type_var.rb +0 -8
- data/examples/singleview/delete_cascade.rb +0 -13
- data/examples/singleview/delete_cascade_group.rb +0 -21
- data/examples/singleview/delete_constraint.rb +0 -9
- data/examples/singleview/derived_attribute.rb +0 -32
- data/examples/singleview/derived_attribute_array.rb +0 -32
- data/examples/singleview/derived_attribute_history.rb +0 -41
- data/examples/singleview/derived_attribute_index.rb +0 -13
- data/examples/singleview/derived_attribute_value.rb +0 -19
- data/examples/singleview/dil.rb +0 -18
- data/examples/singleview/dil_history.rb +0 -24
- data/examples/singleview/dil_reference.rb +0 -9
- data/examples/singleview/dil_validation_t.rb +0 -6
- data/examples/singleview/dil_variable.rb +0 -10
- data/examples/singleview/dunning_t.rb +0 -14
- data/examples/singleview/entity_mapping.rb +0 -11
- data/examples/singleview/entity_remap.rb +0 -22
- data/examples/singleview/entity_validation.rb +0 -70
- data/examples/singleview/entity_validation_list.rb +0 -15
- data/examples/singleview/entity_validation_variable.rb +0 -8
- data/examples/singleview/equipment.rb +0 -28
- data/examples/singleview/equipment_history.rb +0 -62
- data/examples/singleview/equipment_type.rb +0 -57
- data/examples/singleview/equipment_type_variable.rb +0 -8
- data/examples/singleview/error_group.rb +0 -18
- data/examples/singleview/error_message.rb +0 -65
- data/examples/singleview/evs_address_equiv.rb +0 -17
- data/examples/singleview/evs_alias.rb +0 -12
- data/examples/singleview/evs_attribute_type_key.rb +0 -7
- data/examples/singleview/evt_equipment_changeover.rb +0 -9
- data/examples/singleview/expression_list.rb +0 -27
- data/examples/singleview/expression_list_value.rb +0 -17
- data/examples/singleview/fac_group_compatibility.rb +0 -11
- data/examples/singleview/fac_group_instance.rb +0 -19
- data/examples/singleview/fac_group_instance_hist.rb +0 -16
- data/examples/singleview/facility.rb +0 -9
- data/examples/singleview/facility_group.rb +0 -21
- data/examples/singleview/facility_group_history.rb +0 -21
- data/examples/singleview/foreign_key.rb +0 -9
- data/examples/singleview/function_defn.rb +0 -16
- data/examples/singleview/function_defn_history.rb +0 -35
- data/examples/singleview/function_role.rb +0 -24
- data/examples/singleview/function_role_map.rb +0 -10
- data/examples/singleview/gl_code.rb +0 -65
- data/examples/singleview/gl_code_history.rb +0 -20
- data/examples/singleview/gl_upload.rb +0 -10
- data/examples/singleview/icon.rb +0 -64
- data/examples/singleview/inv_loop_t.rb +0 -4
- data/examples/singleview/inv_report_accounts_t.rb +0 -25
- data/examples/singleview/invoice.rb +0 -134
- data/examples/singleview/invoice_contents.rb +0 -14
- data/examples/singleview/invoice_format.rb +0 -31
- data/examples/singleview/invoice_format_history.rb +0 -29
- data/examples/singleview/invoice_message.rb +0 -17
- data/examples/singleview/invoice_message_history.rb +0 -31
- data/examples/singleview/invoice_message_variable.rb +0 -10
- data/examples/singleview/invoice_receivable_type.rb +0 -13
- data/examples/singleview/invoice_type.rb +0 -23
- data/examples/singleview/invoice_type_history.rb +0 -26
- data/examples/singleview/invoice_type_variable.rb +0 -10
- data/examples/singleview/isp_email_address.rb +0 -17
- data/examples/singleview/licence_current_values.rb +0 -12
- data/examples/singleview/menu_role_map.rb +0 -10
- data/examples/singleview/normalised_event.rb +0 -119
- data/examples/singleview/normalised_event_error.rb +0 -91
- data/examples/singleview/normalised_event_file.rb +0 -75
- data/examples/singleview/normalised_event_ft.rb +0 -18
- data/examples/singleview/normalised_event_ft_hist.rb +0 -25
- data/examples/singleview/normalised_event_ft_var.rb +0 -10
- data/examples/singleview/normalised_event_type.rb +0 -54
- data/examples/singleview/output_device.rb +0 -37
- data/examples/singleview/output_method.rb +0 -32
- data/examples/singleview/output_method_type.rb +0 -38
- data/examples/singleview/output_select.rb +0 -17
- data/examples/singleview/payment.rb +0 -102
- data/examples/singleview/payment_batch.rb +0 -43
- data/examples/singleview/payment_invoice.rb +0 -17
- data/examples/singleview/payment_item.rb +0 -15
- data/examples/singleview/payment_type.rb +0 -57
- data/examples/singleview/payment_type_variable.rb +0 -8
- data/examples/singleview/person.rb +0 -60
- data/examples/singleview/person_history.rb +0 -69
- data/examples/singleview/person_type.rb +0 -39
- data/examples/singleview/plan_table.rb +0 -27
- data/examples/singleview/product.rb +0 -45
- data/examples/singleview/product_compatibility.rb +0 -13
- data/examples/singleview/product_derived_attribute.rb +0 -10
- data/examples/singleview/product_facility_group.rb +0 -16
- data/examples/singleview/product_group.rb +0 -12
- data/examples/singleview/product_group_history.rb +0 -20
- data/examples/singleview/product_history.rb +0 -35
- data/examples/singleview/product_in_product_group.rb +0 -12
- data/examples/singleview/product_instance.rb +0 -41
- data/examples/singleview/product_instance_equip.rb +0 -21
- data/examples/singleview/product_instance_history.rb +0 -37
- data/examples/singleview/product_instance_service.rb +0 -17
- data/examples/singleview/product_payment_item.rb +0 -19
- data/examples/singleview/product_service_type.rb +0 -32
- data/examples/singleview/product_service_type_equip.rb +0 -20
- data/examples/singleview/product_subtotal.rb +0 -14
- data/examples/singleview/product_tariff.rb +0 -16
- data/examples/singleview/racr_clec_t1.rb +0 -12
- data/examples/singleview/racr_clec_t2.rb +0 -12
- data/examples/singleview/racr_clec_t3.rb +0 -28
- data/examples/singleview/racr_t.rb +0 -29
- data/examples/singleview/ragd_clec_t.rb +0 -47
- data/examples/singleview/ragd_t.rb +0 -28
- data/examples/singleview/rapc_t.rb +0 -27
- data/examples/singleview/rdfd_cmn_t.rb +0 -17
- data/examples/singleview/rdfd_t.rb +0 -16
- data/examples/singleview/receivable_type.rb +0 -49
- data/examples/singleview/receivable_type_history.rb +0 -25
- data/examples/singleview/reference_code.rb +0 -17
- data/examples/singleview/reference_type.rb +0 -32
- data/examples/singleview/release_info.rb +0 -10
- data/examples/singleview/report_reference_type.rb +0 -14
- data/examples/singleview/report_reference_type_defs.rb +0 -12
- data/examples/singleview/reprocessed_file.rb +0 -32
- data/examples/singleview/rgp_file.rb +0 -22
- data/examples/singleview/rgp_normalised_event.rb +0 -78
- data/examples/singleview/rmag_t.rb +0 -32
- data/examples/singleview/rpmr_t.rb +0 -27
- data/examples/singleview/rpsi_t.rb +0 -24
- data/examples/singleview/rser_t.rb +0 -13
- data/examples/singleview/rshu_cmn_t.rb +0 -31
- data/examples/singleview/schedule.rb +0 -91
- data/examples/singleview/schedule_task_type.rb +0 -43
- data/examples/singleview/service.rb +0 -88
- data/examples/singleview/service_bill_run_t.rb +0 -12
- data/examples/singleview/service_charge_category.rb +0 -22
- data/examples/singleview/service_da.rb +0 -11
- data/examples/singleview/service_da_array.rb +0 -35
- data/examples/singleview/service_duplicate.rb +0 -4
- data/examples/singleview/service_history.rb +0 -59
- data/examples/singleview/service_type.rb +0 -54
- data/examples/singleview/service_type_cc.rb +0 -18
- data/examples/singleview/service_type_da.rb +0 -8
- data/examples/singleview/service_type_equip_type.rb +0 -11
- data/examples/singleview/subtotal.rb +0 -48
- data/examples/singleview/subtotal_history.rb +0 -59
- data/examples/singleview/subtotal_rating_delta.rb +0 -20
- data/examples/singleview/subtotal_rating_value.rb +0 -21
- data/examples/singleview/subtotal_term.rb +0 -16
- data/examples/singleview/subtotal_value.rb +0 -18
- data/examples/singleview/summary_of_change.rb +0 -31
- data/examples/singleview/summary_of_change_ev.rb +0 -18
- data/examples/singleview/summary_of_change_view.rb +0 -22
- data/examples/singleview/t2_anumber_france.rb +0 -22
- data/examples/singleview/t2_anumber_italy.rb +0 -22
- data/examples/singleview/t2_anumber_netherlands.rb +0 -24
- data/examples/singleview/t2_anumber_portugal.rb +0 -22
- data/examples/singleview/t2_anumber_spain.rb +0 -22
- data/examples/singleview/t2_anumber_switzerland.rb +0 -24
- data/examples/singleview/t2_bankreference_austria.rb +0 -7
- data/examples/singleview/t2_bankreference_belgium.rb +0 -6
- data/examples/singleview/t2_bankreference_france.rb +0 -7
- data/examples/singleview/t2_bankreference_germany.rb +0 -7
- data/examples/singleview/t2_bankreference_italy.rb +0 -7
- data/examples/singleview/t2_bankreference_portugal.rb +0 -7
- data/examples/singleview/t2_cc_provrequests.rb +0 -19
- data/examples/singleview/t2_emf_info.rb +0 -12
- data/examples/singleview/t2_ev_column_label_mapping.rb +0 -9
- data/examples/singleview/t2_historytable.rb +0 -26
- data/examples/singleview/t2_inv_revoked_invoice.rb +0 -11
- data/examples/singleview/t2_inv_suppress_invoice.rb +0 -13
- data/examples/singleview/t2_national_number_plan.rb +0 -8
- data/examples/singleview/t2_pay_statement.rb +0 -28
- data/examples/singleview/t2_prov_req_action.rb +0 -22
- data/examples/singleview/t2_prov_request.rb +0 -32
- data/examples/singleview/t2_rep_brr_t.rb +0 -19
- data/examples/singleview/t2_rep_trr_t.rb +0 -19
- data/examples/singleview/t2_rep_ubr_t.rb +0 -19
- data/examples/singleview/t2_taxclass.rb +0 -8
- data/examples/singleview/t2_zipcode_austria.rb +0 -8
- data/examples/singleview/t2_zipcode_france.rb +0 -8
- data/examples/singleview/t2_zipcode_germany.rb +0 -8
- data/examples/singleview/t2_zipcode_hungary.rb +0 -8
- data/examples/singleview/t2_zipcode_luxembourg.rb +0 -8
- data/examples/singleview/t2_zipcode_netherlands.rb +0 -8
- data/examples/singleview/t2_zipcode_portugal.rb +0 -9
- data/examples/singleview/t2_zipcode_spain.rb +0 -8
- data/examples/singleview/t2_zipcode_switzerland.rb +0 -8
- data/examples/singleview/table_import_order.rb +0 -6
- data/examples/singleview/tariff.rb +0 -51
- data/examples/singleview/tariff_charge.rb +0 -33
- data/examples/singleview/tariff_charge_defn.rb +0 -18
- data/examples/singleview/tariff_condition_defn.rb +0 -19
- data/examples/singleview/tariff_history.rb +0 -70
- data/examples/singleview/tariff_recurring.rb +0 -36
- data/examples/singleview/task_queue.rb +0 -130
- data/examples/singleview/task_queue_result.rb +0 -10
- data/examples/singleview/template.rb +0 -18
- data/examples/singleview/template_history.rb +0 -30
- data/examples/singleview/template_reference.rb +0 -9
- data/examples/singleview/template_variable.rb +0 -10
- data/examples/singleview/trt_clec_treatment.rb +0 -13
- data/examples/singleview/variable_defn.rb +0 -48
- data/examples/singleview/variable_defn_dependency.rb +0 -11
- data/examples/singleview/variable_defn_direct.rb +0 -15
- data/examples/singleview/variable_defn_history.rb +0 -22
- data/examples/singleview/work_force.rb +0 -25
- data/examples/singleview/xpsi_addr_val_commtax21.rb +0 -24
- data/examples/singleview/xpsi_addr_val_msag.rb +0 -24
- data/examples/singleview/xpsi_addr_val_zip.rb +0 -14
- data/examples/singleview/xpsi_ne_batch.rb +0 -20
- data/examples/singleview/xpsi_product_batch.rb +0 -18
- data/examples/singleview/xpsi_product_status.rb +0 -14
- data/examples/singleview/xpsi_tax_error.rb +0 -34
- data/examples/singleview/xpsi_trt_revoke.rb +0 -68
- data/examples/singleview/xpsi_trt_revoke_prod_inst.rb +0 -12
- data/examples/singleview/xpsi_update_capture.rb +0 -35
@@ -0,0 +1,32 @@
|
|
1
|
+
DROP TABLE accounts CASCADE;
|
2
|
+
DROP TABLE funny_jokes CASCADE;
|
3
|
+
DROP TABLE companies CASCADE;
|
4
|
+
DROP TABLE topics CASCADE;
|
5
|
+
DROP TABLE developers CASCADE;
|
6
|
+
DROP TABLE projects CASCADE;
|
7
|
+
DROP TABLE developers_projects CASCADE;
|
8
|
+
DROP TABLE orders CASCADE;
|
9
|
+
DROP TABLE customers CASCADE;
|
10
|
+
DROP TABLE movies CASCADE;
|
11
|
+
DROP TABLE subscribers CASCADE;
|
12
|
+
DROP TABLE booleantests CASCADE;
|
13
|
+
DROP TABLE auto_id_tests CASCADE;
|
14
|
+
DROP TABLE entrants CASCADE;
|
15
|
+
DROP TABLE colnametests CASCADE;
|
16
|
+
DROP TABLE mixins CASCADE;
|
17
|
+
DROP TABLE people CASCADE;
|
18
|
+
DROP TABLE readers CASCADE;
|
19
|
+
DROP TABLE binaries CASCADE;
|
20
|
+
DROP TABLE computers CASCADE;
|
21
|
+
DROP TABLE posts CASCADE;
|
22
|
+
DROP TABLE comments CASCADE;
|
23
|
+
DROP TABLE authors CASCADE;
|
24
|
+
DROP TABLE tasks CASCADE;
|
25
|
+
DROP TABLE categories CASCADE;
|
26
|
+
DROP TABLE categories_posts CASCADE;
|
27
|
+
DROP TABLE fk_test_has_fk CASCADE;
|
28
|
+
DROP TABLE fk_test_has_pk CASCADE;
|
29
|
+
DROP TABLE keyboards CASCADE;
|
30
|
+
DROP TABLE legacy_things CASCADE;
|
31
|
+
DROP TABLE numeric_data CASCADE;
|
32
|
+
DROP TABLE mixed_case_monkeys CASCADE;
|
@@ -0,0 +1,268 @@
|
|
1
|
+
CREATE TABLE accounts (
|
2
|
+
id integer DEFAULT unique,
|
3
|
+
firm_id integer,
|
4
|
+
credit_limit integer,
|
5
|
+
PRIMARY KEY (id)
|
6
|
+
);
|
7
|
+
SET UNIQUE FOR accounts(id);
|
8
|
+
|
9
|
+
CREATE TABLE funny_jokes (
|
10
|
+
id integer DEFAULT unique,
|
11
|
+
firm_id integer default NULL,
|
12
|
+
name character varying(50),
|
13
|
+
PRIMARY KEY (id)
|
14
|
+
);
|
15
|
+
SET UNIQUE FOR funny_jokes(id);
|
16
|
+
|
17
|
+
CREATE TABLE companies (
|
18
|
+
id integer DEFAULT unique,
|
19
|
+
"type" character varying(50),
|
20
|
+
"ruby_type" character varying(50),
|
21
|
+
firm_id integer,
|
22
|
+
name character varying(50),
|
23
|
+
client_of integer,
|
24
|
+
rating integer default 1,
|
25
|
+
PRIMARY KEY (id)
|
26
|
+
);
|
27
|
+
SET UNIQUE FOR companies(id);
|
28
|
+
|
29
|
+
CREATE TABLE topics (
|
30
|
+
id integer DEFAULT unique,
|
31
|
+
title character varying(255),
|
32
|
+
author_name character varying(255),
|
33
|
+
author_email_address character varying(255),
|
34
|
+
written_on timestamp,
|
35
|
+
bonus_time time,
|
36
|
+
last_read date,
|
37
|
+
content varchar(65536),
|
38
|
+
approved boolean default true,
|
39
|
+
replies_count integer default 0,
|
40
|
+
parent_id integer,
|
41
|
+
"type" character varying(50),
|
42
|
+
PRIMARY KEY (id)
|
43
|
+
);
|
44
|
+
SET UNIQUE FOR topics(id);
|
45
|
+
|
46
|
+
CREATE TABLE developers (
|
47
|
+
id integer DEFAULT unique,
|
48
|
+
name character varying(100),
|
49
|
+
salary integer DEFAULT 70000,
|
50
|
+
created_at timestamp,
|
51
|
+
updated_at timestamp,
|
52
|
+
PRIMARY KEY (id)
|
53
|
+
);
|
54
|
+
SET UNIQUE FOR developers(id);
|
55
|
+
|
56
|
+
CREATE TABLE projects (
|
57
|
+
id integer DEFAULT unique,
|
58
|
+
name character varying(100),
|
59
|
+
type varchar(255),
|
60
|
+
PRIMARY KEY (id)
|
61
|
+
);
|
62
|
+
SET UNIQUE FOR projects(id);
|
63
|
+
|
64
|
+
CREATE TABLE developers_projects (
|
65
|
+
developer_id integer NOT NULL,
|
66
|
+
project_id integer NOT NULL,
|
67
|
+
joined_on date,
|
68
|
+
access_level integer default 1
|
69
|
+
);
|
70
|
+
|
71
|
+
CREATE TABLE orders (
|
72
|
+
id integer DEFAULT unique,
|
73
|
+
name character varying(100),
|
74
|
+
billing_customer_id integer,
|
75
|
+
shipping_customer_id integer,
|
76
|
+
PRIMARY KEY (id)
|
77
|
+
);
|
78
|
+
SET UNIQUE FOR orders(id);
|
79
|
+
|
80
|
+
CREATE TABLE customers (
|
81
|
+
id integer DEFAULT unique,
|
82
|
+
name character varying(100),
|
83
|
+
balance integer default 0,
|
84
|
+
address_street character varying(100),
|
85
|
+
address_city character varying(100),
|
86
|
+
address_country character varying(100),
|
87
|
+
gps_location character varying(100),
|
88
|
+
PRIMARY KEY (id)
|
89
|
+
);
|
90
|
+
SET UNIQUE FOR customers(id);
|
91
|
+
|
92
|
+
CREATE TABLE movies (
|
93
|
+
movieid integer DEFAULT unique,
|
94
|
+
name varchar(65536),
|
95
|
+
PRIMARY KEY (movieid)
|
96
|
+
);
|
97
|
+
SET UNIQUE FOR movies(movieid);
|
98
|
+
|
99
|
+
CREATE TABLE subscribers (
|
100
|
+
nick varchar(65536) NOT NULL,
|
101
|
+
name varchar(65536),
|
102
|
+
PRIMARY KEY (nick)
|
103
|
+
);
|
104
|
+
|
105
|
+
CREATE TABLE booleantests (
|
106
|
+
id integer DEFAULT unique,
|
107
|
+
value boolean,
|
108
|
+
PRIMARY KEY (id)
|
109
|
+
);
|
110
|
+
SET UNIQUE FOR booleantests(id);
|
111
|
+
|
112
|
+
CREATE TABLE auto_id_tests (
|
113
|
+
auto_id integer DEFAULT unique,
|
114
|
+
value integer,
|
115
|
+
PRIMARY KEY (auto_id)
|
116
|
+
);
|
117
|
+
SET UNIQUE FOR auto_id_tests(auto_id);
|
118
|
+
|
119
|
+
CREATE TABLE entrants (
|
120
|
+
id integer DEFAULT unique,
|
121
|
+
name varchar(65536),
|
122
|
+
course_id integer,
|
123
|
+
PRIMARY KEY (id)
|
124
|
+
);
|
125
|
+
SET UNIQUE FOR entrants(id);
|
126
|
+
|
127
|
+
CREATE TABLE colnametests (
|
128
|
+
id integer DEFAULT unique,
|
129
|
+
"references" integer NOT NULL,
|
130
|
+
PRIMARY KEY (id)
|
131
|
+
);
|
132
|
+
SET UNIQUE FOR colnametests(id);
|
133
|
+
|
134
|
+
CREATE TABLE mixins (
|
135
|
+
id integer DEFAULT unique,
|
136
|
+
parent_id integer,
|
137
|
+
type character varying(100),
|
138
|
+
pos integer,
|
139
|
+
lft integer,
|
140
|
+
rgt integer,
|
141
|
+
root_id integer,
|
142
|
+
created_at timestamp,
|
143
|
+
updated_at timestamp,
|
144
|
+
PRIMARY KEY (id)
|
145
|
+
);
|
146
|
+
SET UNIQUE FOR mixins(id);
|
147
|
+
|
148
|
+
CREATE TABLE people (
|
149
|
+
id integer DEFAULT unique,
|
150
|
+
first_name varchar(65536),
|
151
|
+
lock_version integer default 0,
|
152
|
+
PRIMARY KEY (id)
|
153
|
+
);
|
154
|
+
SET UNIQUE FOR people(id);
|
155
|
+
|
156
|
+
CREATE TABLE readers (
|
157
|
+
id integer DEFAULT unique,
|
158
|
+
post_id INTEGER NOT NULL,
|
159
|
+
person_id INTEGER NOT NULL,
|
160
|
+
PRIMARY KEY (id)
|
161
|
+
);
|
162
|
+
SET UNIQUE FOR readers(id);
|
163
|
+
|
164
|
+
CREATE TABLE binaries (
|
165
|
+
id integer DEFAULT unique,
|
166
|
+
data BLOB,
|
167
|
+
PRIMARY KEY (id)
|
168
|
+
);
|
169
|
+
SET UNIQUE FOR binaries(id);
|
170
|
+
|
171
|
+
CREATE TABLE computers (
|
172
|
+
id integer DEFAULT unique,
|
173
|
+
developer integer NOT NULL,
|
174
|
+
"extendedWarranty" integer NOT NULL,
|
175
|
+
PRIMARY KEY (id)
|
176
|
+
);
|
177
|
+
SET UNIQUE FOR computers(id);
|
178
|
+
|
179
|
+
CREATE TABLE posts (
|
180
|
+
id integer DEFAULT unique,
|
181
|
+
author_id integer,
|
182
|
+
title varchar(255),
|
183
|
+
type varchar(255),
|
184
|
+
body varchar(65536),
|
185
|
+
PRIMARY KEY (id)
|
186
|
+
);
|
187
|
+
SET UNIQUE FOR posts(id);
|
188
|
+
|
189
|
+
CREATE TABLE comments (
|
190
|
+
id integer DEFAULT unique,
|
191
|
+
post_id integer,
|
192
|
+
type varchar(255),
|
193
|
+
body varchar(65536),
|
194
|
+
PRIMARY KEY (id)
|
195
|
+
);
|
196
|
+
SET UNIQUE FOR comments(id);
|
197
|
+
|
198
|
+
CREATE TABLE authors (
|
199
|
+
id integer DEFAULT unique,
|
200
|
+
name varchar(255) default NULL,
|
201
|
+
PRIMARY KEY (id)
|
202
|
+
);
|
203
|
+
SET UNIQUE FOR authors(id);
|
204
|
+
|
205
|
+
CREATE TABLE tasks (
|
206
|
+
id integer DEFAULT unique,
|
207
|
+
starting timestamp,
|
208
|
+
ending timestamp,
|
209
|
+
PRIMARY KEY (id)
|
210
|
+
);
|
211
|
+
SET UNIQUE FOR tasks(id);
|
212
|
+
|
213
|
+
CREATE TABLE categories (
|
214
|
+
id integer DEFAULT unique,
|
215
|
+
name varchar(255),
|
216
|
+
type varchar(255),
|
217
|
+
PRIMARY KEY (id)
|
218
|
+
);
|
219
|
+
SET UNIQUE FOR categories(id);
|
220
|
+
|
221
|
+
CREATE TABLE categories_posts (
|
222
|
+
category_id integer NOT NULL,
|
223
|
+
post_id integer NOT NULL
|
224
|
+
);
|
225
|
+
|
226
|
+
CREATE TABLE fk_test_has_pk (
|
227
|
+
id INTEGER NOT NULL PRIMARY KEY
|
228
|
+
);
|
229
|
+
SET UNIQUE FOR fk_test_has_pk(id);
|
230
|
+
|
231
|
+
CREATE TABLE fk_test_has_fk (
|
232
|
+
id INTEGER NOT NULL PRIMARY KEY,
|
233
|
+
fk_id INTEGER NOT NULL REFERENCES fk_test_has_fk(id)
|
234
|
+
);
|
235
|
+
SET UNIQUE FOR fk_test_has_fk(id);
|
236
|
+
|
237
|
+
CREATE TABLE keyboards (
|
238
|
+
key_number integer DEFAULT unique,
|
239
|
+
"name" character varying(50),
|
240
|
+
PRIMARY KEY (key_number)
|
241
|
+
);
|
242
|
+
SET UNIQUE FOR keyboards(key_number);
|
243
|
+
|
244
|
+
create table "legacy_things"
|
245
|
+
(
|
246
|
+
"id" int,
|
247
|
+
"tps_report_number" int default NULL,
|
248
|
+
"version" int default 0 not null,
|
249
|
+
primary key ("id")
|
250
|
+
);
|
251
|
+
SET UNIQUE FOR legacy_things(id);
|
252
|
+
|
253
|
+
CREATE TABLE "numeric_data" (
|
254
|
+
"id" integer NOT NULL
|
255
|
+
"bank_balance" DECIMAL(10,2),
|
256
|
+
"big_bank_balance" DECIMAL(15,2),
|
257
|
+
"world_population" DECIMAL(10),
|
258
|
+
"my_house_population" DECIMAL(2),
|
259
|
+
"decimal_number_with_default" DECIMAL(3,2) DEFAULT 2.78,
|
260
|
+
primary key ("id")
|
261
|
+
);
|
262
|
+
SET UNIQUE FOR numeric_data(id);
|
263
|
+
|
264
|
+
CREATE TABLE mixed_case_monkeys (
|
265
|
+
"monkeyID" integer DEFAULT unique,
|
266
|
+
"fleaCount" integer
|
267
|
+
);
|
268
|
+
SET UNIQUE FOR mixed_case_monkeys("monkeyID");
|
@@ -0,0 +1 @@
|
|
1
|
+
DROP TABLE courses CASCADE;
|
@@ -0,0 +1,32 @@
|
|
1
|
+
DROP TABLE accounts;
|
2
|
+
DROP TABLE funny_jokes;
|
3
|
+
DROP TABLE companies;
|
4
|
+
DROP TABLE topics;
|
5
|
+
DROP TABLE developers;
|
6
|
+
DROP TABLE projects;
|
7
|
+
DROP TABLE developers_projects;
|
8
|
+
DROP TABLE customers;
|
9
|
+
DROP TABLE orders;
|
10
|
+
DROP TABLE movies;
|
11
|
+
DROP TABLE subscribers;
|
12
|
+
DROP TABLE booleantests;
|
13
|
+
DROP TABLE auto_id_tests;
|
14
|
+
DROP TABLE entrants;
|
15
|
+
DROP TABLE colnametests;
|
16
|
+
DROP TABLE mixins;
|
17
|
+
DROP TABLE people;
|
18
|
+
DROP TABLE readers;
|
19
|
+
DROP TABLE binaries;
|
20
|
+
DROP TABLE computers;
|
21
|
+
DROP TABLE tasks;
|
22
|
+
DROP TABLE posts;
|
23
|
+
DROP TABLE comments;
|
24
|
+
DROP TABLE authors;
|
25
|
+
DROP TABLE categories;
|
26
|
+
DROP TABLE categories_posts;
|
27
|
+
DROP TABLE fk_test_has_fk;
|
28
|
+
DROP TABLE fk_test_has_pk;
|
29
|
+
DROP TABLE keyboards;
|
30
|
+
DROP TABLE legacy_things;
|
31
|
+
DROP TABLE numeric_data;
|
32
|
+
DROP TABLE mixed_case_monkeys;
|
@@ -0,0 +1,234 @@
|
|
1
|
+
CREATE TABLE `accounts` (
|
2
|
+
`id` int(11) NOT NULL auto_increment,
|
3
|
+
`firm_id` int(11) default NULL,
|
4
|
+
`credit_limit` int(5) default NULL,
|
5
|
+
PRIMARY KEY (`id`)
|
6
|
+
) TYPE=InnoDB;
|
7
|
+
|
8
|
+
CREATE TABLE `funny_jokes` (
|
9
|
+
`id` int(11) NOT NULL auto_increment,
|
10
|
+
`name` varchar(50) default NULL,
|
11
|
+
PRIMARY KEY (`id`)
|
12
|
+
) TYPE=InnoDB;
|
13
|
+
|
14
|
+
CREATE TABLE `companies` (
|
15
|
+
`id` int(11) NOT NULL auto_increment,
|
16
|
+
`type` varchar(50) default NULL,
|
17
|
+
`ruby_type` varchar(50) default NULL,
|
18
|
+
`firm_id` int(11) default NULL,
|
19
|
+
`name` varchar(50) default NULL,
|
20
|
+
`client_of` int(11) default NULL,
|
21
|
+
`rating` int(11) default NULL default 1,
|
22
|
+
PRIMARY KEY (`id`)
|
23
|
+
) TYPE=InnoDB;
|
24
|
+
|
25
|
+
|
26
|
+
CREATE TABLE `topics` (
|
27
|
+
`id` int(11) NOT NULL auto_increment,
|
28
|
+
`title` varchar(255) default NULL,
|
29
|
+
`author_name` varchar(255) default NULL,
|
30
|
+
`author_email_address` varchar(255) default NULL,
|
31
|
+
`written_on` datetime default NULL,
|
32
|
+
`bonus_time` time default NULL,
|
33
|
+
`last_read` date default NULL,
|
34
|
+
`content` text,
|
35
|
+
`approved` tinyint(1) default 1,
|
36
|
+
`replies_count` int(11) default 0,
|
37
|
+
`parent_id` int(11) default NULL,
|
38
|
+
`type` varchar(50) default NULL,
|
39
|
+
PRIMARY KEY (`id`)
|
40
|
+
) TYPE=InnoDB DEFAULT CHARSET=utf8;
|
41
|
+
|
42
|
+
CREATE TABLE `developers` (
|
43
|
+
`id` int(11) NOT NULL auto_increment,
|
44
|
+
`name` varchar(100) default NULL,
|
45
|
+
`salary` int(11) default 70000,
|
46
|
+
`created_at` datetime default NULL,
|
47
|
+
`updated_at` datetime default NULL,
|
48
|
+
PRIMARY KEY (`id`)
|
49
|
+
) TYPE=InnoDB;
|
50
|
+
|
51
|
+
CREATE TABLE `projects` (
|
52
|
+
`id` int(11) NOT NULL auto_increment,
|
53
|
+
`name` varchar(100) default NULL,
|
54
|
+
`type` VARCHAR(255) default NULL,
|
55
|
+
PRIMARY KEY (`id`)
|
56
|
+
) TYPE=InnoDB;
|
57
|
+
|
58
|
+
CREATE TABLE `developers_projects` (
|
59
|
+
`developer_id` int(11) NOT NULL,
|
60
|
+
`project_id` int(11) NOT NULL,
|
61
|
+
`joined_on` date default NULL,
|
62
|
+
`access_level` smallint default 1
|
63
|
+
) TYPE=InnoDB;
|
64
|
+
|
65
|
+
CREATE TABLE `orders` (
|
66
|
+
`id` int(11) NOT NULL auto_increment,
|
67
|
+
`name` varchar(100) default NULL,
|
68
|
+
`billing_customer_id` int(11) default NULL,
|
69
|
+
`shipping_customer_id` int(11) default NULL,
|
70
|
+
PRIMARY KEY (`id`)
|
71
|
+
) TYPE=InnoDB;
|
72
|
+
|
73
|
+
CREATE TABLE `customers` (
|
74
|
+
`id` int(11) NOT NULL auto_increment,
|
75
|
+
`name` varchar(100) default NULL,
|
76
|
+
`balance` int(6) default 0,
|
77
|
+
`address_street` varchar(100) default NULL,
|
78
|
+
`address_city` varchar(100) default NULL,
|
79
|
+
`address_country` varchar(100) default NULL,
|
80
|
+
`gps_location` varchar(100) default NULL,
|
81
|
+
PRIMARY KEY (`id`)
|
82
|
+
) TYPE=InnoDB;
|
83
|
+
|
84
|
+
CREATE TABLE `movies` (
|
85
|
+
`movieid` int(11) NOT NULL auto_increment,
|
86
|
+
`name` varchar(100) default NULL,
|
87
|
+
PRIMARY KEY (`movieid`)
|
88
|
+
) TYPE=InnoDB;
|
89
|
+
|
90
|
+
CREATE TABLE `subscribers` (
|
91
|
+
`nick` varchar(100) NOT NULL,
|
92
|
+
`name` varchar(100) default NULL,
|
93
|
+
PRIMARY KEY (`nick`)
|
94
|
+
) TYPE=InnoDB;
|
95
|
+
|
96
|
+
CREATE TABLE `booleantests` (
|
97
|
+
`id` int(11) NOT NULL auto_increment,
|
98
|
+
`value` integer default NULL,
|
99
|
+
PRIMARY KEY (`id`)
|
100
|
+
) TYPE=InnoDB;
|
101
|
+
|
102
|
+
CREATE TABLE `auto_id_tests` (
|
103
|
+
`auto_id` int(11) NOT NULL auto_increment,
|
104
|
+
`value` integer default NULL,
|
105
|
+
PRIMARY KEY (`auto_id`)
|
106
|
+
) TYPE=InnoDB;
|
107
|
+
|
108
|
+
CREATE TABLE `entrants` (
|
109
|
+
`id` INTEGER NOT NULL auto_increment PRIMARY KEY,
|
110
|
+
`name` VARCHAR(255) NOT NULL,
|
111
|
+
`course_id` INTEGER NOT NULL
|
112
|
+
);
|
113
|
+
|
114
|
+
CREATE TABLE `colnametests` (
|
115
|
+
`id` int(11) NOT NULL auto_increment,
|
116
|
+
`references` int(11) NOT NULL,
|
117
|
+
PRIMARY KEY (`id`)
|
118
|
+
) TYPE=InnoDB;
|
119
|
+
|
120
|
+
CREATE TABLE `mixins` (
|
121
|
+
`id` int(11) NOT NULL auto_increment,
|
122
|
+
`parent_id` int(11) default NULL,
|
123
|
+
`pos` int(11) default NULL,
|
124
|
+
`created_at` datetime default NULL,
|
125
|
+
`updated_at` datetime default NULL,
|
126
|
+
`lft` int(11) default NULL,
|
127
|
+
`rgt` int(11) default NULL,
|
128
|
+
`root_id` int(11) default NULL,
|
129
|
+
`type` varchar(40) default NULL,
|
130
|
+
PRIMARY KEY (`id`)
|
131
|
+
) TYPE=InnoDB;
|
132
|
+
|
133
|
+
CREATE TABLE `people` (
|
134
|
+
`id` INTEGER NOT NULL auto_increment PRIMARY KEY,
|
135
|
+
`first_name` VARCHAR(40) NOT NULL,
|
136
|
+
`lock_version` INTEGER NOT NULL DEFAULT 0
|
137
|
+
) TYPE=InnoDB;
|
138
|
+
|
139
|
+
CREATE TABLE `readers` (
|
140
|
+
`id` int(11) NOT NULL auto_increment PRIMARY KEY,
|
141
|
+
`post_id` INTEGER NOT NULL,
|
142
|
+
`person_id` INTEGER NOT NULL
|
143
|
+
) TYPE=InnoDB;
|
144
|
+
|
145
|
+
CREATE TABLE `binaries` (
|
146
|
+
`id` int(11) NOT NULL auto_increment,
|
147
|
+
`data` mediumblob,
|
148
|
+
PRIMARY KEY (`id`)
|
149
|
+
) TYPE=InnoDB;
|
150
|
+
|
151
|
+
CREATE TABLE `computers` (
|
152
|
+
`id` INTEGER NOT NULL auto_increment PRIMARY KEY,
|
153
|
+
`developer` INTEGER NOT NULL,
|
154
|
+
`extendedWarranty` INTEGER NOT NULL
|
155
|
+
) TYPE=InnoDB;
|
156
|
+
|
157
|
+
CREATE TABLE `posts` (
|
158
|
+
`id` INTEGER NOT NULL auto_increment PRIMARY KEY,
|
159
|
+
`author_id` INTEGER,
|
160
|
+
`title` VARCHAR(255) NOT NULL,
|
161
|
+
`body` TEXT NOT NULL,
|
162
|
+
`type` VARCHAR(255) default NULL
|
163
|
+
) TYPE=InnoDB;
|
164
|
+
|
165
|
+
CREATE TABLE `comments` (
|
166
|
+
`id` INTEGER NOT NULL auto_increment PRIMARY KEY,
|
167
|
+
`post_id` INTEGER NOT NULL,
|
168
|
+
`body` TEXT NOT NULL,
|
169
|
+
`type` VARCHAR(255) default NULL
|
170
|
+
) TYPE=InnoDB;
|
171
|
+
|
172
|
+
CREATE TABLE `authors` (
|
173
|
+
`id` INTEGER NOT NULL auto_increment PRIMARY KEY,
|
174
|
+
`name` VARCHAR(255) NOT NULL
|
175
|
+
) TYPE=InnoDB;
|
176
|
+
|
177
|
+
CREATE TABLE `tasks` (
|
178
|
+
`id` int(11) NOT NULL auto_increment,
|
179
|
+
`starting` datetime NOT NULL default '1000-01-01 00:00:00',
|
180
|
+
`ending` datetime NOT NULL default '1000-01-01 00:00:00',
|
181
|
+
PRIMARY KEY (`id`)
|
182
|
+
) TYPE=InnoDB;
|
183
|
+
|
184
|
+
CREATE TABLE `categories` (
|
185
|
+
`id` int(11) NOT NULL auto_increment,
|
186
|
+
`name` VARCHAR(255) NOT NULL,
|
187
|
+
`type` VARCHAR(255) default NULL,
|
188
|
+
PRIMARY KEY (`id`)
|
189
|
+
) TYPE=InnoDB;
|
190
|
+
|
191
|
+
CREATE TABLE `categories_posts` (
|
192
|
+
`category_id` int(11) NOT NULL,
|
193
|
+
`post_id` int(11) NOT NULL
|
194
|
+
) TYPE=InnoDB;
|
195
|
+
|
196
|
+
CREATE TABLE `fk_test_has_pk` (
|
197
|
+
`id` INTEGER NOT NULL auto_increment PRIMARY KEY
|
198
|
+
) TYPE=InnoDB;
|
199
|
+
|
200
|
+
CREATE TABLE `fk_test_has_fk` (
|
201
|
+
`id` INTEGER NOT NULL auto_increment PRIMARY KEY,
|
202
|
+
`fk_id` INTEGER NOT NULL,
|
203
|
+
|
204
|
+
FOREIGN KEY (`fk_id`) REFERENCES `fk_test_has_pk`(`id`)
|
205
|
+
) TYPE=InnoDB;
|
206
|
+
|
207
|
+
|
208
|
+
CREATE TABLE `keyboards` (
|
209
|
+
`key_number` int(11) NOT NULL auto_increment primary key,
|
210
|
+
`name` varchar(50) default NULL
|
211
|
+
);
|
212
|
+
|
213
|
+
-- Altered lock_version column name.
|
214
|
+
CREATE TABLE `legacy_things` (
|
215
|
+
`id` int(11) NOT NULL auto_increment,
|
216
|
+
`tps_report_number` int(11) default NULL,
|
217
|
+
`version` int(11) NOT NULL default 0,
|
218
|
+
PRIMARY KEY (`id`)
|
219
|
+
) TYPE=InnoDB;
|
220
|
+
|
221
|
+
CREATE TABLE `numeric_data` (
|
222
|
+
`id` INTEGER NOT NULL auto_increment PRIMARY KEY,
|
223
|
+
`bank_balance` decimal(10,2),
|
224
|
+
`big_bank_balance` decimal(15,2),
|
225
|
+
`world_population` decimal(10),
|
226
|
+
`my_house_population` decimal(2),
|
227
|
+
`decimal_number_with_default` decimal(3,2) DEFAULT 2.78
|
228
|
+
) TYPE=InnoDB;
|
229
|
+
|
230
|
+
CREATE TABLE mixed_case_monkeys (
|
231
|
+
`monkeyID` int(11) NOT NULL auto_increment,
|
232
|
+
`fleaCount` int(11),
|
233
|
+
PRIMARY KEY (`monkeyID`)
|
234
|
+
) TYPE=InnoDB;
|