Commit 8bc8f772e1db41ce378c4f43eed6f9d7073c0d45

Authored by totoro
1 parent d9ac8325

remove the "indexed" attribute which is not compatible with SQlite3

hayamiki.aproj renamed to hayamiki_generator.aproj
hayamiki.ide renamed to hayamiki_generator.ide
... ... @@ -2,7 +2,7 @@
2 2 Microsoft Visual Studio Solution File, Format Version 9.00
3 3 # Visual Studio 2005
4 4 # SharpDevelop 1.0.12.108
5   -Project("{B6712916-30DE-4a3e-A54C-2A79AC984AEE}") = "hayamiki", "hayamiki.aproj", "{89372B21-80FA-4EB8-B17C-072EB55713D6}"
  5 +Project("{B6712916-30DE-4a3e-A54C-2A79AC984AEE}") = "hayamiki_generator", "hayamiki_generator.aproj", "7E37A20A-56EA-4128-88F5-FE55B0F5CB45"
6 6 EndProject
7 7 Global
8 8 GlobalSection(SolutionConfigurationPlatforms) = preSolution
... ... @@ -14,5 +14,9 @@ Global
14 14 {89372B21-80FA-4EB8-B17C-072EB55713D6}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
15 15 {89372B21-80FA-4EB8-B17C-072EB55713D6}.Release|Any CPU.Build.0 = Release|Any CPU
16 16 {89372B21-80FA-4EB8-B17C-072EB55713D6}.Release|Any CPU.ActiveCfg = Release|Any CPU
  17 + 7E37A20A-56EA-4128-88F5-FE55B0F5CB45.Debug|Any CPU.Build.0 = Debug|Any CPU
  18 + 7E37A20A-56EA-4128-88F5-FE55B0F5CB45.Debug|Any CPU.ActiveCfg = Debug|Any CPU
  19 + 7E37A20A-56EA-4128-88F5-FE55B0F5CB45.Release|Any CPU.Build.0 = Release|Any CPU
  20 + 7E37A20A-56EA-4128-88F5-FE55B0F5CB45.Release|Any CPU.ActiveCfg = Release|Any CPU
17 21 EndGlobalSection
18 22 EndGlobal
... ...
hayamiki_lib @ 27f3d0f6b93
1   -Subproject commit f6c73ca7279c2073d848468064774426eda32441
  1 +Subproject commit 27f3d0f6b93aa27fbbd34993a72cef1fb36b347f
... ...
src/generation/model.anubis
... ... @@ -19,7 +19,6 @@ public define String
19 19 if attr is
20 20 {
21 21 unique then "UNIQUE",
22   - indexed then "INDEXED", // by default, a column is not indexed
23 22 default(str) then "DEFAULT "+str, // default value (used in case of creation of a NON NULL column
24 23 // in a table which already contains some rows)
25 24 not_null then "NOT NULL"
... ...
src/model.3.0.0.anubis
... ... @@ -87,8 +87,8 @@ public define HK_Table production_mass_storage_table =
87 87 hk_model(
88 88 [
89 89  
90   - hk_column("purchase_id", foreign_key("purchase"), [indexed]),
91   - hk_column("model_id", foreign_key("mass_storage_model"), [indexed]),
  90 + hk_column("purchase_id", foreign_key("purchase"), []),
  91 + hk_column("model_id", foreign_key("mass_storage_model"), []),
92 92 hk_column("serial", char_field(40), []), //
93 93 hk_column("status", char_field(10), []), //
94 94 hk_column("date_created", datetime_field(auto_now_add), []),
... ... @@ -127,7 +127,7 @@ public define HK_Table production_mass_storage_model_table =
127 127 [
128 128  
129 129 hk_column("manufacturer", char_field(20), []),
130   - hk_column("type_id", foreign_key("mass_storage_type"), [indexed]),
  130 + hk_column("type_id", foreign_key("mass_storage_type"), []),
131 131 hk_column("capacity", integer_field, []), //
132 132 hk_column("tr_min", integer_field, []), //
133 133 hk_column("date_created", datetime_field(auto_now_add), []),
... ... @@ -151,8 +151,8 @@ public define HK_Table production_memory_table =
151 151 hk_model(
152 152 [
153 153  
154   - hk_column("purchase_id", foreign_key("purchase"), [indexed]),
155   - hk_column("model_id", foreign_key("memory_model"), [indexed]),
  154 + hk_column("purchase_id", foreign_key("purchase"), []),
  155 + hk_column("model_id", foreign_key("memory_model"), []),
156 156 hk_column("serial", char_field(40), []), //
157 157 hk_column("status", char_field(10), []), //
158 158 hk_column("date_created", datetime_field(auto_now_add), []),
... ... @@ -176,7 +176,7 @@ public define HK_Table production_memory_model_table =
176 176 hk_model(
177 177 [
178 178  
179   - hk_column("type_id", foreign_key("memory_type"), [indexed]),
  179 + hk_column("type_id", foreign_key("memory_type"), []),
180 180 hk_column("manufacturer", char_field(20), []), //
181 181 hk_column("capacity", integer_field, []) //
182 182 ],
... ... @@ -212,8 +212,8 @@ public define HK_Table production_motherboard_table =
212 212 hk_model(
213 213 [
214 214  
215   - hk_column("purchase_id", foreign_key("purchase"), [indexed]),
216   - hk_column("model_id", foreign_key("motherboard_model"), [indexed]),
  215 + hk_column("purchase_id", foreign_key("purchase"), []),
  216 + hk_column("model_id", foreign_key("motherboard_model"), []),
217 217 hk_column("serial", char_field(40), []), //
218 218 hk_column("week_fab", char_field(10), []), //
219 219 hk_column("status", char_field(10), []), //
... ... @@ -264,8 +264,8 @@ public define HK_Table production_power_supply_table =
264 264 hk_model(
265 265 [
266 266  
267   - hk_column("purchase_id", foreign_key("purchase"), [indexed]),
268   - hk_column("model_id", foreign_key("power_supply_model"), [indexed]),
  267 + hk_column("purchase_id", foreign_key("purchase"), []),
  268 + hk_column("model_id", foreign_key("power_supply_model"), []),
269 269 hk_column("serial", char_field(40), []), //
270 270 hk_column("status", char_field(10), []), //
271 271 hk_column("date_created", datetime_field(auto_now_add), []),
... ... @@ -310,7 +310,7 @@ public define HK_Table production_product_reference_table =
310 310 hk_model(
311 311 [
312 312  
313   - hk_column("type_ref_id", foreign_key("type_number"), [indexed]),
  313 + hk_column("type_ref_id", foreign_key("type_number"), []),
314 314 hk_column("product_ref", char_field(4), []),
315 315 hk_column("product_name", char_field(30), []), //
316 316 hk_column("description", char_field(200), []), //
... ... @@ -436,8 +436,8 @@ public define HK_Table production_purchase_table =
436 436 hk_model(
437 437 [
438 438 hk_column("date", date_field(none), []),
439   - hk_column("buyer_id", foreign_key(app_name("staff"),"staff"), [indexed]),
440   - hk_column("supplier_id", foreign_key("supplier"), [indexed]),
  439 + hk_column("buyer_id", foreign_key(app_name("staff"),"staff"), []),
  440 + hk_column("supplier_id", foreign_key("supplier"), []),
441 441 hk_column("order_ref", char_field(50), []), //
442 442 hk_column("description", char_field(200), []), // description of the purchase
443 443 hk_column("date_created", datetime_field(auto_now_add), []),
... ... @@ -585,9 +585,9 @@ public define HK_Table staff_table =
585 585 hk_model(
586 586 [
587 587  
588   - hk_column("contact_id", foreign_key(none, "address_book_contact"), [indexed]),
589   - hk_column("department_id", foreign_key("department"), [indexed]),
590   - hk_column("role_id", foreign_key("role"), [indexed]),
  588 + hk_column("contact_id", foreign_key(none, "address_book_contact"), []),
  589 + hk_column("department_id", foreign_key("department"), []),
  590 + hk_column("role_id", foreign_key("role"), []),
591 591 hk_column("email", char_field(75), []),
592 592 hk_column("incoming_date", date_field(none), []), //
593 593 hk_column("outgoing_date", date_field(none), [], help_text("if not still present in company. The date of official outgoing")), //
... ...