Home | History | Annotate | Download | only in androidx.room.integration.kotlintestapp.migration.MigrationDbKotlin
      1 {
      2   "formatVersion": 1,
      3   "database": {
      4     "version": 3,
      5     "identityHash": "3f2a99b6d768af0184e077808f7348fe",
      6     "entities": [
      7       {
      8         "tableName": "Entity1",
      9         "createSql": "CREATE TABLE IF NOT EXISTS `${TABLE_NAME}` (`id` INTEGER NOT NULL, `name` TEXT, PRIMARY KEY(`id`))",
     10         "fields": [
     11           {
     12             "fieldPath": "id",
     13             "columnName": "id",
     14             "affinity": "INTEGER",
     15             "notNull": true
     16           },
     17           {
     18             "fieldPath": "name",
     19             "columnName": "name",
     20             "affinity": "TEXT",
     21             "notNull": false
     22           }
     23         ],
     24         "primaryKey": {
     25           "columnNames": [
     26             "id"
     27           ],
     28           "autoGenerate": false
     29         },
     30         "indices": []
     31       },
     32       {
     33         "tableName": "Entity2",
     34         "createSql": "CREATE TABLE IF NOT EXISTS `${TABLE_NAME}` (`id` INTEGER NOT NULL, `addedInV3` TEXT, `name` TEXT, PRIMARY KEY(`id`))",
     35         "fields": [
     36           {
     37             "fieldPath": "id",
     38             "columnName": "id",
     39             "affinity": "INTEGER",
     40             "notNull": true
     41           },
     42           {
     43             "fieldPath": "addedInV3",
     44             "columnName": "addedInV3",
     45             "affinity": "TEXT",
     46             "notNull": false
     47           },
     48           {
     49             "fieldPath": "name",
     50             "columnName": "name",
     51             "affinity": "TEXT",
     52             "notNull": false
     53           }
     54         ],
     55         "primaryKey": {
     56           "columnNames": [
     57             "id"
     58           ],
     59           "autoGenerate": false
     60         },
     61         "indices": []
     62       }
     63     ],
     64     "setupQueries": [
     65       "CREATE TABLE IF NOT EXISTS room_master_table (id INTEGER PRIMARY KEY,identity_hash TEXT)",
     66       "INSERT OR REPLACE INTO room_master_table (id,identity_hash) VALUES(42, \"3f2a99b6d768af0184e077808f7348fe\")"
     67     ]
     68   }
     69 }