flutter-vienna-hackathon-25/wien_talks/wien_talks_server/migrations/20250816220051483/migration.json
2025-08-17 01:09:57 +02:00

124 lines
No EOL
2.9 KiB
JSON

{
"actions": [
{
"type": "createTable",
"createTable": {
"name": "health",
"dartName": "Health",
"module": "wien_talks",
"schema": "public",
"columns": [
{
"name": "id",
"columnType": 6,
"isNullable": false,
"columnDefault": "nextval('health_id_seq'::regclass)",
"dartType": "int?"
},
{
"name": "createdAt",
"columnType": 4,
"isNullable": false,
"dartType": "DateTime"
},
{
"name": "note",
"columnType": 0,
"isNullable": true,
"dartType": "String?"
}
],
"foreignKeys": [],
"indexes": [
{
"indexName": "health_pkey",
"elements": [
{
"type": 0,
"definition": "id"
}
],
"type": "btree",
"isUnique": true,
"isPrimary": true
}
],
"managed": true
}
},
{
"type": "deleteTable",
"deleteTable": "vote"
},
{
"type": "createTable",
"createTable": {
"name": "vote",
"dartName": "Vote",
"module": "wien_talks",
"schema": "public",
"columns": [
{
"name": "id",
"columnType": 6,
"isNullable": false,
"columnDefault": "nextval('vote_id_seq'::regclass)",
"dartType": "int?"
},
{
"name": "userId",
"columnType": 6,
"isNullable": false,
"dartType": "int"
},
{
"name": "createdAt",
"columnType": 4,
"isNullable": false,
"dartType": "DateTime"
},
{
"name": "quoteId",
"columnType": 6,
"isNullable": false,
"dartType": "int"
},
{
"name": "upvote",
"columnType": 1,
"isNullable": false,
"dartType": "bool"
}
],
"foreignKeys": [],
"indexes": [
{
"indexName": "vote_pkey",
"elements": [
{
"type": 0,
"definition": "id"
}
],
"type": "btree",
"isUnique": true,
"isPrimary": true
}
],
"managed": true
}
}
],
"warnings": [
{
"type": "tableDropped",
"message": "One or more columns are added to table \"vote\" which cannot be added in a table migration. The complete table will be deleted and recreated.",
"table": "vote",
"columns": [
"quoteId"
],
"destrucive": true
}
],
"migrationApiVersion": 1
}